Explorar el Código

[공통][Bug] 액션 바 높이 안 맞던 것 수정

hyodong.min hace 7 años
padre
commit
cca9b25875

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

@@ -4,10 +4,8 @@
   xmlns:app="http://schemas.android.com/apk/res-auto"
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
-  android:layout_height="wrap_content"
-  android:layout_gravity="fill_horizontal"
-  android:background="@null"
-  tools:layout_height="100dp">
+  android:layout_height="@dimen/action_bar_height"
+  android:background="@null">
 
   <android.support.constraint.ConstraintLayout
     android:layout_width="match_parent"
@@ -195,6 +193,7 @@
       android:layout_width="match_parent"
       android:layout_height="1dp"
       android:background="@color/CE5E5E5"
+      tools:visibility="gone"
       app:layout_constraintBottom_toBottomOf="parent"/>
   </android.support.constraint.ConstraintLayout>
 

+ 1 - 2
app/src/main/res/layout/activity_main.xml

@@ -29,8 +29,7 @@
     <android.support.v7.widget.Toolbar
       android:id="@+id/toolbar"
       android:layout_width="match_parent"
-      android:layout_height="wrap_content"
-      android:background="@color/CFFFFFF"
+      android:layout_height="@dimen/action_bar_height"
       android:minHeight="0dp"
       >
     </android.support.v7.widget.Toolbar>