Jelajahi Sumber

优化体验

詹子聪 5 tahun lalu
induk
melakukan
8c2cad8b7f

+ 1 - 1
app/src/main/java/com/itant/shibei/ui/home/coupon/TemplateFragment.java

@@ -180,7 +180,6 @@ public class TemplateFragment extends BaseMVPFragment implements ITemplateView<C
         }
 
         if (mCurrentPage == PAGE_START) {
-            ToastTool.showShort("刷新成功");
             mCouponBeanList.clear();
             mCouponBeanList.addAll(couponBeanList);
             // 本地写死的数据
@@ -189,6 +188,7 @@ public class TemplateFragment extends BaseMVPFragment implements ITemplateView<C
             // 如果是下拉刷新获取的第0页数据,item不要自动滚动一段距离
             // 或者用这个mLayoutManager.scrollToPositionWithOffset(0, 0);
             if (mIsRefresh) {
+                ToastTool.showShort("刷新成功");
                 rv_template.smoothScrollToPosition(0);
             }
         } else {

+ 1 - 1
app/src/main/res/layout/activity_tab.xml

@@ -126,7 +126,7 @@
                 app:tl_textBold="NONE"
                 app:tl_textSelectColor="@color/black"
                 app:tl_textUnselectColor="@color/colorTextSecondary"
-                app:tl_textsize="@dimen/text_normal"
+                app:tl_textsize="@dimen/size_title_s"
                 app:tl_indicator_margin_bottom="@dimen/margin_s"
                 android:layout_marginStart="@dimen/margin_s"
                 android:layout_marginEnd="@dimen/margin_default"/>

+ 1 - 1
app/src/main/res/layout/item_goods.xml

@@ -46,7 +46,7 @@
                     android:ellipsize="end"
                     android:maxLines="2"
                     android:textColor="@color/black"
-                    android:textSize="@dimen/text_normal_s" />
+                    android:textSize="@dimen/text_normal" />
 
                 <Space
                     android:layout_width="wrap_content"

+ 12 - 17
app/src/main/res/layout/item_template.xml

@@ -12,25 +12,20 @@
         android:layout_marginTop="@dimen/margin_s"
         android:background="@color/white"
         android:foreground="@drawable/selectable_item_background">
-
-        <LinearLayout
+        <ImageView
+            android:id="@+id/iv_template"
+            android:layout_width="match_parent"
+            android:layout_height="@dimen/height_cover"
+            android:src="@mipmap/logo_gray" />
+        <TextView
+            android:id="@+id/tv_template"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:orientation="vertical">
-
-            <ImageView
-                android:id="@+id/iv_template"
-                android:layout_width="match_parent"
-                android:layout_height="@dimen/height_cover"
-                android:src="@mipmap/logo_gray" />
-
-            <TextView
-                android:id="@+id/tv_template"
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:padding="@dimen/margin_s"
-                android:textColor="@color/black_theme" />
-        </LinearLayout>
+            android:padding="@dimen/margin_s"
+            android:layout_gravity="bottom"
+            android:textColor="@color/white"
+            android:textSize="@dimen/text_normal"
+            android:background="@color/black_light_transparent"/>
     </FrameLayout>
 
     <include layout="@layout/view_divider_common"/>

+ 1 - 1
app/src/main/res/values/colors.xml

@@ -33,7 +33,7 @@
 
     <color name="black">#000000</color>
     <color name="black_light">#252525</color>
-    <color name="black_light_transparent">#941B1B1B</color>
+    <color name="black_light_transparent">#8F1B1B1B</color>
     <color name="black_dark">#1b1b1b</color>
     <color name="black_standard">#333333</color>
     <color name="black_title">#5F6267</color>

+ 1 - 1
app/src/main/res/values/dimens.xml

@@ -66,7 +66,7 @@
     <dimen name="height_sliding_tab">48dp</dimen>
     <dimen name="height_edit_text_s">32dp</dimen>
     <dimen name="height_edit_text_search">36dp</dimen>
-    <dimen name="height_cover">144dp</dimen>
+    <dimen name="height_cover">168dp</dimen>
     <dimen name="height_tool_bar">52dp</dimen>
 
     <dimen name="width_indicator">25dp</dimen>