Jelajahi Sumber

[공통][Bug] 액션바 높이 수정
- 사실은 프로그레스바 위치가 잘못돼서 높이가 이상하게 보였음

hyodong.min 7 tahun lalu
induk
melakukan
4ad1f533d5

+ 6 - 4
app/src/main/res/layout/action_bar.xml

@@ -4,14 +4,16 @@
   xmlns:app="http://schemas.android.com/apk/res-auto"
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
-  android:layout_height="@dimen/action_bar_height"
+  android:layout_height="match_parent"
+  tools:layout_height="100dp"
+  android:gravity="top"
   android:background="@color/CFFFFFF"
-  android:gravity="center_vertical"
   android:orientation="vertical">
 
   <LinearLayout
     android:layout_width="match_parent"
-    android:layout_height="match_parent"
+    android:layout_height="58dp"
+    android:layout_gravity="center_vertical"
     android:gravity="center_vertical"
     android:paddingStart="14dp"
     android:paddingEnd="8dp"
@@ -68,7 +70,6 @@
       <!-- 타이틀 옆에 아이콘 자리 -->
     </android.support.constraint.ConstraintLayout>
 
-
     <ImageView
       android:id="@+id/button_search"
       android:layout_width="34dp"
@@ -99,6 +100,7 @@
   <RelativeLayout
     android:layout_width="match_parent"
     android:layout_height="4dp"
+    android:layout_gravity="bottom"
     android:gravity="start">
 
     <!--<LinearLayout-->

+ 1 - 2
app/src/main/res/values/dimens.xml

@@ -3,6 +3,5 @@
   <dimen name="activity_horizontal_margin">16dp</dimen>
   <dimen name="activity_vertical_margin">16dp</dimen>
   <dimen name="fab_margin">16dp</dimen>
-  <dimen name="appbar_padding_top">8dp</dimen>
-  <dimen name="action_bar_height">58dp</dimen>
+  <dimen name="action_bar_height">62dp</dimen>
 </resources>

+ 4 - 4
app/src/main/res/values/styles.xml

@@ -4,10 +4,10 @@
     <item name="android:windowBackground">@drawable/splash_background</item>
   </style>
 
-  <style name="AppTheme.NoActionBar">
-    <item name="windowActionBar">false</item>
-    <item name="windowNoTitle">true</item>
-  </style>
+  <!--<style name="AppTheme.NoActionBar">-->
+    <!--<item name="windowActionBar">false</item>-->
+    <!--<item name="windowNoTitle">true</item>-->
+  <!--</style>-->
 
   <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
     <!-- Customize your theme here. -->