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

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

     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/. -->
     6 <!-- This custom layout matches the Android layout for preferences in
     7      padding and margins, so it is visually consistent. -->
     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">
    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">
    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" />
    35     </RelativeLayout>
    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" />
    43 </LinearLayout>

mercurial