33 xmlns : custom =" http://schemas.android.com/apk/res/com.vogella.android.view.compoundview"
44 android : layout_width =" match_parent"
55 android : layout_height =" match_parent"
6+ android : divider =" ?android:attr/listDivider"
67 android : orientation =" vertical"
78 android : showDividers =" middle"
8- android : divider =" ?android:attr/listDivider"
99 tools : context =" .MainActivity" >
1010
11- <com .vogella.android.customview.compoundview.ColorOptionsView
12- android : id =" @+id/view1"
13- android : layout_width =" match_parent"
14- android : layout_height =" ?android:attr/listPreferredItemHeight"
15- android : background =" ?android:selectableItemBackground"
16- android : onClick =" onClicked"
17- custom : titleText =" Background color"
18- custom : valueColor =" @android:color/holo_green_light"
19- />
11+ <com .vogella.android.customview.compoundview.ColorOptionsView
12+ android : id =" @+id/view1"
13+ android : layout_width =" match_parent"
14+ android : layout_height =" ?android:attr/listPreferredItemHeight"
15+ android : background =" ?android:selectableItemBackground"
16+ android : onClick =" onClicked"
17+ custom : titleText =" Background color"
18+ custom : valueColor =" @android:color/holo_green_light" />
2019
21- <com .vogella.android.customview.compoundview.ColorOptionsView
22- android : id =" @+id/view2"
23- android : layout_width = " match_parent "
24- android : layout_height = " ?android:attr/listPreferredItemHeight "
25- android : background =" ?android:selectableItemBackground "
26- android : onClick = " onClicked "
27- custom : titleText = " Foreground color "
28- custom : valueColor = " @android: color/holo_orange_dark "
29- />
20+ <com .vogella.android.customview.compoundview.ColorOptionsView
21+ android : id =" @+id/view2"
22+
23+ android : layout_width = " match_parent "
24+ android : layout_height =" ?android:attr/listPreferredItemHeight "
25+ android : background = " ?android:selectableItemBackground "
26+ android : onClick = " onClicked "
27+ custom : titleText = " Foreground color"
28+ custom : valueColor = " @android:color/holo_orange_dark " />
3029
3130</LinearLayout >
0 commit comments