Browse Source

[회원가입][Bug] 액션바 '뒤로' 버튼 영역 조절: 키움

hyodong.min 7 years ago
parent
commit
597b7da064

+ 1 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/activity/SignUpActivity.java

@@ -55,7 +55,7 @@ public class SignUpActivity extends ActivityBase<SignUpPresenter> implements ISi
     TextView actionBarTitle = view.findViewById(R.id.action_bar_title);
     actionBarTitle.setText("");
 
-    view.findViewById(R.id.btnBack).setOnClickListener(v -> {
+    view.findViewById(R.id.button_back).setOnClickListener(v -> {
       onBackPressed();
     });
 

+ 6 - 7
app/src/main/res/layout/sign_up_action_bar.xml

@@ -13,22 +13,21 @@
     android:layout_height="match_parent"
     android:gravity="center_vertical">
 
-    <ImageButton
-      android:id="@+id/btnBack"
-      android:layout_width="wrap_content"
-      android:layout_height="wrap_content"
+    <ImageView
+      android:id="@+id/button_back"
+      android:layout_width="35dp"
+      android:layout_height="35dp"
+      android:padding="10dp"
       android:layout_marginStart="24dp"
-      android:background="@drawable/icon_header_back"
+      android:src="@drawable/icon_header_back"
       android:contentDescription="@string/previous_page"/>
 
     <TextView
       android:id="@+id/action_bar_title"
       android:layout_width="match_parent"
       android:layout_height="56dp"
-      android:layout_marginStart="18dp"
       android:layout_marginEnd="18dp"
       android:gravity="center_vertical"
-      android:textAlignment="center"
       android:textColor="@color/C000000"
       android:textSize="18sp"
       tools:text="action bar title"/>