소스 검색

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) {