OSDN Git Service
(root)
/
android-x86
/
packages-apps-DeskClock.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add text descriptions for icons in DeskClock.
[android-x86/packages-apps-DeskClock.git]
/
res
/
layout
/
desk_clock_buttons.xml
diff --git
a/res/layout/desk_clock_buttons.xml
b/res/layout/desk_clock_buttons.xml
index
35de5fe
..
9d72282
100644
(file)
--- a/
res/layout/desk_clock_buttons.xml
+++ b/
res/layout/desk_clock_buttons.xml
@@
-20,28
+20,36
@@
android:layout_height="wrap_content"
android:layout_weight="0"
>
android:layout_height="wrap_content"
android:layout_weight="0"
>
- <Button android:id="@+id/alarm_button"
+ <ImageButton android:id="@+id/alarm_button"
+ style="@style/ButtonStripLeft"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_weight=".25"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_weight=".25"
- android:text="@string/alarm_button_title_placeholder"
+ android:src="@drawable/ic_clock_strip_alarm"
+ android:contentDescription="@string/alarm_button_description"
/>
/>
- <Button android:id="@+id/gallery_button"
+ <ImageButton android:id="@+id/gallery_button"
+ style="@style/ButtonStripMiddle"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_weight=".25"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_weight=".25"
- android:text="@string/gallery_button_title_placeholder"
+ android:src="@drawable/ic_clock_strip_gallery"
+ android:contentDescription="@string/gallery_button_description"
/>
/>
- <Button android:id="@+id/music_button"
+ <ImageButton android:id="@+id/music_button"
+ style="@style/ButtonStripMiddle"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_weight=".25"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_weight=".25"
- android:text="@string/music_button_title_placeholder"
+ android:src="@drawable/ic_clock_strip_music"
+ android:contentDescription="@string/music_button_description"
/>
/>
- <Button android:id="@+id/home_button"
+ <ImageButton android:id="@+id/home_button"
+ style="@style/ButtonStripRight"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_weight=".25"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_weight=".25"
- android:text="@string/home_button_title_placeholder"
+ android:src="@drawable/ic_clock_strip_home"
+ android:contentDescription="@string/home_button_description"
/>
</LinearLayout>
/>
</LinearLayout>