2016-09-09 19:19:51 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<LinearLayout
|
2019-08-23 10:24:15 +00:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2021-11-29 16:03:17 +00:00
|
|
|
android:id="@android:id/background"
|
2019-08-23 10:24:15 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-11-19 10:43:24 +00:00
|
|
|
android:focusable="true"
|
|
|
|
|
android:focusableInTouchMode="true"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:background="@drawable/widget_background"
|
2022-08-17 14:59:44 +00:00
|
|
|
android:paddingVertical="12dp"
|
2021-11-29 16:03:17 +00:00
|
|
|
android:paddingHorizontal="?widgetBackgroundRadius"
|
2021-11-19 10:43:24 +00:00
|
|
|
android:elevation="2dp"
|
2021-11-29 16:03:17 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:theme="@style/MyWidgetTheme">
|
2019-08-23 10:24:15 +00:00
|
|
|
<LinearLayout
|
2016-09-09 19:19:51 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center_vertical">
|
2019-08-23 10:24:15 +00:00
|
|
|
<ImageView
|
2016-09-09 19:19:51 +00:00
|
|
|
android:id="@+id/avatar_view"
|
2024-01-04 13:29:35 +00:00
|
|
|
android:layout_width="100dp"
|
|
|
|
|
android:layout_height="110dp"
|
2016-09-09 19:19:51 +00:00
|
|
|
android:src="@mipmap/ic_launcher"
|
2024-01-04 13:29:35 +00:00
|
|
|
android:layout_marginEnd="4dp"
|
2016-09-09 19:19:51 +00:00
|
|
|
android:scaleType="centerInside"
|
2019-08-23 10:24:15 +00:00
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
<LinearLayout
|
2016-09-09 19:19:51 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_gravity="center_vertical">
|
2021-07-20 09:43:44 +00:00
|
|
|
<LinearLayout
|
2019-08-23 10:24:15 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginBottom="@dimen/bar_padding"
|
|
|
|
|
android:orientation="horizontal">
|
2016-09-09 19:19:51 +00:00
|
|
|
<ImageView
|
2019-08-23 10:24:15 +00:00
|
|
|
android:id="@+id/ic_hp_header"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
2019-08-23 10:24:15 +00:00
|
|
|
android:scaleType="center"
|
|
|
|
|
android:contentDescription="@string/HP_default"/>
|
2021-07-20 09:43:44 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
2016-09-09 19:19:51 +00:00
|
|
|
<ProgressBar
|
2019-08-23 10:24:15 +00:00
|
|
|
android:id="@+id/hp_bar"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:layout_width="match_parent"
|
2019-08-23 10:24:15 +00:00
|
|
|
android:layout_height="@dimen/bar_size_slim"
|
|
|
|
|
android:orientation="horizontal"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:indeterminateOnly="false"
|
2019-08-23 10:24:15 +00:00
|
|
|
android:progressDrawable="@drawable/hp_progress"
|
|
|
|
|
android:paddingTop="1dp"
|
|
|
|
|
android:paddingBottom="1dp"/>
|
2016-09-09 19:19:51 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2019-08-23 10:24:15 +00:00
|
|
|
android:layout_width="match_parent"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal">
|
2016-09-09 19:19:51 +00:00
|
|
|
<TextView
|
2019-08-23 10:24:15 +00:00
|
|
|
android:id="@+id/TV_hp_value"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
2021-11-29 16:03:17 +00:00
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:textSize="11sp"/>
|
2016-09-09 19:19:51 +00:00
|
|
|
<TextView
|
2019-08-23 10:24:15 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center|end"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:text="@string/HP_default"
|
2021-11-29 16:03:17 +00:00
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:textSize="11sp"/>
|
|
|
|
|
</LinearLayout></LinearLayout>
|
|
|
|
|
</LinearLayout>
|
2016-09-09 19:19:51 +00:00
|
|
|
|
2021-07-20 09:43:44 +00:00
|
|
|
<LinearLayout
|
2019-08-23 10:24:15 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal">
|
2016-09-09 19:19:51 +00:00
|
|
|
<ImageView
|
2019-08-23 10:24:15 +00:00
|
|
|
android:id="@+id/ic_exp_header"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
2019-08-23 10:24:15 +00:00
|
|
|
android:scaleType="center"
|
|
|
|
|
tools:ignore="ContentDescription"/>
|
2021-07-20 09:43:44 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
2016-09-09 19:19:51 +00:00
|
|
|
<ProgressBar
|
2019-08-23 10:24:15 +00:00
|
|
|
android:id="@+id/exp_bar"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:layout_width="match_parent"
|
2019-08-23 10:24:15 +00:00
|
|
|
android:layout_height="@dimen/bar_size_slim"
|
|
|
|
|
android:orientation="horizontal"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:indeterminateOnly="false"
|
2019-08-23 10:24:15 +00:00
|
|
|
android:progressDrawable="@drawable/exp_progress"
|
|
|
|
|
android:paddingTop="1dp"
|
|
|
|
|
android:paddingBottom="1dp"/>
|
2016-09-09 19:19:51 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2019-08-23 10:24:15 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
2016-09-09 19:19:51 +00:00
|
|
|
<TextView
|
2019-08-23 10:24:15 +00:00
|
|
|
android:id="@+id/exp_TV_value"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
2021-11-29 16:03:17 +00:00
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:textSize="11sp"/>
|
2016-09-09 19:19:51 +00:00
|
|
|
<TextView
|
2019-08-23 10:24:15 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center|end"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:text="@string/XP_default"
|
2021-11-29 16:03:17 +00:00
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:textSize="11sp"/>
|
|
|
|
|
</LinearLayout>
|
2016-09-09 19:19:51 +00:00
|
|
|
</LinearLayout>
|
2021-07-20 09:43:44 +00:00
|
|
|
</LinearLayout>
|
2016-09-09 19:19:51 +00:00
|
|
|
|
2021-07-20 09:43:44 +00:00
|
|
|
<LinearLayout
|
2019-08-23 10:24:15 +00:00
|
|
|
android:id="@+id/mp_wrapper"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="@dimen/bar_padding"
|
|
|
|
|
android:orientation="horizontal">
|
2016-09-09 19:19:51 +00:00
|
|
|
<ImageView
|
2019-08-23 10:24:15 +00:00
|
|
|
android:id="@+id/ic_mp_header"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
2019-08-23 10:24:15 +00:00
|
|
|
android:scaleType="center"
|
|
|
|
|
tools:ignore="ContentDescription" />
|
2021-07-20 09:43:44 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
2016-09-09 19:19:51 +00:00
|
|
|
<ProgressBar
|
2019-08-23 10:24:15 +00:00
|
|
|
android:id="@+id/mp_bar"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:layout_width="match_parent"
|
2019-08-23 10:24:15 +00:00
|
|
|
android:layout_height="@dimen/bar_size_slim"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:weightSum="1"
|
|
|
|
|
android:progressDrawable="@drawable/mp_progress"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:indeterminateOnly="false"
|
2019-08-23 10:24:15 +00:00
|
|
|
android:paddingTop="1dp"
|
|
|
|
|
android:paddingBottom="1dp"/>
|
2016-09-09 19:19:51 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2019-08-23 10:24:15 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
2016-09-09 19:19:51 +00:00
|
|
|
<TextView
|
2019-08-23 10:24:15 +00:00
|
|
|
android:id="@+id/mp_TV_value"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
2021-11-29 16:03:17 +00:00
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:textSize="11sp"/>
|
2016-09-09 19:19:51 +00:00
|
|
|
<TextView
|
2019-08-23 10:24:15 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center|end"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:text="@string/MP_default"
|
2021-11-29 16:03:17 +00:00
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:textSize="11sp"/>
|
2016-09-09 19:19:51 +00:00
|
|
|
</LinearLayout>
|
2021-07-20 09:43:44 +00:00
|
|
|
</LinearLayout></LinearLayout>
|
2016-09-09 19:19:51 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<LinearLayout
|
2019-08-23 10:24:15 +00:00
|
|
|
android:id="@+id/detail_info_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingTop="@dimen/bar_padding_small"
|
2017-07-25 16:27:00 +00:00
|
|
|
android:gravity="center_vertical">
|
2016-09-09 19:19:51 +00:00
|
|
|
<TextView
|
2019-08-23 10:24:15 +00:00
|
|
|
android:id="@+id/lvl_tv"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:textSize="14sp"
|
2021-11-29 16:03:17 +00:00
|
|
|
android:textColor="?android:attr/textColorSecondary" />
|
2016-09-09 19:19:51 +00:00
|
|
|
<TextView
|
2019-08-23 10:24:15 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_weight="1" />
|
2016-09-09 19:19:51 +00:00
|
|
|
<LinearLayout
|
2019-08-23 10:24:15 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center_vertical">
|
2017-09-05 13:56:34 +00:00
|
|
|
<ImageView
|
2019-04-09 05:01:14 +00:00
|
|
|
android:id="@+id/hourglass_icon"
|
2017-09-05 13:56:34 +00:00
|
|
|
android:layout_width="wrap_content"
|
2019-08-23 10:24:15 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
tools:ignore="ContentDescription" />
|
2017-07-20 17:59:59 +00:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/hourglasses_tv"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-11-29 16:03:17 +00:00
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
2017-07-20 17:59:59 +00:00
|
|
|
style="@style/CurrencyTextView"
|
|
|
|
|
/>
|
2017-09-05 13:56:34 +00:00
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/gem_icon"
|
|
|
|
|
android:layout_width="wrap_content"
|
2019-08-23 10:24:15 +00:00
|
|
|
android:layout_height="wrap_content"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:layout_marginStart="8dp"
|
2019-08-23 10:24:15 +00:00
|
|
|
tools:ignore="ContentDescription" />
|
2016-09-09 19:19:51 +00:00
|
|
|
<TextView
|
2019-08-23 10:24:15 +00:00
|
|
|
android:id="@+id/gems_tv"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-11-29 16:03:17 +00:00
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
2017-07-20 17:59:59 +00:00
|
|
|
style="@style/CurrencyTextView"
|
2019-08-23 10:24:15 +00:00
|
|
|
/>
|
2016-09-09 19:19:51 +00:00
|
|
|
|
2017-09-05 13:56:34 +00:00
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/gold_icon"
|
|
|
|
|
android:layout_width="wrap_content"
|
2019-08-23 10:24:15 +00:00
|
|
|
android:layout_height="wrap_content"
|
2021-07-20 09:43:44 +00:00
|
|
|
android:layout_marginStart="8dp"
|
2019-08-23 10:24:15 +00:00
|
|
|
tools:ignore="ContentDescription" />
|
2016-09-09 19:19:51 +00:00
|
|
|
<TextView
|
2019-08-23 10:24:15 +00:00
|
|
|
android:id="@+id/gold_tv"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-11-29 16:03:17 +00:00
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
2017-07-20 17:59:59 +00:00
|
|
|
style="@style/CurrencyTextView"
|
2019-08-23 10:24:15 +00:00
|
|
|
/>
|
2016-09-09 19:19:51 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|