فهرست منبع

Optimized translucence for lollipop on image preview

Andy Scherzinger 9 سال پیش
والد
کامیت
ddd01569cd
2فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 1 0
      res/values/colors.xml
  2. 4 0
      src/com/owncloud/android/ui/preview/PreviewImageActivity.java

+ 1 - 0
res/values/colors.xml

@@ -42,4 +42,5 @@
 
     <!-- special transparent action bar colors for image preview -->
     <color name="owncloud_blue_transparent">#201D2D44</color>
+    <color name="owncloud_blue_dark_transparent">#40162233</color>
 </resources>

+ 4 - 0
src/com/owncloud/android/ui/preview/PreviewImageActivity.java

@@ -132,6 +132,10 @@ public class PreviewImageActivity extends FileActivity implements
                     }
                 }
             });
+
+            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
+                getWindow().setStatusBarColor(getResources().getColor(R.color.owncloud_blue_dark_transparent));
+            }
         }
             
         if (savedInstanceState != null) {