mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-22 13:48:52 +01:00
Add indeterminate progress bar to sync status
This commit is contained in:
@@ -118,7 +118,9 @@ class MainActivity : QkActivity<MainViewModel>(), MainView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
disposables += colors.theme
|
disposables += colors.theme
|
||||||
.subscribe { color -> compose.setBackgroundTint(color) }
|
.doOnNext { color -> syncingProgress.indeterminateTintList = ColorStateList.valueOf(color) }
|
||||||
|
.doOnNext { color -> compose.setBackgroundTint(color) }
|
||||||
|
.subscribe()
|
||||||
|
|
||||||
disposables += colors.textSecondary
|
disposables += colors.textSecondary
|
||||||
.subscribe { color -> toggle.drawerArrowDrawable.color = color }
|
.subscribe { color -> toggle.drawerArrowDrawable.color = color }
|
||||||
|
|||||||
@@ -19,15 +19,29 @@
|
|||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="1">
|
android:layout_weight="1">
|
||||||
|
|
||||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
<LinearLayout
|
||||||
android:id="@+id/syncing"
|
android:id="@+id/syncing"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:layout_margin="32dp"
|
android:layout_margin="32dp"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="@string/main_syncing"
|
android:orientation="vertical">
|
||||||
app:textColor="secondary" />
|
|
||||||
|
<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.support.v7.widget.RecyclerView
|
||||||
android:id="@+id/recyclerView"
|
android:id="@+id/recyclerView"
|
||||||
|
|||||||
Reference in New Issue
Block a user