summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/fragment_first.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/fragment_first.xml')
-rw-r--r--app/src/main/res/layout/fragment_first.xml46
1 files changed, 30 insertions, 16 deletions
diff --git a/app/src/main/res/layout/fragment_first.xml b/app/src/main/res/layout/fragment_first.xml
index c2b4de3..46033be 100644
--- a/app/src/main/res/layout/fragment_first.xml
+++ b/app/src/main/res/layout/fragment_first.xml
@@ -4,41 +4,55 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ tools:context=".FirstFragment"
android:background="@color/very_dark_purple"
- tools:context=".FirstFragment">
+ >
<TextView
- android:id="@+id/textview_first"
+ android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/black"
android:fontFamily="@font/bangers"
- android:text="@string/hello_first_fragment"
+ android:text="@string/app_name"
android:textAlignment="center"
android:textColor="@color/strong_pink"
- android:textSize="36sp"
- app:layout_constraintBottom_toTopOf="@id/button_first"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
+ android:textSize="40sp"
+ app:layout_constraintBottom_toTopOf="@id/news"
+ app:layout_constraintTop_toTopOf="parent"
+ />
<Button
- android:id="@+id/button_first"
+ android:id="@+id/news"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/press_on_me"
+ android:text="@string/news"
+ app:layout_constraintTop_toBottomOf="@id/title"
app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/textview_first" />
+ app:layout_constraintEnd_toStartOf="@id/article"
+ />
+
+ <Button
+ android:id="@+id/article"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/article"
+ app:layout_constraintTop_toBottomOf="@id/title"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toEndOf="@id/news"
+ app:layout_constraintEnd_toStartOf="@id/top_manga"
+ />
<Button
- android:id="@+id/button_second"
+ android:id="@+id/top_manga"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/no_press_on_me"
+ android:text="@string/top_manga"
+ app:layout_constraintTop_toBottomOf="@id/title"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toEndOf="@id/article"
app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/button_first" />
+ />
</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file