From 826bf9d0a70a7ee1e6510779f2ec0f2810767210 Mon Sep 17 00:00:00 2001
From: lh <1209405678@qq.com>
Date: Thu, 28 Dec 2017 15:57:01 +0800
Subject: [PATCH] no message
---
.../ytzh/index/shangpin/InHouseActivity.java | 16 ++++++++++++++--
app/src/main/res/drawable/shape_kuang1.xml | 12 ++++++++++++
app/src/main/res/drawable/shape_kuang2.xml | 12 ++++++++++++
3 files changed, 38 insertions(+), 2 deletions(-)
create mode 100644 app/src/main/res/drawable/shape_kuang1.xml
create mode 100644 app/src/main/res/drawable/shape_kuang2.xml
diff --git a/app/src/main/java/com/qhclh/ytzh/index/shangpin/InHouseActivity.java b/app/src/main/java/com/qhclh/ytzh/index/shangpin/InHouseActivity.java
index fd26a50..e0abfc2 100644
--- a/app/src/main/java/com/qhclh/ytzh/index/shangpin/InHouseActivity.java
+++ b/app/src/main/java/com/qhclh/ytzh/index/shangpin/InHouseActivity.java
@@ -4,6 +4,7 @@ import android.support.v4.app.FragmentTransaction;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;
+import android.widget.LinearLayout;
import android.widget.TextView;
import com.qhclh.ytzh.R;
@@ -35,6 +36,13 @@ public class InHouseActivity extends BaseActivity {
@BindView(R.id.tv_inhouse_yes)
TextView tv_inhouse_yes;
+ @BindView(R.id.ll_inhouse_all)
+ LinearLayout ll_inhouse_all;
+ @BindView(R.id.ll_inhouse_no)
+ LinearLayout ll_inhouse_no;
+ @BindView(R.id.ll_inhouse_yes)
+ LinearLayout ll_inhouse_yes;
+
///< all
private static final int TAB_POSITION_ALL = 0;
///< no
@@ -112,17 +120,20 @@ public class InHouseActivity extends BaseActivity {
case TAB_POSITION_ALL: {
iv_inhouse_all.setImageResource(R.drawable.shouye_3x);
tv_inhouse_all.setTextColor(getResources().getColor(R.color.colorPrimary));
+ ll_inhouse_all.setBackgroundResource(R.drawable.shape_kuang2);
break;
}
case TAB_POSITION_NO: {
iv_inhouse_no.setImageResource(R.drawable.gongzuo_3x);
tv_inhouse_no.setTextColor(getResources().getColor(R.color.colorPrimary));
+ ll_inhouse_no.setBackgroundResource(R.drawable.shape_kuang2);
break;
}
case TAB_POSITION_YES: {
iv_inhouse_yes.setImageResource(R.drawable.wode_3x);
tv_inhouse_yes.setTextColor(getResources().getColor(R.color.colorPrimary));
+ ll_inhouse_yes.setBackgroundResource(R.drawable.shape_kuang2);
break;
}
@@ -133,14 +144,15 @@ public class InHouseActivity extends BaseActivity {
///< all
iv_inhouse_all.setImageResource(R.drawable.shouye1_3x);
tv_inhouse_all.setTextColor(getResources().getColor(R.color.grey_767c82));
+ ll_inhouse_all.setBackgroundResource(R.drawable.shape_kuang1);
///< no
iv_inhouse_no.setImageResource(R.drawable.gongzuo1_3x);
tv_inhouse_no.setTextColor(getResources().getColor(R.color.grey_767c82));
-
+ ll_inhouse_no.setBackgroundResource(R.drawable.shape_kuang1);
///< yes
iv_inhouse_yes.setImageResource(R.drawable.wode1_3x);
tv_inhouse_yes.setTextColor(getResources().getColor(R.color.grey_767c82));
-
+ ll_inhouse_yes.setBackgroundResource(R.drawable.shape_kuang1);
}
diff --git a/app/src/main/res/drawable/shape_kuang1.xml b/app/src/main/res/drawable/shape_kuang1.xml
new file mode 100644
index 0000000..f8ebce7
--- /dev/null
+++ b/app/src/main/res/drawable/shape_kuang1.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/shape_kuang2.xml b/app/src/main/res/drawable/shape_kuang2.xml
new file mode 100644
index 0000000..03fd286
--- /dev/null
+++ b/app/src/main/res/drawable/shape_kuang2.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
\ No newline at end of file