1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-27 06:41:15 +00:00

Made the device list follow material design guidelines.

This commit is contained in:
George Venios 2015-08-04 00:12:36 +01:00
parent 7a6801d392
commit a99bfac063

View file

@ -1,63 +1,66 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="4dip"> android:paddingBottom="8dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="8dp">
<TextView <TextView
android:id="@+id/name" android:id="@+id/name"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" android:layout_alignParentStart="true"
android:layout_toLeftOf="@+id/status" android:layout_toLeftOf="@+id/status"
android:layout_toStartOf="@+id/status" android:layout_toStartOf="@+id/status"
android:ellipsize="end"
android:lines="1" android:lines="1"
android:ellipsize="end" /> android:textAppearance="?textAppearanceListItemPrimary" />
<TextView <TextView
android:id="@+id/status" android:id="@+id/status"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_alignBottom="@+id/name"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium" /> android:layout_alignBottom="@+id/name"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:textAppearance="?textAppearanceListItemSmall" />
<TextView <TextView
android:id="@+id/download_title" android:id="@+id/download_title"
android:text="@string/download_title_colon"
android:layout_below="@id/name"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall" /> android:layout_below="@id/name"
android:text="@string/download_title_colon"
android:textAppearance="?textAppearanceListItemSecondary" />
<TextView <TextView
android:id="@+id/download" android:id="@+id/download"
android:layout_alignBaseline="@id/download_title"
android:layout_toRightOf="@id/download_title"
android:layout_toEndOf="@id/download_title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall" /> android:layout_alignBaseline="@id/download_title"
android:layout_toEndOf="@id/download_title"
android:layout_toRightOf="@id/download_title"
android:textAppearance="?textAppearanceListItemSecondary" />
<TextView <TextView
android:id="@+id/upload_title" android:id="@+id/upload_title"
android:text="@string/upload_title_colon"
android:layout_below="@id/download_title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall" /> android:layout_below="@id/download_title"
android:text="@string/upload_title_colon"
android:textAppearance="?textAppearanceListItemSecondary" />
<TextView <TextView
android:id="@+id/upload" android:id="@+id/upload"
android:layout_alignBaseline="@id/upload_title"
android:layout_toRightOf="@id/upload_title"
android:layout_toEndOf="@id/upload_title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall" /> android:layout_alignBaseline="@id/upload_title"
android:layout_toEndOf="@id/upload_title"
android:layout_toRightOf="@id/upload_title"
android:textAppearance="?textAppearanceListItemSecondary" />
</RelativeLayout> </RelativeLayout>