|
@@ -38,46 +38,48 @@
|
|
<!-- 底部的Tab -->
|
|
<!-- 底部的Tab -->
|
|
<LinearLayout
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:layout_height="@dimen/d_50dp"
|
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
android:background="@color/white"
|
|
android:background="@color/white"
|
|
android:gravity="center_vertical"
|
|
android:gravity="center_vertical"
|
|
- android:orientation="horizontal">
|
|
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
+ android:paddingTop="@dimen/d_3dp"
|
|
|
|
+ android:paddingBottom="@dimen/d_3dp">
|
|
|
|
|
|
<!--首页-->
|
|
<!--首页-->
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
- android:id="@+id/group_tab_parttime"
|
|
|
|
|
|
+ android:id="@+id/group_tab_home"
|
|
style="@style/SelectableItemBackgroundLess"
|
|
style="@style/SelectableItemBackgroundLess"
|
|
android:layout_width="0dp"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_weight="1"
|
|
- android:onClick="@{() -> click.switchPartTime()}">
|
|
|
|
|
|
+ android:onClick="@{() -> click.switchHome()}">
|
|
|
|
|
|
<ImageView
|
|
<ImageView
|
|
- android:id="@+id/iv_parttime_text"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:src="@drawable/selector_main_tab_parttime"
|
|
|
|
- app:layout_constraintBottom_toTopOf="@+id/tv_parttime_text"
|
|
|
|
|
|
+ android:id="@+id/iv_home_text"
|
|
|
|
+ android:layout_width="@dimen/d_25dp"
|
|
|
|
+ android:layout_height="@dimen/d_25dp"
|
|
|
|
+ android:src="@drawable/selector_main_tab_home"
|
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/tv_home_text"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_chainStyle="packed" />
|
|
app:layout_constraintVertical_chainStyle="packed" />
|
|
|
|
|
|
- <com.guadou.lib_baselib.font_text_view.TextViewMedium
|
|
|
|
- android:id="@+id/tv_parttime_text"
|
|
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_home_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:layout_marginTop="@dimen/d_3dp"
|
|
|
|
|
|
+ android:layout_marginTop="@dimen/d_1dp"
|
|
android:text="首页"
|
|
android:text="首页"
|
|
android:textColor="@color/selector_tab_main_text"
|
|
android:textColor="@color/selector_tab_main_text"
|
|
android:textSize="@dimen/d_12sp"
|
|
android:textSize="@dimen/d_12sp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
- app:layout_constraintTop_toBottomOf="@+id/iv_parttime_text" />
|
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_home_text" />
|
|
|
|
|
|
<TextView
|
|
<TextView
|
|
- android:id="@+id/tv_parttime_unread_num"
|
|
|
|
|
|
+ android:id="@+id/tv_home_unread_num"
|
|
android:layout_width="@dimen/d_15dp"
|
|
android:layout_width="@dimen/d_15dp"
|
|
android:layout_height="@dimen/d_15dp"
|
|
android:layout_height="@dimen/d_15dp"
|
|
android:layout_marginLeft="@dimen/d_30dp"
|
|
android:layout_marginLeft="@dimen/d_30dp"
|
|
@@ -95,39 +97,39 @@
|
|
|
|
|
|
<!-- 兼职 -->
|
|
<!-- 兼职 -->
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
- android:id="@+id/group_tab_newsfeed"
|
|
|
|
|
|
+ android:id="@+id/group_tab_parttime"
|
|
style="@style/SelectableItemBackgroundLess"
|
|
style="@style/SelectableItemBackgroundLess"
|
|
android:layout_width="0dp"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_weight="1"
|
|
- android:onClick="@{() -> click.switchNewsFeed()}">
|
|
|
|
|
|
+ android:onClick="@{() -> click.switchPartTime()}">
|
|
|
|
|
|
<ImageView
|
|
<ImageView
|
|
- android:id="@+id/iv_newsfeed_text"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:src="@drawable/selector_main_tab_newsfeed"
|
|
|
|
- app:layout_constraintBottom_toTopOf="@+id/tv_newsfeed_text"
|
|
|
|
|
|
+ android:id="@+id/iv_parttime_text"
|
|
|
|
+ android:layout_width="@dimen/d_25dp"
|
|
|
|
+ android:layout_height="@dimen/d_25dp"
|
|
|
|
+ android:src="@drawable/selector_main_tab_partjob"
|
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/tv_parttime_text"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_chainStyle="packed" />
|
|
app:layout_constraintVertical_chainStyle="packed" />
|
|
|
|
|
|
- <com.guadou.lib_baselib.font_text_view.TextViewMedium
|
|
|
|
- android:id="@+id/tv_newsfeed_text"
|
|
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_parttime_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:layout_marginTop="@dimen/d_3dp"
|
|
|
|
|
|
+ android:layout_marginTop="@dimen/d_1dp"
|
|
android:text="兼职"
|
|
android:text="兼职"
|
|
android:textColor="@color/selector_tab_main_text"
|
|
android:textColor="@color/selector_tab_main_text"
|
|
android:textSize="@dimen/d_12sp"
|
|
android:textSize="@dimen/d_12sp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
- app:layout_constraintTop_toBottomOf="@+id/iv_newsfeed_text" />
|
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_parttime_text" />
|
|
|
|
|
|
<TextView
|
|
<TextView
|
|
- android:id="@+id/tv_newsfeed_unread_num"
|
|
|
|
|
|
+ android:id="@+id/tv_parttime_unread_num"
|
|
android:layout_width="@dimen/d_15dp"
|
|
android:layout_width="@dimen/d_15dp"
|
|
android:layout_height="@dimen/d_15dp"
|
|
android:layout_height="@dimen/d_15dp"
|
|
android:layout_marginLeft="@dimen/d_30dp"
|
|
android:layout_marginLeft="@dimen/d_30dp"
|
|
@@ -145,39 +147,39 @@
|
|
|
|
|
|
<!-- 工作状态 -->
|
|
<!-- 工作状态 -->
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
- android:id="@+id/group_tab_notify"
|
|
|
|
|
|
+ android:id="@+id/group_tab_actives"
|
|
style="@style/SelectableItemBackgroundLess"
|
|
style="@style/SelectableItemBackgroundLess"
|
|
android:layout_width="0dp"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_weight="1"
|
|
- android:onClick="@{() -> click.switchNotification()}">
|
|
|
|
|
|
+ android:onClick="@{() -> click.switchActives()}">
|
|
|
|
|
|
<ImageView
|
|
<ImageView
|
|
- android:id="@+id/iv_notify_text"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:src="@drawable/selector_main_tab_notify"
|
|
|
|
- app:layout_constraintBottom_toTopOf="@+id/tv_notify_text"
|
|
|
|
|
|
+ android:id="@+id/iv_actives_text"
|
|
|
|
+ android:layout_width="@dimen/d_25dp"
|
|
|
|
+ android:layout_height="@dimen/d_25dp"
|
|
|
|
+ android:src="@drawable/selector_main_tab_active"
|
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/tv_actives_text"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_chainStyle="packed" />
|
|
app:layout_constraintVertical_chainStyle="packed" />
|
|
|
|
|
|
- <com.guadou.lib_baselib.font_text_view.TextViewMedium
|
|
|
|
- android:id="@+id/tv_notify_text"
|
|
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_actives_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:layout_marginTop="@dimen/d_3dp"
|
|
|
|
|
|
+ android:layout_marginTop="@dimen/d_1dp"
|
|
android:text="工作状态"
|
|
android:text="工作状态"
|
|
android:textColor="@color/selector_tab_main_text"
|
|
android:textColor="@color/selector_tab_main_text"
|
|
android:textSize="@dimen/d_12sp"
|
|
android:textSize="@dimen/d_12sp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
- app:layout_constraintTop_toBottomOf="@+id/iv_notify_text" />
|
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_actives_text" />
|
|
|
|
|
|
<TextView
|
|
<TextView
|
|
- android:id="@+id/tv_notify_unread_num"
|
|
|
|
|
|
+ android:id="@+id/tv_actives_unread_num"
|
|
android:layout_width="@dimen/d_8dp"
|
|
android:layout_width="@dimen/d_8dp"
|
|
android:layout_height="@dimen/d_8dp"
|
|
android:layout_height="@dimen/d_8dp"
|
|
android:layout_marginLeft="@dimen/d_30dp"
|
|
android:layout_marginLeft="@dimen/d_30dp"
|
|
@@ -203,14 +205,14 @@
|
|
android:orientation="vertical">
|
|
android:orientation="vertical">
|
|
|
|
|
|
<ImageView
|
|
<ImageView
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
|
+ android:layout_width="@dimen/d_25dp"
|
|
|
|
+ android:layout_height="@dimen/d_25dp"
|
|
android:src="@drawable/selector_main_tab_wallet" />
|
|
android:src="@drawable/selector_main_tab_wallet" />
|
|
|
|
|
|
<com.guadou.lib_baselib.font_text_view.TextViewMedium
|
|
<com.guadou.lib_baselib.font_text_view.TextViewMedium
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:layout_marginTop="@dimen/d_3dp"
|
|
|
|
|
|
+ android:layout_marginTop="@dimen/d_1dp"
|
|
android:text="钱包"
|
|
android:text="钱包"
|
|
android:textColor="@color/selector_tab_main_text"
|
|
android:textColor="@color/selector_tab_main_text"
|
|
android:textSize="@dimen/d_12sp" />
|
|
android:textSize="@dimen/d_12sp" />
|
|
@@ -224,12 +226,12 @@
|
|
android:layout_width="0dp"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_weight="1"
|
|
- android:onClick="@{() -> click.switchMe()}">
|
|
|
|
|
|
+ android:onClick="@{() -> click.switchProfile()}">
|
|
|
|
|
|
<ImageView
|
|
<ImageView
|
|
android:id="@+id/iv_me_text"
|
|
android:id="@+id/iv_me_text"
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
|
+ android:layout_width="@dimen/d_25dp"
|
|
|
|
+ android:layout_height="@dimen/d_25dp"
|
|
android:src="@drawable/selector_main_tab_me"
|
|
android:src="@drawable/selector_main_tab_me"
|
|
app:layout_constraintBottom_toTopOf="@+id/tv_me_text"
|
|
app:layout_constraintBottom_toTopOf="@+id/tv_me_text"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
@@ -237,11 +239,11 @@
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_chainStyle="packed" />
|
|
app:layout_constraintVertical_chainStyle="packed" />
|
|
|
|
|
|
- <com.guadou.lib_baselib.font_text_view.TextViewMedium
|
|
|
|
|
|
+ <TextView
|
|
android:id="@+id/tv_me_text"
|
|
android:id="@+id/tv_me_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:layout_marginTop="@dimen/d_3dp"
|
|
|
|
|
|
+ android:layout_marginTop="@dimen/d_1dp"
|
|
android:text="我的"
|
|
android:text="我的"
|
|
android:textColor="@color/selector_tab_main_text"
|
|
android:textColor="@color/selector_tab_main_text"
|
|
android:textSize="@dimen/d_12sp"
|
|
android:textSize="@dimen/d_12sp"
|