Recherche

  • Activité d'accueil : TelecomActivity
  • Fragment : ContactResultsFragment
  • Disposition racine : @layout/list_fragment

Les menus sont définis par programme sur invisibles pour cette page.

Écran de recherche

Figure 1. Écran de recherche

Champ de recherche en tant que vue personnalisée de la barre d'outils, @layout/search_layout

  • @layout/search_view_layout_override
  • Style. @style/Widget.Dialer.SearchView
    • Bouton Fermer. @drawable/ic_close

Disposition des éléments de liste. @layout/contact_result

Composant [id :]ClassName Propriété Valeur
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