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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial