通讯录

使用集合让一切井井有条 根据您的偏好保存内容并对其进行分类。
  • 主机 activity:TelecomActivity
  • Fragment:ContactListFragment
  • 根布局:@layout/list_fragment

“通讯录”屏幕

图 1. “通讯录”屏幕

联系人列表项:@layout/contact_list_item

  • @+id/header > @layout/header_item
    组件 [id:]ClassName 属性
    title: TextView height @dimen/subheader_list_height
    style> @style/SubheaderText
  • @+id/user_profile_container > @layout/contact_user_profile
    Component[id:]
    ClassName
    属性
    contact_list_guideline_begin: Guideline layout_constraintGuide_begin @dimen/contact_list_guideline_begin
    contact_list_guideline_end: Guideline layout_constraintGuide_end @dimen/contact_list_guideline_end
    call_action_id: View background ?android:attr/selectableItemBackground
    Constraint End contact_list_guideline_end
    icon: ImageView width @dimen/avatar_icon_size
    height @dimen/avatar_icon_size
    layout_marginStart @dimen/contact_list_item_padding
    scaleType centerCrop
    title (Contact name): TextView layout_marginEnd @dimen/contact_list_text_margin_end
    textAppearance ?android:attr/textAppearanceLarge
    Constraint Start contact_list_guideline_begin
    Constraint End contact_list_guideline_end
    text (label): TextView layout_marginEnd @dimen/contact_list_text_margin_end
    textAppearance ?android:attr/textAppearanceSmall
    Constraint Start contact_list_guideline_begin
    Constraint End contact_list_guideline_end
    show_contact_detail_id: ImageView src @drawable/ic_arrow_right
    tint @color/secondary_icon_color
    background ?android:attr/selectableItemBackground
    Constraint Start contact_list_guideline_end
    divider: View width @dimen/vertical_divider_width
    background @color/divider_color
    layout_marginTop @dimen/vertical_divider_inset
    layout_marginBottom @dimen/vertical_divider_inset
    Constraint Start contact_list_guideline_end