Quellcode durchsuchen

签到界面中图片修改到服务器,文件用原生的,否则可能模糊

zengjiebin vor 7 Jahren
Ursprung
Commit
45ac806b5d

+ 6 - 1
app/src/main/java/com/sheep/jiuyan/samllsheep/ui/activity/SignActivity.java

@@ -65,10 +65,14 @@ public class SignActivity extends BaseActivity implements UMShareListener {
     TextView sign_now_but;
     @BindView(R.id.sign_card_num)
     TextView sign_card_num;
+    @BindView(R.id.act_sign_ask_friend_tv)
+    TextView act_sign_ask_friend_tv;
     @BindView(R.id.sheep_sign_machine)
     ImageView sheep_sign_machine;
     @BindView(R.id.sheep_sign_out)
     ImageView sheep_sign_out;
+    @BindView(R.id.act_sign_ask_friend_iv)
+    ImageView act_sign_ask_friend_iv;
     @BindView(R.id.sheep_sign_rectangle)
     ImageView sheep_sign_rectangle;
     @BindView(R.id.sheep_sign_egg_rl)
@@ -101,6 +105,8 @@ public class SignActivity extends BaseActivity implements UMShareListener {
         ViewUtil.setImage(sheep_sign_machine, ViewUtil.getNetImgByName("sheep_sign_machine"));
         ViewUtil.setImage(sheep_sign_rectangle, ViewUtil.getNetImgByName("sheep_sign_rectangle"));
         ViewUtil.setImage(sheep_sign_out, ViewUtil.getNetImgByName("sheep_sign_out"));
+        ViewUtil.setImage(act_sign_ask_friend_iv, ViewUtil.getNetImgByName("shoutu"));
+        ViewUtil.setColorMapText(act_sign_ask_friend_tv, "收徒大狂欢", "大狂欢", "#FE5864");
         //sheep_sign_bg 宽 1500 高 1768
         //eggsView 宽为 864,高度为 608,距离上面 600
         //sheep_sign_rectangle 宽为 864,高度为 608 距离上面 350,距离左面 300
@@ -475,7 +481,6 @@ public class SignActivity extends BaseActivity implements UMShareListener {
                     }
                 });
     }
-
     @OnClick(R.id.go_to_yaoqing)
     public void onGoToYaoqingClicked() {
         Jump2View.getInstance().goAskGetMoney(this, null);

BIN
app/src/main/res/drawable-xhdpi/ic_stdkh_image.webp


BIN
app/src/main/res/drawable-xxhdpi/ic_stdkh_image.webp


BIN
app/src/main/res/drawable-xxxhdpi/ic_stdkh_image.webp


+ 53 - 11
app/src/main/res/layout/activity_sign.xml

@@ -46,9 +46,9 @@
             <RelativeLayout
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
+                android:background="@drawable/shape_bg_gradient_rectangle_069cfb_9ae7f4"
                 android:paddingTop="15dp"
-                android:paddingBottom="23dp"
-                android:background="@drawable/shape_bg_gradient_rectangle_069cfb_9ae7f4">
+                android:paddingBottom="23dp">
 
                 <ImageView
                     android:id="@+id/sheep_sign_rectangle"
@@ -62,24 +62,27 @@
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:src="@drawable/loading_01" />
+
                 <RelativeLayout
                     android:id="@+id/sheep_sign_egg_rl"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:visibility="gone">
+
                     <ImageView
                         android:layout_width="match_parent"
                         android:layout_height="match_parent"
-                        android:src="@drawable/niudan8"/>
+                        android:src="@drawable/niudan8" />
+
                     <TextView
                         android:id="@+id/sheep_sign_egg_msg"
                         android:layout_width="match_parent"
                         android:layout_height="wrap_content"
-                        android:layout_marginBottom="5dp"
                         android:layout_alignParentBottom="true"
+                        android:layout_marginBottom="5dp"
                         android:gravity="center"
                         android:textColor="@color/white"
-                        android:textSize="10sp"/>
+                        android:textSize="10sp" />
                 </RelativeLayout>
 
                 <com.sheep.jiuyan.samllsheep.ui.view.EggView
@@ -88,6 +91,7 @@
                     android:layout_height="140dp"
                     android:layout_centerHorizontal="true"
                     android:layout_marginTop="100dp" />
+
                 <ImageView
                     android:id="@+id/sheep_sign_machine"
                     android:layout_width="match_parent"
@@ -95,6 +99,7 @@
                     android:adjustViewBounds="true"
                     android:scaleType="fitXY"
                     android:src="@drawable/loading_01" />
+
                 <TextView
                     android:id="@+id/active_info"
                     android:layout_width="wrap_content"
@@ -230,8 +235,8 @@
                     android:layout_height="80dp"
                     android:layout_marginBottom="20dp"
                     android:background="@drawable/guajiang"
-                    android:visibility="gone"
-                    android:contentDescription="@string/image_des">
+                    android:contentDescription="@string/image_des"
+                    android:visibility="gone">
 
                     <com.sheep.gamegroup.view.customview.ErasableTextView
                         android:id="@+id/sign_etv"
@@ -309,15 +314,52 @@
                 </LinearLayout>
             </LinearLayout>
 
-            <ImageView
+            <RelativeLayout
                 android:id="@+id/go_to_yaoqing"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:layout_marginTop="10dp"
                 android:layout_marginBottom="10dp"
-                android:background="#ffffff"
-                android:contentDescription="@string/image_des"
-                android:src="@drawable/ic_stdkh_image" />
+                android:background="@color/white"
+                android:paddingStart="16dp"
+                android:paddingTop="12dp"
+                android:paddingEnd="16dp"
+                android:paddingBottom="12dp">
+
+                <ImageView
+                    android:id="@+id/act_sign_ask_friend_iv"
+                    android:layout_width="wrap_content"
+                    android:layout_height="76dp"
+                    android:adjustViewBounds="true"
+                    android:contentDescription="@string/image_des"
+                    android:scaleType="fitXY"
+                    android:src="@drawable/icon" />
+
+                <LinearLayout
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:layout_centerVertical="true"
+                    android:orientation="vertical">
+
+                    <TextView
+                        android:id="@+id/act_sign_ask_friend_tv"
+                        android:layout_width="match_parent"
+                        android:layout_height="wrap_content"
+                        android:gravity="end"
+                        android:text="收徒大狂欢"
+                        android:textColor="#020202"
+                        android:textSize="22sp" />
+
+                    <TextView
+                        android:layout_width="match_parent"
+                        android:layout_height="wrap_content"
+                        android:layout_marginTop="2dp"
+                        android:gravity="end"
+                        android:text="邀新最多可获300元"
+                        android:textColor="#999999"
+                        android:textSize="14sp" />
+                </LinearLayout>
+            </RelativeLayout>
         </LinearLayout>
     </ScrollView>
 </RelativeLayout>