forked from github/szkolny
Compare commits
3 Commits
eff99e7966
...
d5697b54bd
Author | SHA1 | Date | |
---|---|---|---|
d5697b54bd | |||
db247a876c | |||
838b92add3 |
@ -259,8 +259,10 @@ dependencies {
|
||||
implementation("com.heinrichreimersoftware:material-intro") { version { strictly "1.5.8" } }
|
||||
implementation("pl.droidsonroids.gif:android-gif-drawable") { version { strictly "1.2.15" } }
|
||||
|
||||
implementation "com.balysv:material-ripple:1.0.2"
|
||||
// NavLib dependencies
|
||||
// TODO: try to move these dependencies to NavLib build.gradle file
|
||||
implementation "com.mikepenz:materialize:1.2.1"
|
||||
implementation "com.mikepenz:itemanimators:1.1.0"
|
||||
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
}
|
||||
|
@ -146,10 +146,10 @@ class MainActivity : AppCompatActivity(), CoroutineScope {
|
||||
errorSnackbar.setCoordinator(b.navView.coordinator, b.navView.bottomBar)
|
||||
|
||||
val versionBadge = app.buildManager.versionBadge
|
||||
b.nightlyText.isVisible = versionBadge != null
|
||||
b.nightlyText.text = versionBadge
|
||||
navView.nightlyText.isVisible = versionBadge != null
|
||||
navView.nightlyText.text = versionBadge
|
||||
if (versionBadge != null) {
|
||||
b.nightlyText.background.setTintColor(0xa0ff0000.toInt())
|
||||
navView.nightlyText.background.setTintColor(0xa0ff0000.toInt())
|
||||
}
|
||||
|
||||
navLoading = true
|
||||
|
@ -31,23 +31,6 @@
|
||||
</pl.szczodrzynski.edziennik.utils.SwipeRefreshLayoutNoTouch>
|
||||
|
||||
</pl.szczodrzynski.navlib.NavView>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/nightlyText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_marginHorizontal="48dp"
|
||||
android:layout_marginVertical="8dp"
|
||||
android:background="@drawable/bg_rounded_4dp"
|
||||
android:fontFamily="sans-serif-light"
|
||||
android:gravity="center"
|
||||
android:padding="4dp"
|
||||
android:textAllCaps="true"
|
||||
android:textSize="12sp"
|
||||
android:textStyle="bold"
|
||||
tools:backgroundTint="#a0ff0000"
|
||||
tools:text="Nightly\n20200503" />
|
||||
</FrameLayout>
|
||||
|
||||
</layout>
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<color name="transparent">#00FFFFFF</color>
|
||||
|
||||
<!-- Material 3 theme builder light colors -->
|
||||
<color name="seed">#2196f3</color>
|
||||
|
Loading…
Reference in New Issue
Block a user