Image für otp-Codes hinzugefügt

This commit is contained in:
JG-Cody 2023-09-19 18:16:50 +02:00
parent 7d8a38fad7
commit fb989b5018
4 changed files with 80 additions and 48 deletions

View File

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetDropDown">
<runningDeviceTargetSelectedWithDropDown>
<Target>
<type value="RUNNING_DEVICE_TARGET" />
<deviceKey>
<Key>
<type value="SERIAL_NUMBER" />
<value value="R38N50464FV" />
</Key>
</deviceKey>
</Target>
</runningDeviceTargetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2023-09-18T17:20:49.048823275Z" />
</component>
</project>

View File

@ -10,8 +10,8 @@
<option name="gradleJvm" value="jbr-17" /> <option name="gradleJvm" value="jbr-17" />
<option name="modules"> <option name="modules">
<set> <set>
<option value="/mnt/sshd/Files/Desktop/testing/android/Cringe-Authenticator" /> <option value="$PROJECT_DIR$" />
<option value="/mnt/sshd/Files/Desktop/testing/android/Cringe-Authenticator/app" /> <option value="$PROJECT_DIR$/app" />
</set> </set>
</option> </option>
</GradleProjectSettings> </GradleProjectSettings>

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:bottom="0dp"
android:left="0dp"
android:right="0dp"
android:top="0dp">
<shape>
<stroke
android:width="0dp" />
<gradient
android:angle="180"
android:endColor="?attr/colorTheme1"
android:startColor="?attr/colorScheme" />
<corners
android:bottomLeftRadius="500dp"
android:bottomRightRadius="500dp"
android:topLeftRadius="500dp"
android:topRightRadius="500dp" />
</shape>
</item>
</layer-list>

View File

@ -1,46 +1,73 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" 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="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@drawable/button_themed"
android:layout_margin="5dp" android:layout_margin="5dp"
android:background="@drawable/button_themed"
android:orientation="vertical"
android:padding="5dp"> android:padding="5dp">
<TextView
android:id="@+id/label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="My OTP"
android:textAlignment="center"
android:textSize="16sp"/>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center" android:orientation="horizontal">
android:layout_marginEnd="10dp"
android:layout_marginStart="10dp">
<Space
android:layout_width="30dp"
android:layout_height="30dp" />
<TextView
android:id="@+id/otpCode"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="000000"
android:textAlignment="center"
android:textSize="24sp" />
<ImageView <ImageView
android:id="@+id/progress" android:id="@+id/imageView5"
android:layout_width="30dp" android:layout_width="60dp"
android:layout_height="30dp" android:layout_height="match_parent"
app:srcCompat="@drawable/progress_circle" /> android:scaleX="0.8"
android:scaleY="0.8"
app:srcCompat="@drawable/cringeauth_white"
tools:srcCompat="@drawable/cringeauth_white" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="bottom"
android:minHeight="25dp"
android:text="My OTP"
android:textAlignment="center"
android:textSize="16sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:gravity="center">
<Space
android:layout_width="30dp"
android:layout_height="match_parent" />
<TextView
android:id="@+id/otpCode"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="top"
android:text="000000"
android:textAlignment="center"
android:textSize="24sp" />
<ImageView
android:id="@+id/progress"
android:layout_width="30dp"
android:layout_height="30dp"
app:srcCompat="@drawable/progress_circle" />
</LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>