Skip to content

Commit

Permalink
#248 [FIX] : 배너 상단바 고정
Browse files Browse the repository at this point in the history
  • Loading branch information
HJinhee committed Apr 26, 2022
1 parent 0a14fb1 commit df02e8e
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 70 deletions.
36 changes: 19 additions & 17 deletions app/src/main/res/layout/activity_banner_about_charo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,39 @@
android:layout_height="match_parent"
tools:context=".presentation.ui.home.BannerAboutCharoActivity">

<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar_banner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
android:minHeight="78dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/txt_banner_about_charo"
android:textAppearance="@style/HeaderH4"
android:layout_gravity="center"
/>
</androidx.appcompat.widget.Toolbar>

<androidx.core.widget.NestedScrollView
android:id="@+id/nscv_banner_about_charo"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@+id/toolbar_banner"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="34dp"
>
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar_banner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
android:minHeight="78dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/txt_banner_about_charo"
android:textAppearance="@style/HeaderH4"
android:layout_gravity="center"
/>
</androidx.appcompat.widget.Toolbar>

<ImageView
android:id="@+id/iv_main_about_charo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@+id/toolbar_banner"
app:layout_constraintTop_toTopOf="parent"
android:background="@drawable/banner_img_four_detail"
android:contentDescription="@string/img_description"
/>
Expand Down
36 changes: 19 additions & 17 deletions app/src/main/res/layout/activity_banner_drive_theater.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,33 @@
android:layout_height="match_parent"
tools:context=".presentation.ui.home.BannerDriveTheaterActivity">

<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar_banner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
android:minHeight="78dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/txt_banner_theater"
android:textAppearance="@style/HeaderH4"
android:layout_gravity="center"
/>
</androidx.appcompat.widget.Toolbar>

<androidx.core.widget.NestedScrollView
android:id="@+id/nscv_banner_drive_theater"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@+id/toolbar_banner"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="34dp"
>
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar_banner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
android:minHeight="78dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/txt_banner_theater"
android:textAppearance="@style/HeaderH4"
android:layout_gravity="center"
/>
</androidx.appcompat.widget.Toolbar>

<ImageView
android:id="@+id/banner_theater_back_mid"
Expand Down Expand Up @@ -58,7 +60,7 @@
android:id="@+id/iv_main_drive_theater"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@+id/toolbar_banner"
app:layout_constraintTop_toTopOf="parent"
android:background="@drawable/banner_img_three_detail"
android:contentDescription="@string/img_description"
/>
Expand Down
39 changes: 20 additions & 19 deletions app/src/main/res/layout/activity_banner_gangneung.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,28 @@
android:layout_height="match_parent"
tools:context=".presentation.ui.home.BannerGangneungActivity">

<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar_banner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
android:background="@color/white"
android:minHeight="78dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/txt_banner_gangneung"
android:textAppearance="@style/HeaderH4"
android:layout_gravity="center"
/>
</androidx.appcompat.widget.Toolbar>

<androidx.core.widget.NestedScrollView
android:id="@+id/nscv_banner_gangneung"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@+id/toolbar_banner"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
Expand All @@ -25,23 +43,6 @@
android:contentDescription="@string/img_description"
/>

<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar_banner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
android:background="@color/white"
android:minHeight="78dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/txt_banner_gangneung"
android:textAppearance="@style/HeaderH4"
android:layout_gravity="center"
/>
</androidx.appcompat.widget.Toolbar>

<TextView
android:id="@+id/tv_text_sub_title_gangneung"
android:layout_width="0dp"
Expand All @@ -50,7 +51,7 @@
android:minWidth="109dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toolbar_banner"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginTop="30dp"
android:layout_marginHorizontal="20dp"
android:fontFamily="@font/jejugothic_regular"
Expand Down
36 changes: 19 additions & 17 deletions app/src/main/res/layout/activity_banner_spring_playlist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,39 @@
android:layout_height="match_parent"
tools:context=".presentation.ui.home.BannerSpringPlaylistActivity">

<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar_banner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
android:minHeight="78dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/txt_banner_spring_playlisr"
android:textAppearance="@style/HeaderH4"
android:layout_gravity="center"
/>
</androidx.appcompat.widget.Toolbar>

<androidx.core.widget.NestedScrollView
android:id="@+id/nscv_banner_spring_playlist"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@+id/toolbar_banner"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="25dp"
>
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar_banner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
android:minHeight="78dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/txt_banner_spring_playlisr"
android:textAppearance="@style/HeaderH4"
android:layout_gravity="center"
/>
</androidx.appcompat.widget.Toolbar>

<ImageView
android:id="@+id/iv_main_spring_playlist"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@+id/toolbar_banner"
app:layout_constraintTop_toTopOf="parent"
android:background="@drawable/banner_img_two_detail"
android:contentDescription="@string/img_description"
/>
Expand Down

0 comments on commit df02e8e

Please sign in to comment.