Commit 7f70d655 authored by Mathilde BALLOUHEY's avatar Mathilde BALLOUHEY
Browse files

Ajout radioButton pour critère de recherche par défaut

parent e36fa22d
Pipeline #23339 failed with stages
in 2 minutes and 32 seconds
......@@ -11,145 +11,184 @@
android:layout_height="match_parent"
android:orientation="horizontal">
<androidx.constraintlayout.widget.ConstraintLayout
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="8dp"
android:layout_weight="1">
<LinearLayout
android:id="@+id/linearLayout3"
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/img_displayGif_gif"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/abc_vector_test" />
android:layout_margin="8dp">
<androidx.constraintlayout.widget.ConstraintLayout
<LinearLayout
android:id="@+id/linearLayout3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1">
<TextView
android:id="@+id/lbl_displayGif_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="TextView"
android:textAppearance="@style/AppTextTitle"
android:textSize="22sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/lbl_displayGif_titleTag"
android:layout_width="0dp"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/img_displayGif_gif"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/abc_vector_test" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="Tags :"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_name" />
<TextView
android:id="@+id/lbl_displayGif_tag"
android:layout_width="0dp"
android:layout_weight="1">
<TextView
android:id="@+id/lbl_displayGif_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="TextView"
android:textAppearance="@style/AppTextTitle"
android:textSize="22sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/lbl_displayGif_titleTag"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="Tags :"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_name" />
<TextView
android:id="@+id/lbl_displayGif_tag"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:text="TextView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_titleTag"
app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_titleTag" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
<TextView
android:id="@+id/lbl_displayGif_nbResult"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="40dp"
android:text="Nb Results"
app:layout_constraintStart_toStartOf="@+id/linearLayout3"
app:layout_constraintTop_toBottomOf="@+id/linearLayout3" />
<EditText
android:id="@+id/txt_displayGif_nbResult"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:ems="10"
android:inputType="numberDecimal"
android:text="8"
android:textColor="@color/white"
app:layout_constraintBottom_toBottomOf="@+id/lbl_displayGif_nbResult"
app:layout_constraintEnd_toEndOf="@+id/linearLayout3"
app:layout_constraintStart_toEndOf="@+id/lbl_displayGif_nbResult"
app:layout_constraintTop_toTopOf="@+id/lbl_displayGif_nbResult" />
<SeekBar
android:id="@+id/skbr_displayGif_nbResult"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:max="49"
android:progress="7"
app:layout_constraintEnd_toEndOf="@+id/txt_displayGif_nbResult"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_nbResult"
app:layout_constraintTop_toBottomOf="@+id/txt_displayGif_nbResult" />
<TextView
android:id="@+id/lbl_displayGif_recherche"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:text="Rechercher un gif"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_nbResult"
app:layout_constraintTop_toBottomOf="@+id/skbr_displayGif_nbResult" />
<TextView
android:id="@+id/lbl_displayGif_searchTenor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Search Tenor"
android:textSize="12sp"
app:layout_constraintEnd_toEndOf="@+id/lbl_displayGif_recherche"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_recherche"
app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_recherche" />
<RadioGroup
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:checkedButton="@id/rdbtn_displayGif_withSheet"
android:orientation="horizontal"
app:layout_constraintBottom_toTopOf="@+id/lbl_displayGif_searchTenor"
app:layout_constraintStart_toEndOf="@+id/lbl_displayGif_recherche"
app:layout_constraintTop_toTopOf="@+id/lbl_displayGif_recherche">
<RadioButton
android:id="@+id/rdbtn_displayGif_withSheet"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:text="TextView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_titleTag"
app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_titleTag" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
<TextView
android:id="@+id/lbl_displayGif_nbResult"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="40dp"
android:text="Nb Results"
app:layout_constraintStart_toStartOf="@+id/linearLayout3"
app:layout_constraintTop_toBottomOf="@+id/linearLayout3" />
<EditText
android:id="@+id/txt_displayGif_nbResult"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:ems="10"
android:inputType="numberDecimal"
android:text="8"
android:textColor="@color/white"
app:layout_constraintBottom_toBottomOf="@+id/lbl_displayGif_nbResult"
app:layout_constraintEnd_toEndOf="@+id/linearLayout3"
app:layout_constraintStart_toEndOf="@+id/lbl_displayGif_nbResult"
app:layout_constraintTop_toTopOf="@+id/lbl_displayGif_nbResult" />
<SeekBar
android:id="@+id/skbr_displayGif_nbResult"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:max="49"
android:progress="7"
app:layout_constraintEnd_toEndOf="@+id/txt_displayGif_nbResult"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_nbResult"
app:layout_constraintTop_toBottomOf="@+id/txt_displayGif_nbResult" />
<TextView
android:id="@+id/lbl_displayGif_recherche"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:text="Rechercher un gif"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_nbResult"
app:layout_constraintTop_toBottomOf="@+id/skbr_displayGif_nbResult" />
<EditText
android:id="@+id/txt_displayGif_recherche"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:ems="10"
android:inputType="textPersonName"
android:textColor="@color/white"
app:layout_constraintBottom_toBottomOf="@+id/lbl_displayGif_recherche"
app:layout_constraintStart_toEndOf="@+id/lbl_displayGif_recherche"
app:layout_constraintTop_toTopOf="@+id/lbl_displayGif_recherche" />
android:text="With Sheet"
android:textColor="@color/white" />
<TextView
android:id="@+id/lbl_displayGif_searchTenor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Search Tenor"
android:textSize="12sp"
app:layout_constraintEnd_toEndOf="@+id/lbl_displayGif_recherche"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_recherche"
app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_recherche" />
<Switch
android:id="@+id/swtch_displayGif_isNSFW"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="NSFW"
android:textColor="@color/white"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_recherche"
app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_recherche" />
<RadioButton
android:id="@+id/rdbtn_displayGif_withGif"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="With GIF"
android:textColor="@color/white" />
</RadioGroup>
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id="@+id/lbl_displayGif_orWith"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="TextView"
app:layout_constraintEnd_toStartOf="@+id/txt_displayGif_recherche"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_searchTenor" />
<EditText
android:id="@+id/txt_displayGif_recherche"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:ems="10"
android:inputType="textPersonName"
android:textColor="@color/white"
app:layout_constraintBottom_toBottomOf="@+id/lbl_displayGif_orWith"
app:layout_constraintStart_toEndOf="@+id/lbl_displayGif_recherche"
app:layout_constraintTop_toTopOf="@+id/lbl_displayGif_orWith" />
<Switch
android:id="@+id/swtch_displayGif_isNSFW"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="NSFW"
android:textColor="@color/white"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_recherche"
app:layout_constraintTop_toBottomOf="@+id/txt_displayGif_recherche" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
......
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<GridLayout 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_height="match_parent"
tools:context=".DisplayGIFActivity">
<LinearLayout
android:id="@+id/linearLayout3"
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
android:orientation="horizontal"
android:layout_height="match_parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/img_displayGif_gif"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_weight="1"
android:src="@drawable/abc_vector_test" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1">
android:layout_height="match_parent">
<TextView
android:id="@+id/lbl_displayGif_name"
android:layout_width="0dp"
<LinearLayout
android:id="@+id/linearLayout3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:text="TextView"
android:textAppearance="@style/AppTextTitle"
android:textSize="22sp"
android:layout_marginEnd="16dp"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/img_displayGif_gif"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/abc_vector_test" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1">
<TextView
android:id="@+id/lbl_displayGif_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="TextView"
android:textAppearance="@style/AppTextTitle"
android:textSize="22sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/lbl_displayGif_titleTag"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="Tags :"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_name" />
<TextView
android:id="@+id/lbl_displayGif_tag"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:text="TextView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_titleTag"
app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_titleTag" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
<TextView
android:id="@+id/lbl_displayGif_titleTag"
android:id="@+id/lbl_displayGif_titleRelatedGif"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:text="Related GIFs"
app:layout_constraintStart_toStartOf="@+id/linearLayout3"
app:layout_constraintTop_toBottomOf="@+id/linearLayout3" />
<TextView
android:id="@+id/lbl_displayGif_nbResult"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="48dp"
android:text="Nb Results"
app:layout_constraintStart_toEndOf="@+id/lbl_displayGif_titleRelatedGif"
app:layout_constraintTop_toTopOf="@+id/lbl_displayGif_titleRelatedGif" />
<EditText
android:id="@+id/txt_displayGif_nbResult"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:ems="10"
android:inputType="numberDecimal"
android:text="8"
android:textColor="@color/white"
app:layout_constraintBottom_toBottomOf="@+id/lbl_displayGif_nbResult"
app:layout_constraintEnd_toEndOf="@+id/linearLayout3"
app:layout_constraintStart_toEndOf="@+id/lbl_displayGif_nbResult"
app:layout_constraintTop_toTopOf="@+id/lbl_displayGif_nbResult" />
<Switch
android:id="@+id/swtch_displayGif_isNSFW"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="Tags :"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_name" />
android:text="NSFW"
android:textColor="@color/white"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_titleRelatedGif"
app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_titleRelatedGif" />
<SeekBar
android:id="@+id/skbr_displayGif_nbResult"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:max="49"
android:progress="7"
app:layout_constraintEnd_toEndOf="@+id/txt_displayGif_nbResult"
app:layout_constraintHorizontal_bias="0.391"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_nbResult"
app:layout_constraintTop_toBottomOf="@+id/txt_displayGif_nbResult" />
<TextView
android:id="@+id/lbl_displayGif_recherche"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="Search GIF"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_titleRelatedGif"
app:layout_constraintTop_toBottomOf="@+id/skbr_displayGif_nbResult" />
<RadioGroup
android:id="@+id/radioGroup2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checkedButton="@id/rdbtn_displayGif_withSheet"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="@+id/txt_displayGif_recherche"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_searchTenor"
app:layout_constraintTop_toBottomOf="@+id/swtch_displayGif_isNSFW">
<RadioButton
android:id="@+id/rdbtn_displayGif_withSheet"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="With Sheet"
android:textColor="@color/white" />
<RadioButton
android:id="@+id/rdbtn_displayGif_withGif"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="With GIF"
android:textColor="@color/white" />
</RadioGroup>
<TextView
android:id="@+id/lbl_displayGif_searchTenor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Search Tenor"
android:textSize="12sp"
app:layout_constraintEnd_toEndOf="@+id/lbl_displayGif_recherche"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_recherche"
app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_recherche" />
<TextView
android:id="@+id/lbl_displayGif_tag"
android:id="@+id/lbl_displayGif_orWith"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="Or with :"
app:layout_constraintEnd_toStartOf="@+id/txt_displayGif_recherche"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_searchTenor"
app:layout_constraintTop_toBottomOf="@+id/radioGroup2" />
<EditText
android:id="@+id/txt_displayGif_recherche"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:text="TextView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_titleTag"
app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_titleTag" />
android:ems="10"
android:inputType="textPersonName"
android:textColor="@color/white"
app:layout_constraintBottom_toBottomOf="@+id/lbl_displayGif_orWith"
app:layout_constraintEnd_toEndOf="@+id/txt_displayGif_nbResult"
app:layout_constraintStart_toEndOf="@+id/lbl_displayGif_recherche"
app:layout_constraintTop_toTopOf="@+id/lbl_displayGif_orWith" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rclr_displayGif_relatedGif"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/linearLayout3"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_titleRelatedGif"
app:layout_constraintTop_toBottomOf="@+id/txt_displayGif_recherche"
tools:listitem="@layout/layout_pattern_gif" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
<TextView
android:id="@+id/lbl_displayGif_titleRelatedGif"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:text="Related GIFs"
app:layout_constraintStart_toStartOf="@+id/linearLayout3"
app:layout_constraintTop_toBottomOf="@+id/linearLayout3" />
<TextView
android:id="@+id/lbl_displayGif_nbResult"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="48dp"
android:text="Nb Results"
app:layout_constraintStart_toEndOf="@+id/lbl_displayGif_titleRelatedGif"
app:layout_constraintTop_toTopOf="@+id/lbl_displayGif_titleRelatedGif" />
<EditText
android:id="@+id/txt_displayGif_nbResult"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:ems="10"
android:inputType="numberDecimal"
android:text="8"
android:textColor="@color/white"
app:layout_constraintBottom_toBottomOf="@+id/lbl_displayGif_nbResult"
app:layout_constraintEnd_toEndOf="@+id/linearLayout3"
app:layout_constraintStart_toEndOf="@+id/lbl_displayGif_nbResult"
app:layout_constraintTop_toTopOf="@+id/lbl_displayGif_nbResult" />
<Switch
android:id="@+id/swtch_displayGif_isNSFW"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="NSFW"
android:textColor="@color/white"
app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_titleRelatedGif"
app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_titleRelatedGif" />
<SeekBar
android:id="@+id/skbr_displayGif_nbResult"
android:layout_width="0dp"
android:layout_height="wrap_content"