Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
438aca7b75
@ -53,7 +53,6 @@ class ProfileFragment : Fragment(R.layout.fragment_profile) {
|
|||||||
viewModel.state.collectWhenStarted(this) { state ->
|
viewModel.state.collectWhenStarted(this) { state ->
|
||||||
binding.showState.visibleOrGone(state is ProfileViewModel.State.Show)
|
binding.showState.visibleOrGone(state is ProfileViewModel.State.Show)
|
||||||
binding.error.visibleOrGone(state is ProfileViewModel.State.Error)
|
binding.error.visibleOrGone(state is ProfileViewModel.State.Error)
|
||||||
binding.loading.visibleOrGone(state is ProfileViewModel.State.Loading)
|
|
||||||
|
|
||||||
when(state) {
|
when(state) {
|
||||||
is ProfileViewModel.State.Loading -> {
|
is ProfileViewModel.State.Loading -> {
|
||||||
|
@ -103,6 +103,7 @@
|
|||||||
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:theme="@style/ProgressBarTheme"
|
||||||
android:layout_marginTop="25dp"
|
android:layout_marginTop="25dp"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
@ -48,6 +48,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
|
android:theme="@style/ProgressBarTheme"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
android:id="@+id/loading"
|
android:id="@+id/loading"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:theme="@style/ProgressBarTheme"
|
||||||
app:layout_constraintBottom_toTopOf="@id/close"
|
app:layout_constraintBottom_toTopOf="@id/close"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
android:id="@+id/loading"
|
android:id="@+id/loading"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:theme="@style/ProgressBarTheme"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
@ -104,6 +104,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:layout_marginTop="25dp"
|
android:layout_marginTop="25dp"
|
||||||
|
android:theme="@style/ProgressBarTheme"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:padding="16dp">
|
android:padding="25dp">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/error"
|
android:id="@+id/error"
|
||||||
@ -37,21 +37,12 @@
|
|||||||
style="@style/Theme.UiTemplate.TextH1"
|
style="@style/Theme.UiTemplate.TextH1"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="15dp"
|
||||||
android:text="@string/profile_main_textview"
|
android:text="@string/profile_main_textview"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<ProgressBar
|
|
||||||
android:id="@+id/loading"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:visibility="gone"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
|
||||||
|
|
||||||
<androidx.cardview.widget.CardView
|
<androidx.cardview.widget.CardView
|
||||||
android:id="@+id/photo2"
|
android:id="@+id/photo2"
|
||||||
@ -72,6 +63,7 @@
|
|||||||
android:layout_height="120dp"
|
android:layout_height="120dp"
|
||||||
android:layout_marginBottom="16dp"
|
android:layout_marginBottom="16dp"
|
||||||
android:contentDescription="@null"
|
android:contentDescription="@null"
|
||||||
|
android:scaleType="fitXY"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/scan"
|
app:layout_constraintBottom_toTopOf="@+id/scan"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintBottom_toTopOf="@id/close"
|
app:layout_constraintBottom_toTopOf="@id/close"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
android:theme="@style/ProgressBarTheme"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
tools:visibility="gone" />
|
tools:visibility="gone" />
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
android:id="@+id/loading"
|
android:id="@+id/loading"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:theme="@style/ProgressBarTheme"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
android:theme="@style/ProgressBarTheme"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"/>
|
app:layout_constraintEnd_toEndOf="parent"/>
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<style name="Base.Theme.UiTemplate" parent="Theme.Material3.DayNight.NoActionBar">
|
<style name="Base.Theme.UiTemplate" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
||||||
|
<!-- Customize your light theme here. -->
|
||||||
<item name="colorPrimary">@color/AccentBlue</item>
|
<item name="colorPrimary">@color/AccentBlue</item>
|
||||||
<item name="android:colorBackground">@color/black</item>
|
|
||||||
<item name="android:navigationBarColor">@color/black</item>
|
|
||||||
<item name="colorPrimaryDark">@color/black</item>
|
<item name="colorPrimaryDark">@color/black</item>
|
||||||
<item name="android:windowLightStatusBar">true</item>
|
<item name="android:windowLightStatusBar">false</item>
|
||||||
|
<item name="android:navigationBarColor">@color/white</item>
|
||||||
|
<item name="android:colorBackground">@color/black</item>
|
||||||
</style>
|
</style>
|
||||||
<style name="Theme.UiTemplate" parent="Base.Theme.UiTemplate" />
|
|
||||||
</resources>
|
</resources>
|
@ -1,5 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
|
|
||||||
<style name="Theme.UiTemplate.TextH1">
|
<style name="Theme.UiTemplate.TextH1">
|
||||||
<item name="android:textSize">28sp</item>
|
<item name="android:textSize">28sp</item>
|
||||||
<item name="android:textAlignment">center</item>
|
<item name="android:textAlignment">center</item>
|
||||||
@ -36,4 +38,5 @@
|
|||||||
<item name="android:textAlignment">center</item>
|
<item name="android:textAlignment">center</item>
|
||||||
<item name="android:fontFamily">@font/montsemibold</item>
|
<item name="android:fontFamily">@font/montsemibold</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -11,4 +11,8 @@
|
|||||||
<item name="iconGravity">textEnd</item>
|
<item name="iconGravity">textEnd</item>
|
||||||
<item name="iconPadding">10dp</item>
|
<item name="iconPadding">10dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
<style name="ProgressBarTheme" parent="ThemeOverlay.AppCompat.Light">
|
||||||
|
<item name="colorAccent">@color/AccentBlue</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
@ -3,10 +3,10 @@
|
|||||||
<style name="Base.Theme.UiTemplate" parent="Theme.MaterialComponents.Light.NoActionBar">
|
<style name="Base.Theme.UiTemplate" parent="Theme.MaterialComponents.Light.NoActionBar">
|
||||||
<!-- Customize your light theme here. -->
|
<!-- Customize your light theme here. -->
|
||||||
<item name="colorPrimary">@color/AccentBlue</item>
|
<item name="colorPrimary">@color/AccentBlue</item>
|
||||||
<item name="colorPrimaryDark">@color/white</item>
|
|
||||||
<item name="android:windowLightStatusBar">true</item>
|
<item name="android:windowLightStatusBar">true</item>
|
||||||
<item name="android:navigationBarColor">@color/white</item>
|
<item name="android:navigationBarColor">@color/white</item>
|
||||||
<item name="android:colorBackground">@color/white</item>
|
<item name="android:colorBackground">@color/white</item>
|
||||||
|
<item name="colorOnPrimary">@color/white</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.UiTemplate" parent="Base.Theme.UiTemplate" />
|
<style name="Theme.UiTemplate" parent="Base.Theme.UiTemplate" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user