Procházet zdrojové kódy

game detail tune up

billyyoyo před 6 roky
rodič
revize
cda9be48a1

+ 1 - 1
app/src/main/java/com/sheep/gamegroup/model/entity/Applications.java

@@ -509,7 +509,7 @@ public class Applications implements IDownload, IGameGroup, Serializable {
         if(TextUtils.isEmpty(getGameFrom())){
             return getInfo();
         }
-        return getInfo(spannableSb -> spannableSb.append("来源:", R.dimen.text_size_11, "#8e8e8e").kgy().kgy().append(getGameFrom(), R.dimen.text_size_11, "#6C61D2") .br());
+        return getInfo(spannableSb -> spannableSb.append("来源:", R.dimen.text_size_11, "#8e8e8e").kgy().kgy().append(getGameFrom(), R.dimen.text_size_11, "#8e8e8e") .br());
     }
     public CharSequence getSimpleInfo() {
         return new SpannableSb().append(NumberFormatUtils.retainMost2W(download_count), "#2EBEF2").append("人在玩", "#999999").getSsb();

+ 26 - 24
app/src/main/res/layout/act_game_group_or_game_detail.xml

@@ -192,9 +192,8 @@
                     <ImageView
                         android:id="@+id/gc_game_app_hot_iv"
                         android:src="@mipmap/hot"
-                        app:layout_constraintTop_toTopOf="parent"
+                        app:layout_constraintTop_toTopOf="@+id/gc_game_app_detail_name"
                         app:layout_constraintStart_toEndOf="@+id/gc_game_app_detail_name"
-                        android:layout_marginTop="18dp"
                         android:layout_marginStart="3dp"
                         android:visibility="gone"
                         android:layout_width="8dp"
@@ -224,30 +223,33 @@
                         app:layout_constraintBottom_toBottomOf="parent"
                         app:layout_constraintTop_toBottomOf="@id/gc_game_app_detail_tag_list" />
 
-                    <TextView
-                        android:id="@+id/gc_game_app_detail_bt1"
-                        android:layout_width="56dp"
-                        android:layout_height="24dp"
-                        android:background="@drawable/selector_button_stroke_main"
-                        android:gravity="center"
-                        android:onClick="onClickFollowTv"
-                        android:layout_marginEnd="84dp"
-                        android:text="关注"
-                        android:textColor="@color/selector_color_stoke_main_btn"
-                        android:textSize="13sp"
-                        app:layout_constraintBottom_toBottomOf="@id/gc_game_app_detail_icon"
-                        app:layout_constraintEnd_toEndOf="parent" />
-
-                    <TextView
-                        android:id="@+id/gc_game_app_detail_bt3"
-                        style="@style/style_vip_td_tv"
-                        android:textSize="13sp"
-                        android:layout_width="66dp"
-                        android:layout_height="24dp"
-                        android:visibility="gone"
+                    <LinearLayout
+                        android:orientation="horizontal"
+                        android:layout_width="wrap_content"
+                        android:layout_height="wrap_content"
                         android:layout_marginEnd="12dp"
                         app:layout_constraintBottom_toBottomOf="@id/gc_game_app_detail_icon"
-                        app:layout_constraintEnd_toEndOf="parent" />
+                        app:layout_constraintEnd_toEndOf="parent">
+                        <TextView
+                            android:id="@+id/gc_game_app_detail_bt1"
+                            android:layout_width="56dp"
+                            android:layout_height="24dp"
+                            android:background="@drawable/selector_button_stroke_main"
+                            android:gravity="center"
+                            android:onClick="onClickFollowTv"
+                            android:text="关注"
+                            android:textColor="@color/selector_color_stoke_main_btn"
+                            android:textSize="13sp" />
+
+                        <TextView
+                            android:id="@+id/gc_game_app_detail_bt3"
+                            style="@style/style_vip_td_tv"
+                            android:textSize="13sp"
+                            android:layout_width="66dp"
+                            android:layout_height="24dp"
+                            android:visibility="gone"
+                            android:layout_marginStart="12dp" />
+                    </LinearLayout>
 
                 </android.support.constraint.ConstraintLayout>