|
|
|
@ -8,7 +8,7 @@ import android.widget.LinearLayout; |
|
|
|
import android.widget.TextView; |
|
|
|
|
|
|
|
import com.qhclh.ytzh.R; |
|
|
|
import com.qhclh.ytzh.base.BaseActivity; |
|
|
|
import com.qhclh.ytzh.work.carsmannage.BaseActivity1; |
|
|
|
|
|
|
|
import butterknife.BindView; |
|
|
|
import butterknife.OnClick; |
|
|
|
@ -17,8 +17,8 @@ import butterknife.OnClick; |
|
|
|
* Created by 青花瓷 on 2017/12/28. |
|
|
|
*/ |
|
|
|
|
|
|
|
public class InHouseActivity extends BaseActivity { |
|
|
|
@BindView(R.id.toolbar) |
|
|
|
public class InHouseActivity extends BaseActivity1 { |
|
|
|
@BindView(R.id.toolbar1) |
|
|
|
Toolbar mToolbar; |
|
|
|
|
|
|
|
@BindView(R.id.iv_inhouse_all) |
|
|
|
@ -118,21 +118,21 @@ public class InHouseActivity extends BaseActivity { |
|
|
|
clearAllTabState(); |
|
|
|
switch (tabPosition) { |
|
|
|
case TAB_POSITION_ALL: { |
|
|
|
iv_inhouse_all.setImageResource(R.drawable.shouye_3x); |
|
|
|
tv_inhouse_all.setTextColor(getResources().getColor(R.color.colorPrimary)); |
|
|
|
iv_inhouse_all.setImageResource(R.drawable.quanbu); |
|
|
|
tv_inhouse_all.setTextColor(getResources().getColor(R.color.white)); |
|
|
|
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)); |
|
|
|
iv_inhouse_no.setImageResource(R.drawable.weishen); |
|
|
|
tv_inhouse_no.setTextColor(getResources().getColor(R.color.white)); |
|
|
|
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)); |
|
|
|
iv_inhouse_yes.setImageResource(R.drawable.yishen1); |
|
|
|
tv_inhouse_yes.setTextColor(getResources().getColor(R.color.white)); |
|
|
|
ll_inhouse_yes.setBackgroundResource(R.drawable.shape_kuang2); |
|
|
|
break; |
|
|
|
} |
|
|
|
@ -142,15 +142,15 @@ public class InHouseActivity extends BaseActivity { |
|
|
|
|
|
|
|
private void clearAllTabState() { |
|
|
|
///< all |
|
|
|
iv_inhouse_all.setImageResource(R.drawable.shouye1_3x); |
|
|
|
iv_inhouse_all.setImageResource(R.drawable.quanbu1); |
|
|
|
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); |
|
|
|
iv_inhouse_no.setImageResource(R.drawable.weishen1); |
|
|
|
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); |
|
|
|
iv_inhouse_yes.setImageResource(R.drawable.yishen); |
|
|
|
tv_inhouse_yes.setTextColor(getResources().getColor(R.color.grey_767c82)); |
|
|
|
ll_inhouse_yes.setBackgroundResource(R.drawable.shape_kuang1); |
|
|
|
} |
|
|
|
|