
Following the Android 4.2 changes, which explain how to add native support for RTL, I've replaced Right for End and Left for Start. Enabling RTL to see the results.
88 lines
2.4 KiB
XML
88 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:padding="5dp"
|
|
android:baselineAligned="false"
|
|
android:orientation="vertical" >
|
|
|
|
<RelativeLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:baselineAligned="false" >
|
|
|
|
<ImageView
|
|
android:id="@+id/icon"
|
|
android:layout_width="56dp"
|
|
android:layout_height="56dp"
|
|
android:layout_centerVertical="true"
|
|
android:padding="4dp"
|
|
android:scaleType="center" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toEndOf="@id/icon"
|
|
android:padding="5dp"
|
|
android:baselineAligned="false"
|
|
android:orientation="vertical" >
|
|
|
|
<TextView
|
|
android:id="@+id/license"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:singleLine="true"
|
|
android:ellipsize="end"
|
|
android:layout_marginStart="6sp"
|
|
android:textSize="12sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:textSize="17sp"
|
|
android:textStyle="bold"
|
|
android:singleLine="true"
|
|
android:ellipsize="end"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_toStartOf="@id/license" />
|
|
|
|
<TextView
|
|
android:id="@+id/categories"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:ellipsize="end"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_marginStart="6sp"
|
|
android:layout_below="@id/title"
|
|
android:textSize="12sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/status"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:ellipsize="end"
|
|
android:textSize="12sp"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_toStartOf="@id/categories"
|
|
android:layout_below="@id/title" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|
|
|
|
<ListView
|
|
android:id="@android:id/list"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:scrollbars="none" />
|
|
|
|
</LinearLayout>
|