From ef37517d2053f926c17fa04fa4f53e4d31eb45bb Mon Sep 17 00:00:00 2001 From: Felix Prahl-Kamps Date: Sun, 14 Jul 2019 19:17:32 +0200 Subject: [PATCH] improve exchange activity layout and functionality --- .idea/misc.xml | 2 +- app/build.gradle | 2 +- app/src/main/AndroidManifest.xml | 6 - .../mispbump/activities/ExchangeActivity.java | 67 ++++--- .../activities/ExchangeActivity2.java | 129 ------------ app/src/main/res/layout/activity_exchange.xml | 184 +++++++++++++----- .../main/res/layout/activity_exchange_2.xml | 177 ----------------- app/src/main/res/values-de/strings.xml | 5 + app/src/main/res/values/strings.xml | 5 + 9 files changed, 179 insertions(+), 398 deletions(-) delete mode 100644 app/src/main/java/lu/circl/mispbump/activities/ExchangeActivity2.java delete mode 100644 app/src/main/res/layout/activity_exchange_2.xml diff --git a/.idea/misc.xml b/.idea/misc.xml index 93a9df2..da7759f 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -38,7 +38,7 @@ - + diff --git a/app/build.gradle b/app/build.gradle index ad28876..631627d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -25,7 +25,7 @@ dependencies { // android implementation 'com.google.android.material:material:1.0.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0' - implementation 'androidx.appcompat:appcompat:1.1.0-beta01' + implementation 'androidx.appcompat:appcompat:1.1.0-rc01' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'androidx.cardview:cardview:1.0.0' implementation 'androidx.recyclerview:recyclerview:1.0.0' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 8e65ec5..9dde01d 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -28,12 +28,6 @@ - - + android:layout_height="match_parent" + android:background="@color/colorPrimaryDark"> + android:layout_height="match_parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + android:layout_width="0dp" + android:layout_height="0dp" + android:layout_marginTop="25dp" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" + android:gravity="center" + app:layout_constraintBottom_toTopOf="@id/navbar_bottom"> - - - + android:layout_marginStart="32dp" + android:layout_marginEnd="32dp" + android:layout_marginBottom="16dp" + android:background="@drawable/rect_rounded" + android:backgroundTint="@color/white_80" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toTopOf="@id/navbar_bottom"> - + + + + + + + + android:layout_marginStart="32dp" + android:layout_marginEnd="32dp" + android:layout_marginBottom="16dp" + android:background="@drawable/rect_rounded" + android:backgroundTint="@color/white_80"> + + + + + + + + + android:orientation="horizontal" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent"> + app:srcCompat="@drawable/ic_arrow_back" /> - + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginStart="8dp" + android:layout_marginEnd="8dp" + android:layout_weight="1" + android:text="Scan each others QR codes" + android:textAlignment="center" + android:textAppearance="@style/TextAppearance.MaterialComponents.Body1" + android:textColor="@color/white" /> - + app:srcCompat="@drawable/ic_arrow_forward" /> - \ No newline at end of file + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_exchange_2.xml b/app/src/main/res/layout/activity_exchange_2.xml deleted file mode 100644 index 05583ff..0000000 --- a/app/src/main/res/layout/activity_exchange_2.xml +++ /dev/null @@ -1,177 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index bf0e8df..dfe9f9a 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -39,4 +39,9 @@ Organisation hinzufügen Server hinzufügen Benutzer hinzufügen + Öffentlicher Schlüssel + Scannen Sie den QR code ihres Partners + Öffentlicher Schlüssel empfangen + Synchronisations-Informationen empfangen + Synchronisations-Informationen \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5688842..f3ff326 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -45,4 +45,9 @@ Add organisation Add sync user Add sync server + Public Key + Scan your partners QR code + Received public key + Received sync information + Sync Information