diff options
| author | Clyhtsuriva <aimeric@adjutor.xyz> | 2021-02-12 11:00:47 +0100 | 
|---|---|---|
| committer | Clyhtsuriva <aimeric@adjutor.xyz> | 2021-02-12 11:00:47 +0100 | 
| commit | 3decfd9d0d043c710f48cc145027a7b6bd45df8f (patch) | |
| tree | 1c9a83333062654fc2477fca074a6e84b664a9fd /app/src/main/res/layout | |
| parent | b96bca561c321fb259895d470b2d01d9c0f34ea9 (diff) | |
Renaming and adding some functions for the home buttons.
Diffstat (limited to 'app/src/main/res/layout')
| -rw-r--r-- | app/src/main/res/layout/activity_main.xml | 2 | ||||
| -rw-r--r-- | app/src/main/res/layout/fragment_first.xml | 46 | ||||
| -rw-r--r-- | app/src/main/res/layout/fragment_second.xml | 10 | 
3 files changed, 37 insertions, 21 deletions
| diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index bd973bc..b0826f8 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -23,7 +23,7 @@      <include layout="@layout/content_main" />      <com.google.android.material.floatingactionbutton.FloatingActionButton -        android:id="@+id/fab" +        android:id="@+id/info"          android:layout_width="wrap_content"          android:layout_height="wrap_content"          android:layout_gravity="bottom|end" 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 diff --git a/app/src/main/res/layout/fragment_second.xml b/app/src/main/res/layout/fragment_second.xml index bd90524..daabf01 100644 --- a/app/src/main/res/layout/fragment_second.xml +++ b/app/src/main/res/layout/fragment_second.xml @@ -4,22 +4,24 @@      xmlns:tools="http://schemas.android.com/tools"      android:layout_width="match_parent"      android:layout_height="match_parent" -    tools:context=".SecondFragment"> +    tools:context=".SecondFragment" +    android:background="@color/very_dark_purple" +    >      <TextView          android:id="@+id/textview_second"          android:layout_width="wrap_content"          android:layout_height="wrap_content" -        app:layout_constraintBottom_toTopOf="@id/button_second" +        app:layout_constraintBottom_toTopOf="@id/home"          app:layout_constraintEnd_toEndOf="parent"          app:layout_constraintStart_toStartOf="parent"          app:layout_constraintTop_toTopOf="parent" />      <Button -        android:id="@+id/button_second" +        android:id="@+id/home"          android:layout_width="wrap_content"          android:layout_height="wrap_content" -        android:text="@string/previous" +        android:text="@string/home"          app:layout_constraintBottom_toBottomOf="parent"          app:layout_constraintEnd_toEndOf="parent"          app:layout_constraintStart_toStartOf="parent" | 
