Check user validity and add a code view fragment

This commit is contained in:
2023-04-05 08:36:08 +02:00
parent 6687ce099d
commit 3b47bb7e7f
14 changed files with 160 additions and 21 deletions

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/code_content_view"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>

View File

@@ -4,20 +4,27 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
android:id="@+id/username_input"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="@+id/configure_button"
android:autofillHints="" />
<Button
android:id="@+id/configure_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/configure"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<EditText
android:id="@+id/username_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints=""
app:layout_constraintBottom_toTopOf="@+id/configure_button" />
<Button
android:id="@+id/configure_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/configure" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -28,4 +28,8 @@
android:id="@+id/repository_details_fragment"
android:name="fr.uca.iut.clfreville2.teaiswarm.fragment.RepositoryDetailsFragment"
android:label="RepositoryDetailsFragment" />
<fragment
android:id="@+id/code_view_fragment"
android:name="fr.uca.iut.clfreville2.teaiswarm.fragment.CodeViewFragment"
android:label="CodeViewFragment" />
</navigation>

View File

@@ -14,4 +14,5 @@
<string name="username">Username</string>
<string name="configure">Configure</string>
<string name="activity">Activity</string>
<string name="owner_not_found">User not found</string>
</resources>