グローバル設定可能な値

この記事で提供されているリソースを使用して、電話アプリをカスタマイズします。さまざまなビューが、グローバル値からリダイレクトされるリソースを使用します。詳細については、AOSP UX デザインをご覧ください(ログインが必要な場合があります)。

ダイヤルパッドの入力モーション

<!-- Boolean config to gate the dialpad input motion -->
<bool name="config_enable_dial_motion">true</bool>
<!-- Font scale for the last input digit -->
<item name="config_dial_motion_scale_start" format="float" type="integer">1.5</item>
<!-- Scale down motion duration for the last input digit -->
<integer name="config_dial_motion_duration">200</integer>

ダイヤルパッドの入力数字の Gravity

<!-- 8388629 stands for Gravity.END |
Gravity.CENTER_VERTICAL-->
<integer name="config_dialed_number_gravity">8388629</integer>

詳細なユーザー プロファイル

入力番号に一致する連絡先が見つかった場合に、詳細なユーザー プロファイルを表示するように設定します。false の場合、連絡先名のみを表示します。true の場合、連絡先のアバター、連絡先名、電話番号のラベルを表示します。

<bool name="config_show_detailed_user_profile_on_dialpad">false</bool>

背景画像のアルファ版

0 に設定すると、背景画像は非表示になります。

<!-- Alpha when there is a contact avatar -->
<item name="config_background_image_alpha" format="float"
type="dimen">1.0</item>
<!-- Alpha when there are no contact avatars and uses the letter tile drawable color as background. -->
<item name="config_background_image_error_alpha" format="float" type="dimen">1.0</item>

最近ページと連絡先ページの操作ボタン

<!-- A config determines whether to show divider and callog_action_button for callog items that
are not stored as contacts. "true" will show divider and button as disable state and "false" will
make divider and button invisible for non contacts. -->
    <bool name="config_show_calllog_action_button_for_non_contact">false</bool>

<!-- A config determines whether to show divider and the button on the right side for contacts
without any contact details. "true" will show divider and button as disable state and "false" will
make divider and button invisible for empty contacts. -->
    <bool name="config_show_contact_detail_button_for_empty_contact">false</bool>

連絡先情報ページの住所とナビゲーション機能を制御する

連絡先情報ページでこのブール設定を使用して、住所とナビゲーション機能を制御します。

<!-- A config determines whether to show postal address in contact details page. -->
<bool name="config_show_postal_address">false</bool>

連絡先情報ページのツールバー

<!-- A config determines whether to show the action bar view in the contact details page.-->
<bool name="config_show_contact_details_action_bar_view">false</bool>
<!-- A config determines if to show the action bar avatar in the contact details page.-->
<bool name="config_show_contact_details_action_bar_avatar">true</bool>

ツールバーのタイトルモード

ツールバーのタイトルモードを以下のように設定します。

  • 0 はアプリ名を示します。
  • 1 はツールバーのタイトルがないことを示します。
  • 2 は接続済みの Bluetooth デバイス名を示します。
<!-- Use app name as toolbar title. Supported value see @attr/toolbarTitleMode -->
<integer name="config_toolbar_title_mode">0</integer>

全画面表示の着信 UI

全画面表示の着信 UI の制御を設定します。true に設定した場合、着信に応答すると、電話アプリのユーザーに関係なく全画面表示の着信 UI が表示されます。false に設定した場合、ユーザーが電話アプリを使用していないときに着信に応答すると、全画面表示の着信 UI を表示せずに HUN が閉じられます。

<bool name="config_show_fullscreen_incall_ui">true</bool>

アバターの角

この値を変更すると、通知アバターを含むすべてのアバターの形状に影響します。

  • 0.5 は、丸いアバターを示します。
  • 1 は正方形のアバターを示します。
<dimen name="contact_avatar_corner_radius_percent" format="float">0.5</dimen>

リスト項目に使用されるアバターサイズ

この設定を使用して、以下のページのリスト項目のアバターサイズを設定します。

  • 通話履歴ページ
  • 連絡先ページ
  • 検索ページ
  • ダイヤルパッド ページのプロファイル アバター
<dimen name="avatar_icon_size">76dp</dimen>

ユーザーがダイヤルパッドを使用して電話をかけた場合のライブ検索結果

<!-- A config determines whether to show type down list on Dialpad -->
<bool name="config_show_type_down_list_on_dialpad">true</bool>

コントロール バーの高さ

通話中のコントロール バーの高さ、着信時のコントロール バーの高さ、通話ボタンの高さを設定します。

<dimen name="control_bar_height">96dp</dimen>

リスト項目のサイズ

<dimen name="list_item_height">116dp</dimen>