- Actividad del host:
TelecomActivity
- Fragmento:
FavoriteFragment
Figura 1: Pantalla Favoritos
Diseño. @layout/favorite_fragment
@+id/empty_page_container
Componente [id:]ClassName Propiedad Valor TextView
textAppearance
?android:attr/textAppearanceLarge
string
@string/favorites_empty
layout_marginBottom
@dimen/favorite_add_button_and_text_separation
add_favorite_button: UxrButton
height
@dimen/touch_target_size
android:textAppearance
?android:attr/textAppearanceMedium
textColor
@color/hero_button_text_color
background
@drawable/hero_button_background
paddingHorizontal
@dimen/favorite_add_button_padding
app:carUxRestrictions
UX_RESTRICTIONS_NO_SETUP
Figura 2: @layout/favorite_fragment
Diseño. @layout/favorite_fragment
@+id/favorite_list_fragment. FavoriteListFragment
>@layout/list_fragment
Elemento de contacto favorito. @layout/favorite_contact_list_item
Componente [id:]ClassName |
Propiedad | Valor |
---|---|---|
root: LinearLayout |
orientation |
vertical |
gravity |
center_horizontal |
|
background |
?android:attr/selectableItemBackground |
|
icon: ImageView |
width |
@dimen/large_avatar_icon_size |
height |
@dimen/large_avatar_icon_size |
|
marginBottom |
@dimen/favorites_avatar_margin_bottom |
|
title: TextView |
textAppearance |
?android:attr/textAppearanceLarge |
text: TextView |
textAppearance |
?android:attr/textAppearanceSmall |
Botón para agregar a Favoritos. @layout/add_favorite_list_item
Componente [id:]ClassName | Propiedad | Valor |
---|---|---|
title: UxrButton |
text |
@string/add_favorite_button |
textColor |
@color/hero_button_text_color |
|
textAppearance |
?android:attr/textAppearanceLarge |
|
background |
?android:attr/selectableItemBackground |
|
drawableTop |
@drawable/ic_add_favorite |