lvhongxu 3 anni fa
parent
commit
9116c14af0

+ 2 - 0
app/src/main/java/com/wisewoods/edunative/ui/ScoreActivity.java

@@ -52,6 +52,8 @@ public class ScoreActivity extends BaseListActivity<ActivityScoreBinding> implem
 
         itemHeadScoreBinding.rlScoreDetail.setOnClickListener(v -> ActivityUtils.startActivity(ScoreDetailActivity.class));
 
+        itemHeadScoreBinding.rlScoreRule.setOnClickListener(v -> WebActivity.start("/wx_html/integralRule.html","积分规则"));
+
         ItemEmptyBinding emptyBinding = ItemEmptyBinding.inflate(getLayoutInflater());
         LinearLayout emptyView = emptyBinding.getRoot();
         ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);

BIN
app/src/main/res/drawable-xxhdpi/ic_score_rule.png


+ 48 - 20
app/src/main/res/layout/item_head_score.xml

@@ -32,30 +32,58 @@
                 android:layout_height="0dp"
                 android:layout_weight="1" />
 
-            <RelativeLayout
-                android:id="@+id/rl_score_detail"
+            <LinearLayout
+                android:orientation="vertical"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content">
-
-                <TextView
+                <RelativeLayout
+                    android:id="@+id/rl_score_detail"
                     android:layout_width="wrap_content"
-                    android:layout_height="24dp"
-                    android:layout_marginLeft="13dp"
-                    android:background="#51ffffff"
-                    android:gravity="center"
-                    android:paddingLeft="16dp"
-                    android:paddingRight="18dp"
-                    android:text="积分明细"
-                    android:textColor="#ffffffff"
-                    android:textSize="15sp" />
-
-                <ImageView
+                    android:layout_height="wrap_content">
+
+                    <TextView
+                        android:layout_width="wrap_content"
+                        android:layout_height="24dp"
+                        android:layout_marginLeft="13dp"
+                        android:background="#51ffffff"
+                        android:gravity="center"
+                        android:paddingLeft="16dp"
+                        android:paddingRight="18dp"
+                        android:text="积分明细"
+                        android:textColor="#ffffffff"
+                        android:textSize="15sp" />
+
+                    <ImageView
+                        android:layout_width="wrap_content"
+                        android:layout_height="wrap_content"
+                        android:src="@drawable/ic_score_tag" />
+
+                </RelativeLayout>
+
+                <RelativeLayout
+                    android:id="@+id/rl_score_rule"
                     android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"
-                    android:src="@drawable/ic_score_tag" />
-
-            </RelativeLayout>
-
+                    android:layout_height="wrap_content">
+
+                    <TextView
+                        android:layout_width="wrap_content"
+                        android:layout_height="24dp"
+                        android:layout_marginLeft="13dp"
+                        android:background="#51ffffff"
+                        android:gravity="center"
+                        android:paddingLeft="16dp"
+                        android:paddingRight="18dp"
+                        android:text="积分规则"
+                        android:textColor="#ffffffff"
+                        android:textSize="15sp" />
+
+                    <ImageView
+                        android:layout_width="24dp"
+                        android:layout_height="24dp"
+                        android:src="@drawable/ic_score_rule" />
+
+                </RelativeLayout>
+            </LinearLayout>
 
         </LinearLayout>