mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-12-03 17:57:59 +01:00
update fullscreen activity actionbar to gradient
This commit is contained in:
parent
81ee5f46f5
commit
240c043422
6 changed files with 17 additions and 3 deletions
|
@ -86,7 +86,8 @@
|
|||
android:parentActivityName=".activities.SettingsActivity"/>
|
||||
|
||||
<activity
|
||||
android:name=".activities.PhotoVideoActivity"/>
|
||||
android:name=".activities.PhotoVideoActivity"
|
||||
android:theme="@style/FullScreenTheme"/>
|
||||
|
||||
<activity
|
||||
android:name=".activities.PhotoActivity"
|
||||
|
|
|
@ -68,6 +68,11 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentClic
|
|||
cursor?.close()
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
supportActionBar?.setBackgroundDrawable(resources.getDrawable(R.drawable.actionbar_gradient_background))
|
||||
}
|
||||
|
||||
private fun sendViewPagerIntent(path: String) {
|
||||
Intent(this, ViewPagerActivity::class.java).apply {
|
||||
putExtra(MEDIUM, path)
|
||||
|
|
|
@ -87,6 +87,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
|||
if (!hasStoragePermission()) {
|
||||
finish()
|
||||
}
|
||||
supportActionBar?.setBackgroundDrawable(resources.getDrawable(R.drawable.actionbar_gradient_background))
|
||||
}
|
||||
|
||||
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<gradient
|
||||
android:angle="270"
|
||||
android:endColor="@android:color/transparent"
|
||||
android:startColor="@color/actionbar_grey"/>
|
||||
</shape>
|
|
@ -3,5 +3,5 @@
|
|||
<gradient
|
||||
android:angle="90"
|
||||
android:endColor="@android:color/transparent"
|
||||
android:startColor="#BB000000"/>
|
||||
android:startColor="@color/actionbar_grey"/>
|
||||
</shape>
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
<color name="pressed_item_foreground">#33ff6f00</color>
|
||||
<color name="activated_item_foreground">#99ff6f00</color>
|
||||
<color name="tmb_background">#ff222222</color>
|
||||
<color name="actionbar_grey">#55000000</color>
|
||||
<color name="actionbar_grey">#AA000000</color>
|
||||
<color name="light_grey">#aa888888</color>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in a new issue