Skip to content

Commit

Permalink
[MOD]#6 상단 바 로고 크기 일관화
Browse files Browse the repository at this point in the history
  • Loading branch information
nrj022 committed Feb 14, 2024
1 parent 35ba9b0 commit 8e3aa5c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 26 deletions.
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_card_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
android:src="@drawable/ic_arrow_left" />

<ImageView
android:layout_width="83dp"
android:layout_width="@dimen/app_bar_logo_width"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/ic_logo_lavender" />
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_card.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
android:paddingHorizontal="@dimen/horizontal_padding">

<ImageView
android:layout_width="83dp"
android:layout_width="@dimen/app_bar_logo_width"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/ic_logo_lavender" />
Expand Down
22 changes: 5 additions & 17 deletions app/src/main/res/layout/fragment_content.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
android:layout_height="match_parent"
android:paddingHorizontal="@dimen/horizontal_padding">
<ImageView
android:layout_width="83dp"
android:layout_width="@dimen/app_bar_logo_width"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/ic_logo_lavender" />
Expand All @@ -44,22 +44,9 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingTop="15dp"
app:layout_constraintTop_toBottomOf="@+id/toolbar">

<TextView
android:id="@+id/text_dashboard"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:textAlignment="center"
android:textSize="20sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand All @@ -79,14 +66,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/pretendard_medium"
android:paddingVertical="10dp"
android:paddingTop="10dp"
android:paddingBottom="15dp"
android:text="@string/content_list_description"
android:textColor="@color/gray_700"
android:textSize="16sp" />

</LinearLayout>
<androidx.compose.ui.platform.ComposeView
android:id="@+id/compose_view_word_card"
android:id="@+id/compose_view_fairytale"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
Expand Down
19 changes: 12 additions & 7 deletions app/src/main/res/layout/fragment_home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,20 @@
android:id="@+id/toolbar_home"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:contentInsetStart="0dp"
app:layout_constraintBottom_toTopOf="@+id/coordinator_layout_home"
android:paddingHorizontal="@dimen/horizontal_padding"
android:paddingVertical="@dimen/vertical_padding"
android:background="@color/lavender_500">
<ImageView
android:layout_width="83dp"
android:layout_height="wrap_content"
android:src="@drawable/ic_logo_white"
android:alpha="0.4" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingHorizontal="@dimen/horizontal_padding">
<ImageView
android:layout_width="@dimen/app_bar_logo_width"
android:layout_height="wrap_content"
android:layout_gravity="start|center_vertical"
android:src="@drawable/ic_logo_white"
android:alpha="0.4" />
</FrameLayout>
</androidx.appcompat.widget.Toolbar>

<androidx.coordinatorlayout.widget.CoordinatorLayout
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
<dimen name="activity_vertical_margin">16dp</dimen>
<dimen name="horizontal_padding">30dp</dimen>
<dimen name="vertical_padding">16dp</dimen>

<dimen name="main_list_bottom_padding">150dp</dimen>
<dimen name="app_bar_logo_width">100dp</dimen>
</resources>

0 comments on commit 8e3aa5c

Please sign in to comment.