mobile/android/base/resources/layout/preference_rightalign_icon.xml

branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
equal deleted inserted replaced
-1:000000000000 0:75a9e9cabecb
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3 - License, v. 2.0. If a copy of the MPL was not distributed with this
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5
6 <!-- This custom layout matches the Android layout for preferences in
7 padding and margins, so it is visually consistent. -->
8
9 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
10 android:layout_width="match_parent"
11 android:layout_height="wrap_content"
12 android:orientation="horizontal"
13 android:paddingRight="?android:attr/scrollbarSize">
14
15 <RelativeLayout
16 android:layout_width="match_parent"
17 android:layout_height="wrap_content"
18 android:gravity="right"
19 android:layout_marginLeft="15dip"
20 android:layout_marginRight="6dip"
21 android:layout_marginTop="6dip"
22 android:layout_marginBottom="6dip"
23 android:paddingRight="6dip"
24 android:layout_weight="1">
25
26 <TextView android:id="@+android:id/title"
27 android:layout_gravity="right"
28 android:layout_width="wrap_content"
29 android:layout_height="wrap_content"
30 android:singleLine="true"
31 android:textAppearance="?android:attr/textAppearanceSmall"
32 android:ellipsize="marquee"
33 android:fadingEdge="horizontal" />
34
35 </RelativeLayout>
36
37 <ImageView android:src="@drawable/menu_item_more"
38 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
40 android:layout_gravity="center_vertical"
41 android:paddingRight="16dp" />
42
43 </LinearLayout>

mercurial