- ホスト アクティビティ:
TelecomActivity
- フラグメント:
ContactResultsFragment
- ルート レイアウト:
@layout/list_fragment
このページでは、プログラムによってメニューを非表示に設定しています。
図 1. 検索画面
ツールバーのカスタムビューとしての検索フィールド @layout/search_layout
@layout/search_view_layout_override
- スタイル。
@style/Widget.Dialer.SearchView
- 閉じるボタン。
@drawable/ic_close
- 閉じるボタン。
リスト項目のレイアウト。@layout/contact_result
コンポーネント [id:]ClassName | プロパティ | 値 |
---|---|---|
contact_result: ConstraintLayout |
background |
?android:attr/selectableItemBackground |
height |
@dimen/contact_result_height |
|
contact_picture: ImageView |
width |
@dimen/avatar_icon_size |
height |
@dimen/avatar_icon_size |
|
layout_marginStart |
@dimen/contact_result_avatar_margin |
|
contact_name: TextView |
textAppearance |
@style/TextAppearance.ContactResultTitle |
layout_marginStart |
@dimen/contact_result_name_margin |