|
|
|
@ -3,14 +3,115 @@
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:paddingHorizontal="30dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
tools:context=".view.HomeActivity">
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/button"
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textViewTitle"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="Button"
|
|
|
|
|
tools:layout_editor_absoluteX="25dp"
|
|
|
|
|
tools:layout_editor_absoluteY="14dp" />
|
|
|
|
|
android:layout_marginTop="40dp"
|
|
|
|
|
android:text="Hello Varun"
|
|
|
|
|
android:textSize="20sp"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:textColor="@color/title"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textViewSubtitle"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
|
android:text="Welcome Back!"
|
|
|
|
|
android:textSize="28sp"
|
|
|
|
|
android:textColor="@color/black"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/textViewTitle"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/searchBarContainer"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="45dp"
|
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:background="@drawable/background"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textViewSubtitle"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="28dp"
|
|
|
|
|
android:layout_height="28dp"
|
|
|
|
|
android:src="@drawable/SearchIcon"
|
|
|
|
|
android:contentDescription="search icon"/>
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/searchBar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:drawablePadding="8dp"
|
|
|
|
|
android:hint="Search for a league, team, etc."
|
|
|
|
|
android:inputType="text"
|
|
|
|
|
android:maxLines="1"
|
|
|
|
|
android:textColorHint="#B0B0B0"
|
|
|
|
|
android:textSize="15dp"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textViewRecentMatches"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
|
android:text="Recent Matches"
|
|
|
|
|
android:textColor="@color/title"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:textSize="20dp"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/searchBarContainer"/>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/CardContainer"
|
|
|
|
|
android:background="@drawable/background"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/textViewRecentMatches"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textColor="@color/title"
|
|
|
|
|
android:textSize="15dp"
|
|
|
|
|
android:maxLines="1"
|
|
|
|
|
android:ellipsize="end"
|
|
|
|
|
android:text="Champions League - Groupe Stage: Matchay"/>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|