diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index fef6f59..4dfad4f 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -21,7 +21,7 @@ + android:label="@string/add_activity_title" /> diff --git a/app/src/main/res/drawable/ic_action_delete_black.xml b/app/src/main/res/drawable/ic_action_delete_black.xml new file mode 100644 index 0000000..c3e906d --- /dev/null +++ b/app/src/main/res/drawable/ic_action_delete_black.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout-land/config_activity.xml b/app/src/main/res/layout-land/config_activity.xml index aa310a4..72792af 100644 --- a/app/src/main/res/layout-land/config_activity.xml +++ b/app/src/main/res/layout-land/config_activity.xml @@ -17,15 +17,11 @@ android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="2" - android:background="?android:attr/colorPrimary" - android:paddingEnd="0dp" - android:paddingStart="4dp" tools:ignore="InconsistentLayout"> diff --git a/app/src/main/res/layout/config_activity.xml b/app/src/main/res/layout/config_activity.xml index d67e64b..0f21e2e 100644 --- a/app/src/main/res/layout/config_activity.xml +++ b/app/src/main/res/layout/config_activity.xml @@ -1,5 +1,7 @@ + android:layout_height="match_parent" + tools:ignore="MergeRootFrame" /> diff --git a/app/src/main/res/layout/config_detail_fragment.xml b/app/src/main/res/layout/config_detail_fragment.xml index b229e56..206263d 100644 --- a/app/src/main/res/layout/config_detail_fragment.xml +++ b/app/src/main/res/layout/config_detail_fragment.xml @@ -1,5 +1,7 @@ - + @@ -13,43 +15,72 @@ android:layout_height="match_parent" android:background="?android:attr/colorBackground"> - + android:orientation="vertical"> - + android:layout_marginBottom="4dp" + android:layout_marginEnd="8dp" + android:layout_marginStart="8dp" + android:layout_marginTop="8dp" + android:background="?android:attr/colorBackground" + android:elevation="2dp" + android:padding="8dp"> - + - + + + + + + - - + android:layout_marginBottom="4dp" + android:divider="@null" + android:orientation="vertical" + app:items="@{config.peers}" + app:layout="@{@layout/config_detail_peer}" + tools:ignore="UselessLeaf" /> + diff --git a/app/src/main/res/layout/config_detail_peer.xml b/app/src/main/res/layout/config_detail_peer.xml new file mode 100644 index 0000000..1bd1b33 --- /dev/null +++ b/app/src/main/res/layout/config_detail_peer.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/config_edit_fragment.xml b/app/src/main/res/layout/config_edit_fragment.xml index fa93651..8604532 100644 --- a/app/src/main/res/layout/config_edit_fragment.xml +++ b/app/src/main/res/layout/config_edit_fragment.xml @@ -1,6 +1,7 @@ + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools"> @@ -18,149 +19,198 @@ android:layout_height="match_parent" android:background="?android:attr/colorBackground"> - + android:orientation="vertical"> - - - - - + + + + + + + + + + + +