admin panel

This commit is contained in:
shipovnikaaa 2025-02-19 15:32:57 +03:00
parent 52b4723ca9
commit 12cb03bfc8
3 changed files with 29 additions and 5 deletions

View File

@ -43,6 +43,7 @@ class RootActivity : AppCompatActivity() {
fragment<QrScanFragment, QrScanDestination>()
fragment<MainFragment, MainDestination>()
fragment<QrResultFragment, QrResultDestination>()
fragment<AdminFragment, >()
}
}

View File

@ -11,9 +11,11 @@
android:layout_height="wrap_content"
android:text="TextView"
android:textSize="24sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.17000002" />
<ImageView
android:id="@+id/photo"
@ -82,9 +84,29 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/scan" />
<Button
android:id="@+id/admin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="admin"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@+id/photo"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.666"
app:layout_constraintStart_toEndOf="@+id/photo"
app:layout_constraintTop_toBottomOf="@+id/fullname"
tools:visibility="visible" />
<ScrollView
android:layout_width="409dp"
android:layout_height="337dp"
app:layout_constraintTop_toBottomOf="@+id/error"
tools:layout_editor_absoluteX="1dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"></LinearLayout>
android:layout_height="wrap_content"
android:orientation="vertical" />
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -3,4 +3,5 @@
<string name="login_button">Login</string>
<string name="username_label">Username</string>
<string name="password_label">password</string>
<string name="login_admin_label">Login</string>
</resources>