diff --git a/app/src/main/java/subreddit/android/appstore/screens/details/ScreenshotDialog.java b/app/src/main/java/subreddit/android/appstore/screens/details/ScreenshotDialog.java index 6690446..5ebb519 100644 --- a/app/src/main/java/subreddit/android/appstore/screens/details/ScreenshotDialog.java +++ b/app/src/main/java/subreddit/android/appstore/screens/details/ScreenshotDialog.java @@ -19,10 +19,9 @@ public class ScreenshotDialog extends Dialog implements View.OnClickListener { private final int currentImage; @BindView(R.id.screenshot_dialog_pager) ViewPager viewPager; @BindView(R.id.screenshot_dialog_toolbar) Toolbar toolbar; - @BindView(R.id.screenshot_dialog_page_indicator) TextView pageIndicator; public ScreenshotDialog(Context context, List urls, int currentImage) { - super(context, android.R.style.Theme_Black_NoTitleBar); + super(context, R.style.AppTheme_Black); this.currentImage = currentImage; this.urls = urls; } @@ -34,6 +33,7 @@ protected void onCreate(Bundle savedInstanceState) { ButterKnife.bind(this); toolbar.setNavigationIcon(R.drawable.ic_arrow_back_white_48px); toolbar.setNavigationOnClickListener(this); + toolbar.setTitle(R.string.screenshots); ScreenshotsAdapter screenshotsAdapter = new ScreenshotsAdapter(getContext(), 1); screenshotsAdapter.update(urls); @@ -59,7 +59,7 @@ public void onPageScrollStateChanged(int state) { } private void updatePageIndicator(int position) { - pageIndicator.setText(String.format("%s/%s", position + 1, urls.size())); + toolbar.setSubtitle(String.format("%s/%s", position + 1, urls.size())); } @Override diff --git a/app/src/main/res/layout/dialog_screenshot.xml b/app/src/main/res/layout/dialog_screenshot.xml index 708ba03..f093577 100644 --- a/app/src/main/res/layout/dialog_screenshot.xml +++ b/app/src/main/res/layout/dialog_screenshot.xml @@ -1,6 +1,5 @@ @@ -9,19 +8,8 @@ android:id="@+id/screenshot_dialog_toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@color/colorPrimary"> - - - - + android:background="@color/colorPrimary" + android:title="@string/screenshots"/> Appearance Theme Theme to use - A restart is required to toggle night mode + A restart is required to toggle themes Later Everything Error fetching repository Data options + Screenshots Load app icons and screenshots Update available diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 74da5e0..fb5818f 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -18,7 +18,8 @@