1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <!-- Copyright (C) 2011 The Android Open Source Project
3+
4+ Licensed under the Apache License, Version 2.0 (the "License");
5+ you may not use this file except in compliance with the License.
6+ You may obtain a copy of the License at
7+
8+ http://www.apache.org/licenses/LICENSE-2.0
9+
10+ Unless required by applicable law or agreed to in writing, software
11+ distributed under the License is distributed on an "AS IS" BASIS,
12+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ See the License for the specific language governing permissions and
14+ limitations under the License.
15+ -->
16+
17+ <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
18+ android : layout_width =" wrap_content"
19+ android : layout_height =" wrap_content"
20+ android : minHeight =" ?android:attr/listPreferredItemHeight"
21+ android : orientation =" horizontal"
22+ >
23+
24+ <LinearLayout
25+ android : id =" @+id/option1"
26+ android : layout_width =" 64dp"
27+ android : layout_height =" match_parent"
28+ android : background =" ?android:attr/actionBarItemBackground"
29+ >
30+ <ImageView
31+ android : layout_width =" 48dp"
32+ android : layout_height =" match_parent"
33+ android : layout_gravity =" center"
34+ android : layout_marginLeft =" 8dp"
35+ android : layout_marginRight =" 8dp"
36+ android : layout_marginTop =" 6dp"
37+ android : layout_marginBottom =" 6dp"
38+ android : src =" @drawable/ic_audio_vol_mute"
39+ android : scaleType =" center"
40+ android : duplicateParentState =" true"
41+ android : background =" @drawable/silent_mode_indicator"
42+ />
43+ </LinearLayout >
44+ <!-- Spacer -->
45+ <View android : layout_width =" 0dp"
46+ android : layout_height =" match_parent"
47+ android : layout_weight =" 1"
48+ android : visibility =" invisible" />
49+
50+ <LinearLayout
51+ android : id =" @+id/option2"
52+ android : layout_width =" 64dp"
53+ android : layout_height =" match_parent"
54+ android : background =" ?android:attr/actionBarItemBackground"
55+ >
56+ <ImageView
57+ android : layout_width =" 48dp"
58+ android : layout_height =" match_parent"
59+ android : layout_gravity =" center"
60+ android : layout_marginLeft =" 8dp"
61+ android : layout_marginRight =" 8dp"
62+ android : layout_marginTop =" 6dp"
63+ android : layout_marginBottom =" 6dp"
64+ android : src =" @drawable/ic_audio_ring_notif_vibrate"
65+ android : scaleType =" center"
66+ android : duplicateParentState =" true"
67+ android : background =" @drawable/silent_mode_indicator"
68+ />
69+ </LinearLayout >
70+
71+ <!-- Spacer -->
72+ <View android : layout_width =" 0dp"
73+ android : layout_height =" match_parent"
74+ android : layout_weight =" 1"
75+ android : visibility =" invisible" />
76+
77+ <LinearLayout
78+ android : id =" @+id/option3"
79+ android : layout_width =" 64dp"
80+ android : layout_height =" match_parent"
81+ android : background =" ?android:attr/actionBarItemBackground"
82+ >
83+ <ImageView
84+ android : layout_width =" 48dp"
85+ android : layout_height =" match_parent"
86+ android : layout_gravity =" center"
87+ android : layout_marginLeft =" 8dp"
88+ android : layout_marginRight =" 8dp"
89+ android : layout_marginTop =" 6dp"
90+ android : layout_marginBottom =" 6dp"
91+ android : src =" @drawable/ic_audio_vol"
92+ android : scaleType =" center"
93+ android : duplicateParentState =" true"
94+ android : background =" @drawable/silent_mode_indicator"
95+ />
96+ </LinearLayout >
97+ </LinearLayout >
0 commit comments