MOB-40 made user fragment scrollable, changed app logo

This commit is contained in:
Henrik Lepson 2021-11-29 20:22:20 +02:00
parent 94fad95364
commit 716b983389
4 changed files with 108 additions and 104 deletions

View File

@ -5,7 +5,7 @@
android:viewportWidth="108" android:viewportWidth="108"
android:viewportHeight="108"> android:viewportHeight="108">
<path <path
android:fillColor="#3DDC84" android:fillColor="#001970"
android:pathData="M0,0h108v108h-108z" /> android:pathData="M0,0h108v108h-108z" />
<path <path
android:fillColor="#00000000" android:fillColor="#00000000"

View File

@ -1,123 +1,127 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content">
android:padding="@dimen/padding" <androidx.constraintlayout.widget.ConstraintLayout
tools:context=".UserFragment"> xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
<com.google.android.material.card.MaterialCardView
android:id="@+id/card_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_margin="@dimen/margin" android:padding="@dimen/padding"
app:layout_constraintEnd_toEndOf="parent" tools:context=".UserFragment">
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:strokeWidth="1dp"
app:strokeColor="@color/stroke_color"
app:cardElevation="0dp">
<LinearLayout <com.google.android.material.card.MaterialCardView
android:id="@+id/card_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:layout_margin="@dimen/margin"
android:padding="@dimen/padding_tiny"> app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:strokeWidth="1dp"
app:strokeColor="@color/stroke_color"
app:cardElevation="0dp">
<TextView <LinearLayout
android:id="@+id/user_name_label"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/user_name_label" android:orientation="vertical"
android:textSize="@dimen/regular_text" /> android:padding="@dimen/padding_tiny">
<TextView <TextView
android:id="@+id/user_name" android:id="@+id/user_name_label"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_small" android:text="@string/user_name_label"
android:text="@string/user_name" android:textSize="@dimen/regular_text" />
android:textSize="@dimen/regular_text"
android:textStyle="bold" />
<TextView <TextView
android:id="@+id/identification_number_label" android:id="@+id/user_name"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_big" android:layout_marginTop="@dimen/margin_small"
android:text="@string/identification_number_label" android:text="@string/user_name"
android:textSize="@dimen/regular_text" /> android:textSize="@dimen/regular_text"
android:textStyle="bold" />
<TextView <TextView
android:id="@+id/identification_number" android:id="@+id/identification_number_label"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_small" android:layout_marginTop="@dimen/margin_big"
android:textSize="@dimen/regular_text" android:text="@string/identification_number_label"
android:textStyle="bold" /> android:textSize="@dimen/regular_text" />
<TextView <TextView
android:id="@+id/gender_label" android:id="@+id/identification_number"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_big" android:layout_marginTop="@dimen/margin_small"
android:text="@string/gender_label" android:textSize="@dimen/regular_text"
android:textSize="@dimen/regular_text" /> android:textStyle="bold" />
<TextView <TextView
android:id="@+id/gender" android:id="@+id/gender_label"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_small" android:layout_marginTop="@dimen/margin_big"
android:textSize="@dimen/regular_text" android:text="@string/gender_label"
android:textStyle="bold" /> android:textSize="@dimen/regular_text" />
<TextView <TextView
android:id="@+id/expiration_label" android:id="@+id/gender"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_big" android:layout_marginTop="@dimen/margin_small"
android:text="@string/expiration_label" android:textSize="@dimen/regular_text"
android:textSize="@dimen/regular_text" /> android:textStyle="bold" />
<TextView <TextView
android:id="@+id/expiration" android:id="@+id/expiration_label"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_small" android:layout_marginTop="@dimen/margin_big"
android:textSize="@dimen/regular_text" android:text="@string/expiration_label"
android:textStyle="bold" /> android:textSize="@dimen/regular_text" />
<TextView <TextView
android:id="@+id/citizenship_label" android:id="@+id/expiration"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_big" android:layout_marginTop="@dimen/margin_small"
android:text="@string/citizenship_label" android:textSize="@dimen/regular_text"
android:textSize="@dimen/regular_text" /> android:textStyle="bold" />
<TextView <TextView
android:id="@+id/citizenship" android:id="@+id/citizenship_label"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_small" android:layout_marginTop="@dimen/margin_big"
android:textSize="@dimen/regular_text" android:text="@string/citizenship_label"
android:textStyle="bold" /> android:textSize="@dimen/regular_text" />
</LinearLayout> <TextView
android:id="@+id/citizenship"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_small"
android:textSize="@dimen/regular_text"
android:textStyle="bold" />
</com.google.android.material.card.MaterialCardView> </LinearLayout>
<Button </com.google.android.material.card.MaterialCardView>
android:id="@+id/clear_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_big"
android:text="@string/return_text"
android:textSize="@dimen/regular_text"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/card_view" />
</androidx.constraintlayout.widget.ConstraintLayout> <Button
android:id="@+id/clear_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_big"
android:text="@string/return_text"
android:textSize="@dimen/regular_text"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/card_view" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" /> <background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" /> <foreground android:drawable="@drawable/ic_check_logo" />
</adaptive-icon> </adaptive-icon>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" /> <background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" /> <foreground android:drawable="@drawable/ic_check_logo" />
</adaptive-icon> </adaptive-icon>