use dialogwhenlarge theme for image pager

This commit is contained in:
Andrew Dolgov 2015-06-11 14:15:32 +03:00
parent 35f421e896
commit f114539024
4 changed files with 13 additions and 9 deletions

View File

@ -254,6 +254,7 @@
<activity
android:name=".ArticleImagesPagerActivity"
android:theme="@style/ImagePagerTheme"
android:label="Article Images" >
</activity>

View File

@ -14,7 +14,6 @@ import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewCompat;
import android.support.v4.view.ViewPager;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.ContextMenu;
import android.view.GestureDetector;
@ -256,14 +255,14 @@ public class ArticleImagesPagerActivity extends CommonActivity implements Gestur
m_prefs = PreferenceManager
.getDefaultSharedPreferences(getApplicationContext());
setTheme(R.style.DarkTheme);
//setTheme(R.style.DarkTheme);
super.onCreate(savedInstanceState);
setContentView(R.layout.article_images_pager);
setContentView(R.layout.activity_images_pager);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
//Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
//setSupportActionBar(toolbar);
m_progress = (ProgressBar) findViewById(R.id.article_images_progress);

View File

@ -1,9 +1,7 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:fitsSystemWindows="true"
android:id="@+id/article_images"
android:layout_width="fill_parent"
android:animateLayoutChanges="true"
android:background="?headlinesBackground"
android:layout_height="fill_parent">
<org.fox.ttrss.ArticleImagesPager
@ -37,6 +35,4 @@
android:visibility="invisible" />
<include layout="@layout/toolbar" android:id="@+id/toolbar" />
</RelativeLayout>

View File

@ -123,4 +123,12 @@
<item name="floatingActionButtonColor">?colorPrimaryDark</item>
</style>
<style name="ImagePagerTheme" parent="Theme.AppCompat.DialogWhenLarge">
<item name="windowActionBarOverlay">true</item>
<item name="colorPrimary">#607D8B</item>
<item name="colorPrimaryDark">#455A64</item>
<item name="colorAccent">#D84315</item>
</style>
</resources>