forked from upstream-mirrors/quik
Add indeterminate progress bar to sync status
This commit is contained in:
@@ -118,7 +118,9 @@ class MainActivity : QkActivity<MainViewModel>(), MainView {
|
||||
}
|
||||
|
||||
disposables += colors.theme
|
||||
.subscribe { color -> compose.setBackgroundTint(color) }
|
||||
.doOnNext { color -> syncingProgress.indeterminateTintList = ColorStateList.valueOf(color) }
|
||||
.doOnNext { color -> compose.setBackgroundTint(color) }
|
||||
.subscribe()
|
||||
|
||||
disposables += colors.textSecondary
|
||||
.subscribe { color -> toggle.drawerArrowDrawable.color = color }
|
||||
|
||||
@@ -19,15 +19,29 @@
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1">
|
||||
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
<LinearLayout
|
||||
android:id="@+id/syncing"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_margin="32dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/main_syncing"
|
||||
app:textColor="secondary" />
|
||||
android:orientation="vertical">
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/syncingProgress"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp" />
|
||||
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="@string/main_syncing"
|
||||
app:textColor="tertiary" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
|
||||
Reference in New Issue
Block a user