From 7d86d15f0025beaba21a69f1b437df9bc0214dba Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 24 Feb 2016 23:37:26 +0100 Subject: [PATCH] change the acrionbat color at viewpager activity --- app/src/main/AndroidManifest.xml | 3 ++- .../gallery/activities/ViewPagerActivity.java | 12 ++++++------ app/src/main/res/values/colors.xml | 1 + app/src/main/res/values/styles.xml | 11 +++++++++++ 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 1639f6be2..5f36f8e62 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -27,6 +27,7 @@ + android:screenOrientation="portrait" + android:theme="@style/FullScreenTheme"/> diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java index c16dc0b23..dc3e40c08 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java @@ -11,16 +11,16 @@ import android.view.Menu; import android.view.MenuItem; import android.view.View; -import java.io.File; -import java.util.ArrayList; -import java.util.List; -import java.util.regex.Pattern; - import com.simplemobiletools.gallery.Constants; import com.simplemobiletools.gallery.MyViewPager; import com.simplemobiletools.gallery.R; import com.simplemobiletools.gallery.adapters.MyPagerAdapter; +import java.io.File; +import java.util.ArrayList; +import java.util.List; +import java.util.regex.Pattern; + public class ViewPagerActivity extends AppCompatActivity { private int pos; private boolean isFullScreen; @@ -34,8 +34,8 @@ public class ViewPagerActivity extends AppCompatActivity { setContentView(R.layout.activity_photo); pos = 0; - actionbar = getSupportActionBar(); isFullScreen = true; + actionbar = getSupportActionBar(); hideSystemUI(); final MyPagerAdapter adapter = new MyPagerAdapter(getSupportFragmentManager()); diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 422169a59..2bea239d1 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -4,4 +4,5 @@ #303F9F #FF4081 #ff222222 + #66000000 diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index b4390a216..12e6d228d 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -6,4 +6,15 @@ @color/colorAccent + + + +