liujiangyao лет назад: 7
Родитель
Сommit
4cde9e1aa9

+ 49 - 0
app/src/main/res/layout/homepage_item_get_award.xml

@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:layout_width="match_parent"
+    android:layout_height="wrap_content"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:paddingTop="@dimen/content_padding_10"
+    android:paddingBottom="@dimen/content_padding_10"
+    android:layout_margin="@dimen/content_padding_10">
+
+    <ImageView
+        android:id="@+id/homepage_item_get_award_iv"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:src="@mipmap/homepage_item_jiangli"/>
+
+    <TextView
+        android:id="@+id/homepage_item_get_award_name_tv"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:text="你还有329元的奖励未领取"
+        android:textColor="@color/black_333333"
+        android:textSize="@dimen/text_size_3"
+        app:layout_constraintLeft_toRightOf="@id/homepage_item_get_award_iv"
+        android:layout_marginLeft="@dimen/common_margin_10"/>
+
+    <TextView
+        android:id="@+id/homepage_item_money_tv"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:text="1234324"
+        app:layout_constraintStart_toStartOf="@id/homepage_item_get_award_name_tv"
+        app:layout_constraintTop_toBottomOf="@id/homepage_item_get_award_name_tv"
+        android:layout_marginTop="@dimen/common_margin_10"
+        android:textColor="@color/black_999999"
+        android:textSize="@dimen/text_size_12"/>
+
+    <TextView
+        android:id="@+id/homepage_item_juan_tv"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:text="1234324"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintTop_toBottomOf="@id/homepage_item_get_award_name_tv"
+        android:layout_marginTop="@dimen/common_margin_10"
+        android:textColor="@color/black_999999"
+        android:textSize="@dimen/text_size_12"/>
+
+</android.support.constraint.ConstraintLayout>

+ 72 - 0
app/src/main/res/layout/homepage_item_notice_and_currenttime.xml

@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:layout_width="match_parent"
+    android:layout_height="wrap_content"
+    android:paddingTop="@dimen/content_padding_10"
+    android:paddingBottom="@dimen/content_padding_10"
+    android:layout_margin="@dimen/content_padding_10">
+
+    <ImageView
+        android:id="@+id/notice_currenttime_iv"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:minHeight="55dp"
+        android:minWidth="55dp"
+        android:src="@mipmap/homepage_mianyangtt"/>
+
+    <LinearLayout
+        android:id="@+id/homepage_notice_layout"
+        android:layout_toRightOf="@+id/notice_currenttime_iv"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:orientation="horizontal"
+        android:gravity="center">
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:text="【公告】"/>
+        <com.sunfusheng.marqueeview.MarqueeView
+            android:id="@+id/homepage_item_notice_mv"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:paddingStart="@dimen/content_padding_10"
+            android:paddingEnd="@dimen/content_padding_10"
+            android:minHeight="30dp"
+            app:mvAnimDuration="1000"
+            app:mvDirection="bottom_to_top"
+            app:mvInterval="3000"
+            app:mvTextColor="@color/white"
+            app:mvTextSize="14sp"
+            app:mvSingleLine="true" />
+    </LinearLayout>
+    <LinearLayout
+        android:layout_below="@+id/homepage_notice_layout"
+        android:layout_toRightOf="@+id/notice_currenttime_iv"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:orientation="horizontal"
+        android:gravity="center">
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:text="【动态】"/>
+        <com.sunfusheng.marqueeview.MarqueeView
+            android:id="@+id/upview1"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:paddingStart="@dimen/content_padding_10"
+            android:paddingEnd="@dimen/content_padding_10"
+            android:minHeight="30dp"
+            app:mvAnimDuration="1000"
+            app:mvDirection="bottom_to_top"
+            app:mvInterval="3000"
+            app:mvTextColor="@color/white"
+            app:mvTextSize="14sp"
+            app:mvSingleLine="true" />
+    </LinearLayout>
+
+
+</RelativeLayout>

BIN
app/src/main/res/mipmap-xhdpi/homepage_item_jiangli.webp


BIN
app/src/main/res/mipmap-xhdpi/homepage_mianyangtt.webp


BIN
app/src/main/res/mipmap-xxhdpi/homepage_item_jiangli.webp


BIN
app/src/main/res/mipmap-xxhdpi/homepage_mianyangtt.webp