Google is committed to advancing racial equity for Black communities. See how.

Search

  • Host activity: TelecomActivity
  • Fragment: ContactResultsFragment
  • Root layout: @layout/list_fragment

Menus are programmatically set to invisible for this page.

Search screen

Figure 1. Search screen

Search field as toolbar custom view, @layout/search_layout

  • @layout/search_view_layout_override
  • Style. @style/Widget.Dialer.SearchView
    • Close button. @drawable/ic_close

List item layout. @layout/contact_result

Component [id:]ClassName Property Value
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