2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
즐겨찾기
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
- 호스트 활동:
TelecomActivity
- 프래그먼트:
FavoriteFragment

그림 1. 즐겨찾기 화면
레이아웃. @layout/favorite_fragment
@+id/empty_page_container
구성요소 [id:]클래스 이름 |
속성 |
값 |
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 |

그림 2. @layout/favorite_fragment
레이아웃. @layout/favorite_fragment
@+id/favorite_list_fragment. FavoriteListFragment
>
@layout/list_fragment
즐겨찾는 연락처 항목. @layout/favorite_contact_list_item
구성요소 [id:]클래스 이름 |
속성 |
값 |
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 |
즐겨찾기 추가 버튼. @layout/add_favorite_list_item
구성요소 [id:]클래스 이름 |
속성 |
값 |
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 |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2024-05-01(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-05-01(UTC)"],[],[],null,["# Favorites\n\n- Host activity: `TelecomActivity`\n- Fragment: `FavoriteFragment`\n\n**Figure 1.**Favorites screen\n\nLayout. `@layout/favorite_fragment`\n\n- `@+id/empty_page_container`\n\n | **Component \\[id:\\]ClassName** | **Property** | **Value** |\n |----------------------------------|--------------------------|--------------------------------------------------|\n | `TextView` | `textAppearance` | `?android:attr/textAppearanceLarge` |\n | | `string` | `@string/favorites_empty` |\n | | `layout_marginBottom` | `@dimen/favorite_add_button_and_text_separation` |\n | `add_favorite_button: UxrButton` | `height` | `@dimen/touch_target_size` |\n | | `android:textAppearance` | `?android:attr/textAppearanceMedium` |\n | | `textColor` | `@color/hero_button_text_color` |\n | | `background` | `@drawable/hero_button_background` |\n | | `paddingHorizontal` | `@dimen/favorite_add_button_padding` |\n | | `app:carUxRestrictions` | `UX_RESTRICTIONS_NO_SETUP` |\n\n**Figure 2.**@layout/favorite_fragment\n\nLayout. `@layout/favorite_fragment`\n\n- `@+id/favorite_list_fragment. FavoriteListFragment` \\\u003e `@layout/list_fragment`\n\nFavorite contact item. `@layout/favorite_contact_list_item`\n\n| **Component \\[id:\\]ClassName** | **Property** | **Value** |\n|--------------------------------|------------------|------------------------------------------|\n| `root: LinearLayout` | `orientation` | `vertical` |\n| `root: LinearLayout` | `gravity` | `center_horizontal` |\n| `root: LinearLayout` | `background` | `?android:attr/selectableItemBackground` |\n| `icon: ImageView` | `width` | `@dimen/large_avatar_icon_size` |\n| `icon: ImageView` | `height` | `@dimen/large_avatar_icon_size` |\n| `icon: ImageView` | `marginBottom` | `@dimen/favorites_avatar_margin_bottom` |\n| `title: TextView` | `textAppearance` | `?android:attr/textAppearanceLarge` |\n| `text: TextView` | `textAppearance` | `?android:attr/textAppearanceSmall` |\n\nAdd Favorites button. `@layout/add_favorite_list_item`\n\n| **Component \\[id:\\]ClassName** | **Property** | **Value** |\n|--------------------------------|------------------|------------------------------------------|\n| `title: UxrButton` | `text` | `@string/add_favorite_button` |\n| | `textColor` | `@color/hero_button_text_color` |\n| | `textAppearance` | `?android:attr/textAppearanceLarge` |\n| | `background` | `?android:attr/selectableItemBackground` |\n| | `drawableTop` | `@drawable/ic_add_favorite` |"]]