1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-03 17:51:17 +00:00

Click region of Open folder button (#830)

* increased folder button size

* increased folder button size

* code formatting
This commit is contained in:
Paul Annekov 2017-01-10 18:27:39 +02:00 committed by Felix Ableitner
parent 9526eeb748
commit 1170d8ceb1

View file

@ -5,73 +5,86 @@
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" 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"
android:descendantFocusability="blocksDescendants"> android:descendantFocusability="blocksDescendants">
<TextView <RelativeLayout
android:id="@+id/label" android:id="@+id/inner"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentLeft="true" android:paddingBottom="8dp"
android:layout_alignParentStart="true" android:paddingLeft="@dimen/abc_action_bar_content_inset_material"
android:layout_toLeftOf="@+id/state" android:paddingRight="@dimen/abc_action_bar_content_inset_material"
android:layout_toStartOf="@+id/state" android:paddingTop="8dp">
android:ellipsize="end"
android:maxLines="1"
android:textAppearance="?textAppearanceListItemPrimary" />
<TextView <TextView
android:id="@+id/state" android:id="@+id/label"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignBottom="@id/id" android:layout_alignParentLeft="true"
android:layout_alignParentEnd="true" android:layout_alignParentStart="true"
android:layout_alignParentRight="true" android:layout_toLeftOf="@+id/state"
android:textAppearance="?textAppearanceListItemSmall" /> android:layout_toStartOf="@+id/state"
android:ellipsize="end"
android:maxLines="1"
android:textAppearance="?textAppearanceListItemPrimary" />
<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" />
<TextView
android:id="@+id/items"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/directory"
android:textAppearance="?textAppearanceListItemSecondary" />
<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" />
</RelativeLayout>
<ImageButton <ImageButton
android:id="@+id/open_folder" android:id="@+id/open_folder"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="5dp" android:layout_alignBottom="@+id/inner"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_centerVertical="true" android:layout_alignParentRight="true"
android:src="@drawable/ic_folder_black_24dp" android:layout_alignTop="@+id/inner"
android:background="@null"/> android:background="@null"
android:paddingBottom="5dp"
<TextView android:paddingEnd="20dp"
android:id="@+id/directory" android:paddingLeft="25dp"
android:layout_width="wrap_content" android:paddingRight="20dp"
android:layout_height="wrap_content" android:paddingStart="30dp"
android:layout_below="@id/state" android:paddingTop="5dp"
android:ellipsize="end" android:src="@drawable/ic_folder_black_24dp" />
android:textAppearance="?textAppearanceListItemSecondary" />
<TextView
android:id="@+id/items"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/directory"
android:textAppearance="?textAppearanceListItemSecondary" />
<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" />
</RelativeLayout> </RelativeLayout>