Browse Source

no message

master
lh 8 years ago
parent
commit
3cb9894700
13 changed files with 17 additions and 19 deletions
  1. +12
    -12
      app/src/main/java/com/qhclh/ytzh/index/shangpin/InHouseActivity.java
  2. BIN
      app/src/main/res/drawable-xhdpi/infos.png
  3. BIN
      app/src/main/res/drawable-xhdpi/inhouse.png
  4. BIN
      app/src/main/res/drawable-xhdpi/quanbu.png
  5. BIN
      app/src/main/res/drawable-xhdpi/quanbu1.png
  6. BIN
      app/src/main/res/drawable-xhdpi/weishen.png
  7. BIN
      app/src/main/res/drawable-xhdpi/weishen1.png
  8. BIN
      app/src/main/res/drawable-xhdpi/yishen.png
  9. BIN
      app/src/main/res/drawable-xhdpi/yishen1.png
  10. +1
    -4
      app/src/main/res/drawable/shape_kuang2.xml
  11. +1
    -1
      app/src/main/res/layout/act_inhouse.xml
  12. +2
    -0
      app/src/main/res/menu/shangpinmenu.xml
  13. +1
    -2
      app/src/main/res/values/styles.xml

+ 12
- 12
app/src/main/java/com/qhclh/ytzh/index/shangpin/InHouseActivity.java View File

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


BIN
app/src/main/res/drawable-xhdpi/infos.png View File

Before After
Width: 62  |  Height: 58  |  Size: 2.5 KiB

BIN
app/src/main/res/drawable-xhdpi/inhouse.png View File

Before After
Width: 46  |  Height: 58  |  Size: 1.5 KiB

BIN
app/src/main/res/drawable-xhdpi/quanbu.png View File

Before After
Width: 60  |  Height: 60  |  Size: 3.1 KiB

BIN
app/src/main/res/drawable-xhdpi/quanbu1.png View File

Before After
Width: 60  |  Height: 60  |  Size: 2.5 KiB

BIN
app/src/main/res/drawable-xhdpi/weishen.png View File

Before After
Width: 49  |  Height: 56  |  Size: 1.7 KiB

BIN
app/src/main/res/drawable-xhdpi/weishen1.png View File

Before After
Width: 49  |  Height: 56  |  Size: 1.8 KiB

BIN
app/src/main/res/drawable-xhdpi/yishen.png View File

Before After
Width: 48  |  Height: 58  |  Size: 1.9 KiB

BIN
app/src/main/res/drawable-xhdpi/yishen1.png View File

Before After
Width: 48  |  Height: 58  |  Size: 1.8 KiB

+ 1
- 4
app/src/main/res/drawable/shape_kuang2.xml View File

@ -1,11 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/transp" />
<solid android:color="@color/green02aa3e" />
<stroke
android:width="@dimen/dp_0.5"
android:color="@color/colorPrimary" />
<size
android:width="@dimen/dp_20"
android:height="@dimen/dp_20" />

+ 1
- 1
app/src/main/res/layout/act_inhouse.xml View File

@ -3,7 +3,7 @@
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/include_tool_bar"/>
<include layout="@layout/include_tool_bar_white"/>
<include layout="@layout/include_inhousetab_bar"></include>
<include layout="@layout/include_line"></include>


+ 2
- 0
app/src/main/res/menu/shangpinmenu.xml View File

@ -3,10 +3,12 @@
xmlns:app="http://schemas.android.com/apk/res-auto">
<item android:id="@+id/shangpin_xiaoxi"
android:title="消息"
android:icon="@drawable/infos"
android:orderInCategory="70"
app:showAsAction="always" />
<item android:id="@+id/shangpin_rushedan"
android:title="入舍单"
android:icon="@drawable/inhouse"
android:orderInCategory="70"
app:showAsAction="always" />
</menu>

+ 1
- 2
app/src/main/res/values/styles.xml View File

@ -50,8 +50,7 @@
</style>
<style name="TabLayoutinhouse">
<item name="android:paddingTop">@dimen/tab_layout_padding</item>
<item name="android:paddingBottom">@dimen/dp_8</item>
<item name="android:padding">@dimen/dp_12</item>
<item name="android:layout_height">match_parent</item>
<!--<item name="android:background">@drawable/selector_white2gray</item>-->
<item name="android:layout_width">0dp</item>


Loading…
Cancel
Save