Add very basic support for RTL languages
This commit is contained in:
parent
4add713ab8
commit
f5785c3de0
@ -28,7 +28,8 @@
|
||||
<application
|
||||
android:name="FDroidApp"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:label="@string/app_name" >
|
||||
android:label="@string/app_name"
|
||||
android:supportsRtl="true" >
|
||||
<activity
|
||||
android:name="FDroid"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize" >
|
||||
|
@ -14,7 +14,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="5dp"
|
||||
android:paddingRight="6dp"
|
||||
android:paddingEnd="6dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<RelativeLayout
|
||||
@ -28,7 +28,7 @@
|
||||
android:id="@+id/title"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:singleLine="false"
|
||||
android:textSize="18sp"
|
||||
@ -39,7 +39,7 @@
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="42dp"
|
||||
android:layout_below="@id/title"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:scaleType="fitCenter" />
|
||||
|
||||
<TextView
|
||||
@ -47,7 +47,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/title"
|
||||
android:layout_toRightOf="@id/icon"
|
||||
android:layout_toEndOf="@id/icon"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<TextView
|
||||
@ -55,7 +55,7 @@
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/license"
|
||||
android:layout_toRightOf="@id/icon"
|
||||
android:layout_toEndOf="@id/icon"
|
||||
android:textSize="12sp" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
@ -2,8 +2,8 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:paddingTop="6dp"
|
||||
android:paddingBottom="6dp"
|
||||
android:orientation="vertical">
|
||||
@ -19,7 +19,7 @@
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView android:id="@+id/version"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingStart="5dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
|
||||
<TextView android:id="@+id/sitec"
|
||||
android:text="@string/about_sitec"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingStart="5dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
@ -56,7 +56,7 @@
|
||||
|
||||
<TextView android:id="@+id/mailc"
|
||||
android:text="@string/about_mailc"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingStart="5dp"
|
||||
android:autoLink="email"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
@ -5,12 +5,12 @@
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="5dp"
|
||||
android:paddingBottom="5dp"
|
||||
android:paddingLeft="2dp"
|
||||
android:paddingRight="2dp">
|
||||
android:paddingStart="2dp"
|
||||
android:paddingEnd="2dp">
|
||||
|
||||
<TextView android:id="@+id/buildtype"
|
||||
android:textSize="12sp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content" />
|
||||
|
||||
@ -20,13 +20,13 @@
|
||||
android:ellipsize="end"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toLeftOf="@id/buildtype"
|
||||
android:layout_toStartOf="@id/buildtype"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<TextView android:id="@+id/size"
|
||||
android:textSize="12sp"
|
||||
android:layout_below="@id/version"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content" />
|
||||
|
||||
@ -35,15 +35,15 @@
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end"
|
||||
android:layout_below="@id/version"
|
||||
android:layout_toLeftOf="@id/size"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_toStartOf="@id/size"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content" />
|
||||
|
||||
<TextView android:id="@+id/added"
|
||||
android:textSize="12sp"
|
||||
android:layout_below="@id/status"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content" />
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:paddingTop="5dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<LinearLayout
|
||||
@ -39,7 +39,7 @@
|
||||
android:id="@+id/license"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_below="@id/title"
|
||||
android:textSize="12sp" />
|
||||
|
||||
@ -47,9 +47,9 @@
|
||||
android:id="@+id/status"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_below="@id/title"
|
||||
android:layout_toLeftOf="@id/license"
|
||||
android:layout_toStartOf="@id/license"
|
||||
android:textSize="12sp" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
@ -5,8 +5,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="3dp"
|
||||
android:paddingBottom="4dp"
|
||||
android:paddingLeft="6dp"
|
||||
android:paddingRight="10dp">
|
||||
android:paddingStart="6dp"
|
||||
android:paddingEnd="10dp">
|
||||
|
||||
<ImageView android:id="@+id/icon"
|
||||
android:scaleType="fitCenter"
|
||||
@ -19,7 +19,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:padding="4dp">
|
||||
|
||||
<ImageView android:id="@+id/icon_status_has_updates"
|
||||
@ -41,11 +41,11 @@
|
||||
android:ellipsize="marquee"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@id/icon"
|
||||
android:layout_toLeftOf="@id/status_icons"
|
||||
android:layout_toEndOf="@id/icon"
|
||||
android:layout_toStartOf="@id/status_icons"
|
||||
android:paddingTop="4dp"
|
||||
android:paddingBottom="2dp"
|
||||
android:paddingLeft="1dp"/>
|
||||
android:paddingStart="1dp"/>
|
||||
|
||||
<TextView android:id="@+id/license"
|
||||
android:textSize="12sp"
|
||||
@ -54,7 +54,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/name"
|
||||
android:layout_alignParentRight="true"/>
|
||||
android:layout_alignParentEnd="true"/>
|
||||
|
||||
<TextView android:id="@+id/status"
|
||||
android:textSize="12sp"
|
||||
@ -63,9 +63,9 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBaseline="@id/license"
|
||||
android:layout_toLeftOf="@id/license"
|
||||
android:layout_alignLeft="@id/name"
|
||||
android:paddingLeft="1dp"/>
|
||||
android:layout_toStartOf="@id/license"
|
||||
android:layout_alignStart="@id/name"
|
||||
android:paddingStart="1dp"/>
|
||||
|
||||
<TextView android:id="@+id/summary"
|
||||
android:singleLine="true"
|
||||
@ -73,6 +73,6 @@
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/icon"
|
||||
android:paddingLeft="6dp"/>
|
||||
android:paddingStart="6dp"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
@ -4,8 +4,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="6dip"
|
||||
android:paddingRight="6dip"
|
||||
android:paddingStart="6dip"
|
||||
android:paddingEnd="6dip"
|
||||
android:paddingBottom="6dip">
|
||||
|
||||
<Spinner
|
||||
|
Loading…
x
Reference in New Issue
Block a user