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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/base/resources/layout/preference_rightalign_icon.xml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +<?xml version="1.0" encoding="utf-8"?>
     1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +   - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.8 +
     1.9 +<!-- This custom layout matches the Android layout for preferences in
    1.10 +     padding and margins, so it is visually consistent. -->
    1.11 +
    1.12 +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    1.13 +      android:layout_width="match_parent"
    1.14 +      android:layout_height="wrap_content"
    1.15 +      android:orientation="horizontal"
    1.16 +      android:paddingRight="?android:attr/scrollbarSize">
    1.17 +
    1.18 +    <RelativeLayout
    1.19 +        android:layout_width="match_parent"
    1.20 +        android:layout_height="wrap_content"
    1.21 +        android:gravity="right"
    1.22 +        android:layout_marginLeft="15dip"
    1.23 +        android:layout_marginRight="6dip"
    1.24 +        android:layout_marginTop="6dip"
    1.25 +        android:layout_marginBottom="6dip"
    1.26 +        android:paddingRight="6dip"
    1.27 +        android:layout_weight="1">
    1.28 +
    1.29 +        <TextView android:id="@+android:id/title"
    1.30 +            android:layout_gravity="right"
    1.31 +            android:layout_width="wrap_content"
    1.32 +            android:layout_height="wrap_content"
    1.33 +            android:singleLine="true"
    1.34 +            android:textAppearance="?android:attr/textAppearanceSmall"
    1.35 +            android:ellipsize="marquee"
    1.36 +            android:fadingEdge="horizontal" />
    1.37 +
    1.38 +    </RelativeLayout>
    1.39 +
    1.40 +    <ImageView android:src="@drawable/menu_item_more"
    1.41 +               android:layout_width="wrap_content"
    1.42 +               android:layout_height="wrap_content"
    1.43 +               android:layout_gravity="center_vertical"
    1.44 +               android:paddingRight="16dp" />
    1.45 +
    1.46 +</LinearLayout>

mercurial