Check user validity and add a code view fragment
This commit is contained in:
11
app/src/main/res/layout/code_view_fragment.xml
Normal file
11
app/src/main/res/layout/code_view_fragment.xml
Normal 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>
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
Reference in New Issue
Block a user