|
@@ -44,7 +44,6 @@
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
-
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_notify_icon"
|
|
|
android:layout_width="wrap_content"
|
|
@@ -100,11 +99,256 @@
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
|
- <TextView
|
|
|
+ <androidx.core.widget.NestedScrollView
|
|
|
+ android:id="@+id/scrollView"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:gravity="center"
|
|
|
- android:text="HomePage" />
|
|
|
+ android:fillViewport="true"
|
|
|
+ android:scrollbars="vertical">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <!--金额和Point显示-->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="56dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/icon_wallet"
|
|
|
+ android:layout_width="@dimen/d_28dp"
|
|
|
+ android:layout_height="@dimen/d_28dp"
|
|
|
+ android:layout_marginLeft="@dimen/d_16dp"
|
|
|
+ android:src="@drawable/home_top_wallet"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="21dp"
|
|
|
+ android:layout_height="10dp"
|
|
|
+ android:layout_marginBottom="@dimen/d_20dp"
|
|
|
+ android:background="@drawable/chat_new_icon"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/icon_wallet"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/icon_wallet"
|
|
|
+ app:layout_constraintRight_toRightOf="@id/icon_wallet" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_wallet_money"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/d_14dp"
|
|
|
+ android:text="¥ 0"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/d_14sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/icon_wallet"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="5dp"
|
|
|
+ android:layout_height="9dp"
|
|
|
+ android:layout_marginLeft="@dimen/d_7dp"
|
|
|
+ android:src="@drawable/home_top_more"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/tv_wallet_money"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="@dimen/d_0.7dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/divider_color_f0" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/icon_rewards"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/d_19dp"
|
|
|
+ android:src="@drawable/home_top_point"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/d_10dp"
|
|
|
+ android:text="0 积分"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textColorHint="@color/black"
|
|
|
+ android:textSize="@dimen/d_14sp" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="@dimen/d_5dp"
|
|
|
+ android:layout_height="@dimen/d_9dp"
|
|
|
+ android:layout_marginLeft="@dimen/d_7dp"
|
|
|
+ android:src="@drawable/home_top_more" />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="@dimen/d_10dp"
|
|
|
+ android:background="@color/divider_color_f689" />
|
|
|
+
|
|
|
+ <!--轮播-->
|
|
|
+ <com.minminaya.widget.GeneralRoundConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/d_15dp"
|
|
|
+ android:layout_marginTop="@dimen/d_16dp"
|
|
|
+ android:layout_marginRight="@dimen/d_15dp"
|
|
|
+ app:corner_radius="@dimen/d_5dp">
|
|
|
+
|
|
|
+ <com.youth.banner.Banner
|
|
|
+ android:id="@+id/banner"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:background="@drawable/placeholder_img_banner"
|
|
|
+ app:banner_auto_loop="true"
|
|
|
+ app:banner_indicator_height="@dimen/d_5dp"
|
|
|
+ app:banner_indicator_marginBottom="-3dp"
|
|
|
+ app:banner_indicator_normal_color="@color/white"
|
|
|
+ app:banner_indicator_normal_width="@dimen/d_7dp"
|
|
|
+ app:banner_indicator_radius="@dimen/d_15dp"
|
|
|
+ app:banner_indicator_selected_color="@color/page_bg"
|
|
|
+ app:banner_indicator_selected_width="@dimen/d_17dp"
|
|
|
+ app:banner_loop_time="5000"
|
|
|
+ app:layout_constraintDimensionRatio="690:305"
|
|
|
+ tools:ignore="MissingConstraints" />
|
|
|
+
|
|
|
+ </com.minminaya.widget.GeneralRoundConstraintLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 热门 -->
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/d_15dp"
|
|
|
+ android:layout_marginTop="@dimen/d_18dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:drawableRight="@drawable/home_part_job_more"
|
|
|
+ android:drawablePadding="@dimen/d_11dp"
|
|
|
+ android:text="热门兼职工作"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/d_17sp" />
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/rv_hot_job"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/d_12dp"
|
|
|
+ android:layout_marginTop="@dimen/d_15dp"
|
|
|
+ android:overScrollMode="never" />
|
|
|
+
|
|
|
+ <!-- 当地市的工作 -->
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/d_15dp"
|
|
|
+ android:layout_marginTop="@dimen/d_18dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:drawableRight="@drawable/home_part_job_more"
|
|
|
+ android:drawablePadding="@dimen/d_11dp"
|
|
|
+ android:text="在武汉的工作"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/d_17sp" />
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/rv_city_job"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/d_12dp"
|
|
|
+ android:layout_marginTop="@dimen/d_15dp"
|
|
|
+ android:overScrollMode="never" />
|
|
|
+
|
|
|
+ <!-- 当地区域的工作 -->
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/d_15dp"
|
|
|
+ android:layout_marginTop="@dimen/d_18dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:drawableRight="@drawable/home_part_job_more"
|
|
|
+ android:drawablePadding="@dimen/d_11dp"
|
|
|
+ android:text="在东西湖区的工作"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/d_17sp" />
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/rv_area_job"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/d_12dp"
|
|
|
+ android:layout_marginTop="@dimen/d_15dp"
|
|
|
+ android:overScrollMode="never" />
|
|
|
+
|
|
|
+ <!--Job Tips-->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/d_18dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/d_15dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="YY 公告栏"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/d_17sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="@dimen/d_15dp"
|
|
|
+ android:text="查看全部"
|
|
|
+ android:textColor="@color/text_blue_3779ff"
|
|
|
+ android:textSize="@dimen/d_14sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/rv_job_tips"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/d_12dp"
|
|
|
+ android:layout_marginTop="@dimen/d_13dp"
|
|
|
+ android:overScrollMode="never" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="@dimen/d_10dp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </androidx.core.widget.NestedScrollView>
|
|
|
|
|
|
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
|
|
|