|
|
|
@ -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); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|