Parcourir la source

#2019-07-26 08:48
- 검색 된 태그 클릭 시 수정화면으로 이동
- 4.1.0.004 테스트 배포

yeongyun il y a 6 ans
Parent
commit
5df3be5a54

+ 1 - 1
app/build.gradle

@@ -44,7 +44,7 @@ android {
         minSdkVersion 19    // 4.4
         targetSdkVersion 28
         versionCode 180
-        versionName "4.1.0.003"
+        versionName "4.1.0.004"
         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
         multiDexEnabled true
         vectorDrawables.useSupportLibrary = true

+ 6 - 2
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/search/SearchResultTagHolder.java

@@ -6,6 +6,7 @@ package kr.co.zumo.app.lifeplus.view.screen.search;
 import android.graphics.drawable.StateListDrawable;
 import android.support.v7.widget.RecyclerView;
 import android.view.View;
+import android.widget.Button;
 import android.widget.CheckBox;
 
 import kr.co.zumo.app.R;
@@ -36,9 +37,12 @@ public class SearchResultTagHolder extends RecyclerView.ViewHolder {
             checkTag.setButtonDrawable(new StateListDrawable());
             checkTag.setText(tag);
 
-            checkTag.setChecked(isChecked);
-            checkTag.setEnabled(false);
+            checkTag.setChecked(true);
+//            checkTag.setChecked(isChecked);
+//            checkTag.setEnabled(false);
             checkTag.setOnClickListener(v -> {
+                checkTag.setChecked(true);
+                listener.onEvent(new Event.Builder(Event.BLANK).build());
 //                listener.onEvent(new Event.Builder(Event.TAG).index(getAdapterPosition()).bool(checkTag.isChecked()).build());
             });
         }

+ 1 - 0
app/src/main/res/drawable/custom_rectangle_radio_on.xml

@@ -4,6 +4,7 @@
   <shape android:shape="rectangle">
     <corners android:radius="2dp"/>
     <stroke android:color="@color/C000000" android:width="1dp" />
+    <solid android:color="#ffffff"/>
   </shape>
 </item>
 </selector>

+ 24 - 26
app/src/main/res/layout/search_square_check_box.xml

@@ -1,30 +1,28 @@
 <?xml version="1.0" encoding="utf-8"?>
-<android.support.constraint.ConstraintLayout
-  xmlns:android="http://schemas.android.com/apk/res/android"
-  xmlns:app="http://schemas.android.com/apk/res-auto"
-  xmlns:tools="http://schemas.android.com/tools"
-  android:layout_width="wrap_content"
-  android:layout_height="match_parent">
-
-  <CheckBox
-    android:id="@+id/check_box"
+<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="wrap_content"
-    android:layout_height="26dp"
-    android:background="@drawable/custom_rectangle_radio_selector"
-    android:button="@null"
-    android:lineSpacingExtra="4sp"
-    android:paddingStart="17dp"
-    android:paddingEnd="17dp"
-    android:saveEnabled="false"
-    android:textAlignment="center"
-    android:textColor="@drawable/my_faq_radio_text_selector"
-    android:textSize="12dp"
-    app:layout_constraintBottom_toBottomOf="parent"
-    app:layout_constraintEnd_toEndOf="parent"
-    app:layout_constraintStart_toStartOf="parent"
-    app:layout_constraintTop_toTopOf="parent"
-    tools:checked="true"
-    tools:text="#산책부터목욕까지"
-    />
+    android:layout_height="match_parent">
+
+    <CheckBox
+        android:id="@+id/check_box"
+        android:layout_width="wrap_content"
+        android:layout_height="26dp"
+        android:background="@drawable/custom_rectangle_radio_selector"
+        android:button="@null"
+        android:lineSpacingExtra="4sp"
+        android:paddingStart="17dp"
+        android:paddingEnd="17dp"
+        android:saveEnabled="false"
+        android:textAlignment="center"
+        android:textColor="@drawable/my_faq_radio_text_selector"
+        android:textSize="12dp"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintTop_toTopOf="parent"
+        tools:checked="true"
+        tools:text="#산책부터목욕까지" />
 
 </android.support.constraint.ConstraintLayout>