more visible nav
This commit is contained in:
parent
ae8b952b4c
commit
ef30869b62
3 changed files with 4 additions and 11 deletions
|
@ -79,16 +79,10 @@ class MainActivity : AppCompatActivity() {
|
|||
|
||||
val backgroundDrawable = _bottomBar.background as GradientDrawable
|
||||
val currentColor = backgroundDrawable.color?.defaultColor ?: 0
|
||||
val semiTransparentColor = (currentColor and 0x00FFFFFF) or 0xE8000000.toInt()
|
||||
val semiTransparentColor = (currentColor and 0x00FFFFFF) or 0xF0000000.toInt()
|
||||
backgroundDrawable.setColor(semiTransparentColor)
|
||||
_bottomBar.background = backgroundDrawable
|
||||
}
|
||||
val colorOverflow = this.getSharedPreferences("Dantotsu", Context.MODE_PRIVATE)
|
||||
.getBoolean("colorOverflow", false)
|
||||
if (!colorOverflow) {
|
||||
_bottomBar.background = ContextCompat.getDrawable(this, R.drawable.bottom_nav_gray)
|
||||
|
||||
}
|
||||
|
||||
|
||||
var doubleBackToExitPressedOnce = false
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="?attr/colorOnPrimaryContainer"/>
|
||||
<solid android:color="@color/grey_nav"/>
|
||||
<corners android:radius="40dp"/>
|
||||
</shape>
|
|
@ -15,9 +15,8 @@
|
|||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="32dp"
|
||||
android:background="@drawable/bottom_nav"
|
||||
android:elevation="4dp"
|
||||
android:padding="8dp"
|
||||
android:translationZ="12dp"
|
||||
android:elevation="8dp"
|
||||
android:padding="6dp"
|
||||
android:visibility="gone"
|
||||
app:abb_animationDuration="300"
|
||||
app:abb_animationInterpolator="@anim/over_shoot"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue