詹子聪 vor 5 Jahren
Ursprung
Commit
82ba8b5efd

+ 6 - 1
app/src/main/java/com/miekir/eden/ui/home/goods/detail/MeizhiDetailActivity.java

@@ -40,7 +40,12 @@ public class MeizhiDetailActivity extends SwipeBackActivity {
         setDragDirectMode(SwipeBackLayout.DragDirectMode.VERTICAL);
 
         pv_meizhi = findViewById(R.id.pv_meizhi);
-        findViewById(R.id.iv_back).setOnClickListener(v -> onBackPressed());
+        findViewById(R.id.iv_back).setOnClickListener(new View.OnClickListener() {
+            @Override
+            public void onClick(View v) {
+                finish();
+            }
+        });
 
         String url = getIntent().getStringExtra(TAG_URL);
         pv_meizhi.setOnLongClickListener(new View.OnLongClickListener() {

+ 1 - 2
app/src/main/res/layout/activity_goods_detail.xml

@@ -3,8 +3,7 @@
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:fitsSystemWindows="true"
-    android:orientation="vertical"
-    android:background="@color/white_default">
+    android:orientation="vertical">
 
     <include layout="@layout/view_toolbar" />
 

+ 1 - 2
app/src/main/res/layout/activity_login.xml

@@ -6,8 +6,7 @@
     android:fitsSystemWindows="true"
     android:orientation="vertical"
     android:focusable="true"
-    android:focusableInTouchMode="true"
-    android:background="@color/white_default">
+    android:focusableInTouchMode="true">
     <!--启用深色模式之后,需要使用fitsSystemWindows来不让布局上滑-->
 
     <include layout="@layout/view_toolbar" />

+ 8 - 7
app/src/main/res/layout/activity_meizhi_detail.xml

@@ -4,6 +4,14 @@
     android:layout_height="match_parent"
     android:background="@color/black"
     android:fitsSystemWindows="true">
+
+    <uk.co.senab.photoview.PhotoView
+        android:id="@+id/pv_meizhi"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:src="@mipmap/logo_gray"
+        android:scaleType="centerInside"/>
+
     <ImageButton
         android:id="@+id/iv_back"
         android:layout_width="wrap_content"
@@ -13,11 +21,4 @@
         android:tint="@color/white"
         android:src="?attr/homeAsUpIndicator"
         android:background="?attr/selectableItemBackgroundBorderless"/>
-
-    <uk.co.senab.photoview.PhotoView
-        android:id="@+id/pv_meizhi"
-        android:layout_width="match_parent"
-        android:layout_height="match_parent"
-        android:src="@mipmap/logo_gray"
-        android:scaleType="centerInside"/>
 </FrameLayout>

+ 1 - 3
app/src/main/res/layout/activity_mine.xml

@@ -3,7 +3,6 @@
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:orientation="vertical"
-    android:background="@color/white_default"
     android:fitsSystemWindows="true">
     <include layout="@layout/view_toolbar"/>
 
@@ -12,8 +11,7 @@
         android:layout_height="wrap_content"
         xmlns:app="http://schemas.android.com/apk/res-auto"
         android:fillViewport="true"
-        android:fitsSystemWindows="true"
-        android:background="@color/white_default">
+        android:fitsSystemWindows="true">
 
         <LinearLayout
             android:layout_width="match_parent"

+ 1 - 2
app/src/main/res/layout/activity_my_fav.xml

@@ -7,8 +7,7 @@
     android:id="@+id/ll_search"
     android:focusable="true"
     android:focusableInTouchMode="true"
-    android:fitsSystemWindows="true"
-    android:background="@color/white_default">
+    android:fitsSystemWindows="true">
 
     <include layout="@layout/view_toolbar"/>
 

+ 1 - 2
app/src/main/res/layout/activity_search.xml

@@ -7,8 +7,7 @@
     android:id="@+id/ll_search"
     android:focusable="true"
     android:focusableInTouchMode="true"
-    android:fitsSystemWindows="true"
-    android:background="@color/white_default">
+    android:fitsSystemWindows="true">
 
     <include layout="@layout/view_toolbar"/>