1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-28 07:11:17 +00:00
syncthing-android/src/main/res/layout/item_folder_list.xml

92 lines
3.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2016-12-17 14:26:06 +00:00
<layout xmlns:android="http://schemas.android.com/apk/res/android">
2016-12-17 14:26:06 +00:00
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-12-22 05:19:19 +00:00
android:descendantFocusability="blocksDescendants">
<RelativeLayout
android:id="@+id/inner"
android:layout_width="match_parent"
2016-12-17 14:26:06 +00:00
android:layout_height="wrap_content"
android:paddingBottom="8dp"
android:paddingLeft="@dimen/abc_action_bar_content_inset_material"
android:paddingRight="@dimen/abc_action_bar_content_inset_material"
android:paddingTop="8dp">
<TextView
android:id="@+id/label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_toLeftOf="@+id/state"
android:layout_toStartOf="@+id/state"
android:ellipsize="end"
android:maxLines="1"
android:textAppearance="?textAppearanceListItemPrimary" />
2016-12-17 14:26:06 +00:00
<TextView
android:id="@+id/state"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/id"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:textAppearance="?textAppearanceListItemSmall" />
<TextView
android:id="@+id/directory"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/state"
android:ellipsize="end"
android:textAppearance="?textAppearanceListItemSecondary" />
2016-12-17 14:26:06 +00:00
<TextView
android:id="@+id/items"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/directory"
android:textAppearance="?textAppearanceListItemSecondary" />
2016-12-17 14:26:06 +00:00
<TextView
android:id="@+id/size"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/items"
android:textAppearance="?textAppearanceListItemSecondary" />
<TextView
android:id="@+id/invalid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/size"
android:textAppearance="?textAppearanceListItemSecondary"
android:textColor="@color/text_red" />
2016-12-17 14:26:06 +00:00
</RelativeLayout>
<ImageButton
android:id="@+id/open_folder"
2016-12-17 14:26:06 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/inner"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/inner"
android:background="@null"
android:paddingBottom="5dp"
android:paddingEnd="20dp"
android:paddingLeft="25dp"
android:paddingRight="20dp"
android:paddingStart="30dp"
android:paddingTop="5dp"
android:src="@drawable/ic_folder_black_24dp" />
2016-12-17 14:26:06 +00:00
</RelativeLayout>
2016-12-17 14:26:06 +00:00
</layout>