mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-04 02:01:16 +00:00
Click region of Open folder button (#830)
* increased folder button size * increased folder button size * code formatting
This commit is contained in:
parent
9526eeb748
commit
1170d8ceb1
1 changed files with 70 additions and 57 deletions
|
@ -3,13 +3,18 @@
|
||||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:descendantFocusability="blocksDescendants">
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/inner"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingBottom="8dp"
|
android:paddingBottom="8dp"
|
||||||
android:paddingLeft="@dimen/abc_action_bar_content_inset_material"
|
android:paddingLeft="@dimen/abc_action_bar_content_inset_material"
|
||||||
android:paddingRight="@dimen/abc_action_bar_content_inset_material"
|
android:paddingRight="@dimen/abc_action_bar_content_inset_material"
|
||||||
android:paddingTop="8dp"
|
android:paddingTop="8dp">
|
||||||
android:descendantFocusability="blocksDescendants">
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/label"
|
android:id="@+id/label"
|
||||||
|
@ -32,17 +37,6 @@
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:textAppearance="?textAppearanceListItemSmall" />
|
android:textAppearance="?textAppearanceListItemSmall" />
|
||||||
|
|
||||||
<ImageButton
|
|
||||||
android:id="@+id/open_folder"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:padding="5dp"
|
|
||||||
android:layout_alignParentRight="true"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:src="@drawable/ic_folder_black_24dp"
|
|
||||||
android:background="@null"/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/directory"
|
android:id="@+id/directory"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -75,4 +69,23 @@
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/open_folder"
|
||||||
|
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" />
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
</layout>
|
</layout>
|
||||||
|
|
Loading…
Reference in a new issue