2016-08-02 22:12:15 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2016-08-04 21:11:39 +00:00
|
|
|
xmlns:fresco="http://schemas.android.com/apk/res-auto"
|
2016-09-10 03:09:32 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2016-08-06 18:47:01 +00:00
|
|
|
android:id="@+id/fullprofile_scrollview"
|
2016-08-02 22:12:15 +00:00
|
|
|
android:layout_width="match_parent"
|
2016-08-06 18:47:01 +00:00
|
|
|
android:layout_height="match_parent">
|
2016-08-02 22:12:15 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
2017-02-01 15:58:53 +00:00
|
|
|
android:layout_height="wrap_content"
|
2016-08-02 22:12:15 +00:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<android.support.v7.widget.CardView
|
|
|
|
|
style="@style/CardView.Default"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2016-08-12 20:17:02 +00:00
|
|
|
style="@style/CardContent"
|
2016-08-02 22:12:15 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2016-08-12 20:17:02 +00:00
|
|
|
android:orientation="vertical">
|
2016-08-02 22:12:15 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/avatar_with_bars"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
|
android:adjustViewBounds="true"
|
|
|
|
|
android:background="@color/transparent"
|
|
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
<com.habitrpg.android.habitica.ui.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="16dp"
|
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
|
app:showBackground="true"
|
|
|
|
|
app:showMount="true"
|
|
|
|
|
app:showPet="true" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/LL_header"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
2017-04-21 19:06:36 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.ValueBar
|
2016-08-02 22:12:15 +00:00
|
|
|
android:id="@+id/hpBar"
|
2017-04-21 19:06:36 +00:00
|
|
|
layout="@layout/value_bar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginBottom="@dimen/header_bar_spacing"
|
|
|
|
|
app:barForegroundColor="@color/hpColor"
|
2017-09-05 13:56:34 +00:00
|
|
|
app:description="@string/HP_default" />
|
2016-08-02 22:12:15 +00:00
|
|
|
|
2017-04-21 19:06:36 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.ValueBar
|
2016-08-02 22:12:15 +00:00
|
|
|
android:id="@+id/xpBar"
|
2017-04-21 19:06:36 +00:00
|
|
|
layout="@layout/value_bar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginBottom="@dimen/header_bar_spacing"
|
|
|
|
|
app:barForegroundColor="@color/xpColor"
|
2017-09-05 13:56:34 +00:00
|
|
|
app:description="@string/XP_default" />
|
2016-08-02 22:12:15 +00:00
|
|
|
|
2017-04-21 19:06:36 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.ValueBar
|
2016-08-02 22:12:15 +00:00
|
|
|
android:id="@+id/mpBar"
|
2017-04-21 19:06:36 +00:00
|
|
|
layout="@layout/value_bar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:barForegroundColor="@color/mpColor"
|
2017-09-05 13:56:34 +00:00
|
|
|
app:description="@string/MP_default" />
|
2016-08-02 22:12:15 +00:00
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/lvl_tv"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="36dp"
|
|
|
|
|
android:drawablePadding="6dp"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
2017-09-12 14:37:17 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.CurrencyViews
|
2017-07-20 17:59:59 +00:00
|
|
|
android:id="@+id/currencyView"
|
2016-08-02 22:12:15 +00:00
|
|
|
android:layout_width="wrap_content"
|
2017-07-20 17:59:59 +00:00
|
|
|
android:layout_height="wrap_content" />
|
2016-08-02 22:12:15 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
2016-08-04 21:11:39 +00:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/profile_blurb"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-04-27 17:39:07 +00:00
|
|
|
android:textIsSelectable="true"
|
2016-08-04 21:11:39 +00:00
|
|
|
android:text="Blurb" />
|
|
|
|
|
|
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
|
|
|
|
android:id="@+id/profile_image"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
|
android:minHeight="200dp"
|
|
|
|
|
fresco:actualImageScaleType="fitCenter" />
|
|
|
|
|
|
2016-08-02 22:12:15 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
</android.support.v7.widget.CardView>
|
|
|
|
|
|
2016-10-13 23:03:37 +00:00
|
|
|
<android.support.v7.widget.CardView
|
|
|
|
|
style="@style/CardView.Default"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
<LinearLayout
|
|
|
|
|
style="@style/CardContent"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/CardTitle"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/user_id"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:gravity="center_horizontal">
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text=""
|
|
|
|
|
android:id="@+id/userid"/>
|
|
|
|
|
<Button
|
|
|
|
|
android:text="@string/copy"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:id="@+id/copy_userid" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</android.support.v7.widget.CardView>
|
|
|
|
|
|
2016-08-02 22:12:15 +00:00
|
|
|
|
|
|
|
|
<android.support.v7.widget.CardView
|
|
|
|
|
style="@style/CardView.Default"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2016-08-12 20:17:02 +00:00
|
|
|
style="@style/CardContent"
|
2016-08-02 22:12:15 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2016-08-12 20:17:02 +00:00
|
|
|
android:orientation="vertical">
|
2016-08-02 22:12:15 +00:00
|
|
|
|
|
|
|
|
<TextView
|
2016-08-12 20:17:02 +00:00
|
|
|
style="@style/CardTitle"
|
2016-08-02 22:12:15 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2016-08-09 20:29:05 +00:00
|
|
|
android:text="@string/battle_gear"
|
2016-08-02 22:12:15 +00:00
|
|
|
android:textStyle="bold" />
|
|
|
|
|
<TableLayout
|
|
|
|
|
android:id="@+id/equipment_table"
|
|
|
|
|
android:layout_width="match_parent"
|
2016-08-04 21:11:39 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:shrinkColumns="1"
|
|
|
|
|
android:stretchColumns="0" />
|
2016-08-02 22:12:15 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
</android.support.v7.widget.CardView>
|
|
|
|
|
|
|
|
|
|
<android.support.v7.widget.CardView
|
2016-08-09 20:29:05 +00:00
|
|
|
android:id="@+id/profile_costume_card"
|
2016-08-02 22:12:15 +00:00
|
|
|
style="@style/CardView.Default"
|
|
|
|
|
android:layout_width="match_parent"
|
2016-08-06 18:47:01 +00:00
|
|
|
android:layout_height="wrap_content">
|
2016-08-02 22:12:15 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2016-08-12 20:17:02 +00:00
|
|
|
style="@style/CardContent"
|
2016-08-02 22:12:15 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2016-08-12 20:17:02 +00:00
|
|
|
android:orientation="vertical">
|
2016-08-02 22:12:15 +00:00
|
|
|
|
|
|
|
|
<TextView
|
2016-08-12 20:17:02 +00:00
|
|
|
style="@style/CardTitle"
|
2016-08-02 22:12:15 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2016-08-09 20:29:05 +00:00
|
|
|
android:text="@string/costume"
|
2016-08-02 22:12:15 +00:00
|
|
|
android:textStyle="bold" />
|
|
|
|
|
<TableLayout
|
2016-08-04 21:11:39 +00:00
|
|
|
android:id="@+id/costume_table"
|
2016-08-02 22:12:15 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2016-08-04 21:11:39 +00:00
|
|
|
android:shrinkColumns="1"
|
|
|
|
|
android:stretchColumns="0" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</android.support.v7.widget.CardView>
|
|
|
|
|
|
|
|
|
|
<android.support.v7.widget.CardView
|
2016-08-09 20:29:05 +00:00
|
|
|
android:id="@+id/profile_attributes_card"
|
2016-08-12 20:17:02 +00:00
|
|
|
style="@style/CardView.Default"
|
2016-08-04 21:11:39 +00:00
|
|
|
android:layout_width="match_parent"
|
2016-08-09 20:29:05 +00:00
|
|
|
android:layout_height="wrap_content"
|
2016-08-12 20:17:02 +00:00
|
|
|
android:clickable="true"
|
|
|
|
|
android:foreground="?android:attr/selectableItemBackground">
|
2016-08-04 21:11:39 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2016-08-12 20:17:02 +00:00
|
|
|
style="@style/CardContent"
|
2016-08-04 21:11:39 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:weightSum="1">
|
|
|
|
|
|
|
|
|
|
<TableLayout
|
2016-08-06 18:47:01 +00:00
|
|
|
android:id="@+id/attributes_table"
|
2016-08-04 21:11:39 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2016-08-06 18:47:01 +00:00
|
|
|
android:stretchColumns="0,1,2,3,4">
|
2016-08-04 21:11:39 +00:00
|
|
|
|
|
|
|
|
<TableRow android:layout_height="wrap_content">
|
|
|
|
|
<!-- Headers -->
|
|
|
|
|
|
2016-08-12 20:17:02 +00:00
|
|
|
<LinearLayout
|
2016-08-04 21:11:39 +00:00
|
|
|
android:layout_width="wrap_content"
|
2016-08-12 20:17:02 +00:00
|
|
|
android:layout_height="wrap_content">
|
2016-08-04 21:11:39 +00:00
|
|
|
|
2016-08-12 20:17:02 +00:00
|
|
|
<TextView
|
|
|
|
|
style="@style/CardTitle"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/attributes"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
2017-06-21 12:13:27 +00:00
|
|
|
<android.support.v7.widget.AppCompatImageView
|
2017-02-06 14:53:10 +00:00
|
|
|
android:id="@+id/attributes_collapse_icon"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:srcCompat="@drawable/ic_keyboard_arrow_right_black_24dp"
|
|
|
|
|
android:layout_gravity="bottom" />
|
2016-08-12 20:17:02 +00:00
|
|
|
|
|
|
|
|
</LinearLayout>
|
2016-08-04 21:11:39 +00:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:text="STR" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:text="INT" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:text="CON" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:text="PER" />
|
|
|
|
|
</TableRow>
|
2016-08-02 22:12:15 +00:00
|
|
|
|
|
|
|
|
</TableLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</android.support.v7.widget.CardView>
|
2016-08-06 18:47:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<android.support.v7.widget.CardView
|
|
|
|
|
style="@style/CardView.Default"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2016-08-12 20:17:02 +00:00
|
|
|
style="@style/CardContent"
|
2016-08-06 18:47:01 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:weightSum="1">
|
|
|
|
|
|
|
|
|
|
<TextView
|
2016-08-12 20:17:02 +00:00
|
|
|
style="@style/CardTitle"
|
2016-08-06 18:47:01 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2016-08-09 20:29:05 +00:00
|
|
|
android:text="@string/profile_pets_and_mounts"
|
2016-08-06 18:47:01 +00:00
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<TableLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2016-08-08 16:09:26 +00:00
|
|
|
android:stretchColumns="0,1">
|
2016-08-06 18:47:01 +00:00
|
|
|
|
|
|
|
|
<TableRow android:layout_height="wrap_content">
|
|
|
|
|
|
2016-08-08 16:09:26 +00:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2016-08-09 20:29:05 +00:00
|
|
|
android:text="@string/profile_pets_found" />
|
2016-08-08 16:09:26 +00:00
|
|
|
|
|
|
|
|
<TextView
|
2016-09-10 03:09:32 +00:00
|
|
|
android:id="@+id/profile_pets_found_count"
|
2016-08-08 16:09:26 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2016-09-10 03:09:32 +00:00
|
|
|
tools:text="#" />
|
2016-08-08 16:09:26 +00:00
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
|
|
<TableRow android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2016-08-09 20:29:05 +00:00
|
|
|
android:text="@string/profile_mounts_tamed" />
|
2016-08-08 16:09:26 +00:00
|
|
|
|
|
|
|
|
<TextView
|
2016-09-10 03:09:32 +00:00
|
|
|
android:id="@+id/profile_mounts_tamed_count"
|
2016-08-08 16:09:26 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2016-09-10 03:09:32 +00:00
|
|
|
tools:text="#" />
|
2016-08-06 18:47:01 +00:00
|
|
|
</TableRow>
|
|
|
|
|
</TableLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</android.support.v7.widget.CardView>
|
|
|
|
|
|
2016-09-06 19:33:17 +00:00
|
|
|
|
|
|
|
|
<android.support.v7.widget.CardView
|
|
|
|
|
android:id="@+id/profile_achievements_card"
|
|
|
|
|
style="@style/CardView.Default"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
style="@style/CardContent"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/CardTitle"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/profile_achievements"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
|
android:id="@+id/avatar_achievements_progress"
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:indeterminate="true" />
|
|
|
|
|
|
2016-09-08 15:22:59 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.helpers.RecyclerViewEmptySupport
|
|
|
|
|
android:id="@+id/recyclerView"
|
2016-09-06 19:33:17 +00:00
|
|
|
android:layout_width="match_parent"
|
2016-09-08 15:22:59 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:scrollbarSize="3dp"
|
2017-11-17 19:09:36 +00:00
|
|
|
android:scrollbarThumbVertical="@color/scrollbarThumb"
|
2016-09-08 15:22:59 +00:00
|
|
|
android:scrollbars="vertical" />
|
2016-09-06 19:33:17 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
</android.support.v7.widget.CardView>
|
|
|
|
|
|
2016-08-02 22:12:15 +00:00
|
|
|
</LinearLayout>
|
2016-09-28 20:38:39 +00:00
|
|
|
</ScrollView>
|