mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-22 05:45:04 +00:00
UI Fixes
This commit is contained in:
parent
a807a03a0a
commit
7af472643a
3 changed files with 6 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ import android.animation.ValueAnimator
|
|||
import android.os.Bundle
|
||||
import android.view.View.*
|
||||
import androidx.activity.viewModels
|
||||
import androidx.core.content.ContextCompat
|
||||
import com.habitrpg.android.habitica.R
|
||||
import com.habitrpg.android.habitica.databinding.ActivityStatsBinding
|
||||
import com.habitrpg.common.habitica.views.HabiticaIconsHelper
|
||||
|
|
@ -28,6 +29,7 @@ class StatsActivity : BaseActivity<ActivityStatsBinding, StatsViewModel>() {
|
|||
}
|
||||
|
||||
private fun setViews() {
|
||||
binding.statsImageview.setColorFilter(ContextCompat.getColor(this, R.color.watch_purple_200))
|
||||
binding.statsImageview.visibility = VISIBLE
|
||||
loadingManager.startLoading()
|
||||
setBarViews()
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/icon_stats"
|
||||
android:layout_centerInParent="true"/>
|
||||
android:layout_centerInParent="true"
|
||||
/>
|
||||
|
||||
<com.habitrpg.wearos.habitica.ui.views.CircularProgressView
|
||||
android:id="@+id/hp_bar"
|
||||
|
|
@ -39,12 +40,12 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_marginStart="16dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.habitrpg.wearos.habitica.ui.views.StatValue
|
||||
android:id="@+id/hp_stat_value"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"/>
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="30dp"
|
||||
android:paddingStart="16dp"
|
||||
tools:parentTag="com.habitrpg.wearos.habitica.ui.views.StatValue">
|
||||
|
||||
<View
|
||||
|
|
|
|||
Loading…
Reference in a new issue