mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 11:46:32 +00:00
# Conflicts: # Habitica/res/layout/dialog_pet_suggest_hatch.xml # Habitica/src/main/java/com/habitrpg/android/habitica/ui/AvatarWithBarsViewModel.kt # Habitica/src/main/java/com/habitrpg/android/habitica/ui/activities/AdventureGuideActivity.kt # Habitica/src/main/java/com/habitrpg/android/habitica/ui/adapter/CustomizationRecyclerViewAdapter.kt # Habitica/src/main/java/com/habitrpg/android/habitica/ui/fragments/social/InboxOverviewFragment.kt # Habitica/src/main/java/com/habitrpg/android/habitica/ui/views/shops/PurchaseDialogBackgroundContent.kt # common/src/main/java/com/habitrpg/common/habitica/views/AvatarView.kt
95 lines
No EOL
3.8 KiB
XML
95 lines
No EOL
3.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:adjustViewBounds="true"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:orientation="vertical"
|
|
android:layout_marginBottom="8dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.habitrpg.common.habitica.views.AvatarView
|
|
android:id="@+id/avatarView"
|
|
android:layout_width="@dimen/avatar_header_width"
|
|
android:layout_height="@dimen/avatar_header_height"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="20dp"
|
|
android:contentDescription="@string/sidebar_avatar"
|
|
app:showBackground="true"
|
|
app:showMount="true"
|
|
app:showPet="true"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<com.habitrpg.android.habitica.ui.views.ValueBar
|
|
android:id="@+id/hpBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/header_bar_spacing"
|
|
app:barForegroundColor="@color/background_red"
|
|
app:barBackgroundColor="@color/window_background"
|
|
app:description="@string/HP_default"/>
|
|
|
|
<com.habitrpg.android.habitica.ui.views.ValueBar
|
|
android:id="@+id/xpBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/header_bar_spacing"
|
|
app:barForegroundColor="@color/background_yellow"
|
|
app:barBackgroundColor="@color/window_background"
|
|
app:description="@string/XP_default"/>
|
|
|
|
<com.habitrpg.android.habitica.ui.views.ValueBar
|
|
android:id="@+id/mpBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:barForegroundColor="@color/background_blue"
|
|
app:barBackgroundColor="@color/window_background"
|
|
app:description="@string/MP_default"/>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/lvl_tv"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="36dp"
|
|
android:drawablePadding="6dp"
|
|
android:gravity="center"
|
|
android:textColor="@color/text_secondary"
|
|
android:textSize="12sp"
|
|
tools:text="Lvl 12 Warrior"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/buffImageView"
|
|
android:layout_width="15dp"
|
|
android:layout_height="15dp"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
tools:srcCompat="@tools:sample/avatars" />
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"/>
|
|
|
|
<com.habitrpg.android.habitica.ui.views.CurrencyViews
|
|
android:id="@+id/currencyView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"/>
|
|
</LinearLayout>
|
|
</LinearLayout> |