habitica-android/Habitica/res/layout/activity_full_profile.xml

479 lines
23 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2019-08-12 16:19:09 +00:00
<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"
2019-08-12 16:19:09 +00:00
xmlns:fresco="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
2019-08-12 16:19:09 +00:00
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.habitrpg.android.habitica.ui.activities.FixCharacterValuesActivity"
android:background="@color/white">
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
2019-08-12 16:19:09 +00:00
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
android:theme="@style/Toolbar"
app:layout_scrollFlags="scroll|enterAlways"
app:popupTheme="@style/Theme.AppCompat.Light"/>
2019-08-12 16:19:09 +00:00
</com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView
android:id="@+id/fullprofile_scrollview"
android:layout_width="match_parent"
2019-08-12 16:19:09 +00:00
android:layout_height="match_parent">
2019-08-12 16:19:09 +00:00
<LinearLayout
android:layout_width="match_parent"
2019-08-12 16:19:09 +00:00
android:layout_height="wrap_content"
android:orientation="vertical">
2019-08-12 16:19:09 +00:00
<androidx.cardview.widget.CardView
style="@style/CardView.Default"
android:layout_width="match_parent"
2019-08-12 16:19:09 +00:00
android:layout_height="wrap_content">
<LinearLayout
2019-08-12 16:19:09 +00:00
style="@style/CardContent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
2019-08-12 16:19:09 +00:00
android:id="@+id/avatar_with_bars"
android:layout_width="match_parent"
2019-08-12 16:19:09 +00:00
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:adjustViewBounds="true"
android:background="@color/transparent"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
2019-08-12 16:19:09 +00:00
android:layout_height="wrap_content">
2019-08-12 16:19:09 +00:00
<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"
app:showBackground="true"
app:showMount="true"
app:showPet="true" />
<LinearLayout
2017-04-21 19:06:36 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-08-12 16:19:09 +00:00
android:orientation="vertical">
2019-08-12 16:19:09 +00:00
<com.habitrpg.android.habitica.ui.views.ValueBar
android:id="@+id/hpBar"
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"
app:lightBackground="true"
app:description="@string/HP_default" />
<com.habitrpg.android.habitica.ui.views.ValueBar
android:id="@+id/xpBar"
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"
app:lightBackground="true"
app:description="@string/XP_default" />
<com.habitrpg.android.habitica.ui.views.ValueBar
android:id="@+id/mpBar"
layout="@layout/value_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:barForegroundColor="@color/mpColor"
app:lightBackground="true"
app:description="@string/MP_default" />
</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" />
<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" />
2019-08-12 16:19:09 +00:00
<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>
2019-08-12 16:19:09 +00:00
<TextView
android:id="@+id/profile_blurb"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textIsSelectable="true"
2019-10-07 16:35:08 +00:00
tools:text="Blurb" />
2019-08-12 16:19:09 +00:00
<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"
2019-10-07 16:35:08 +00:00
fresco:actualImageScaleType="fitCenter"
android:visibility="gone"/>
<LinearLayout
android:layout_width="match_parent"
2019-08-12 16:19:09 +00:00
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="@dimen/spacing_medium"
android:layout_marginBottom="@dimen/spacing_medium">
<TextView
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/joined"
style="@style/Subheader1"/>
<TextView
2019-08-12 16:19:09 +00:00
android:id="@+id/joined_view"
android:layout_width="wrap_content"
2019-08-12 16:19:09 +00:00
android:layout_height="wrap_content"
tools:text="today"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="@dimen/spacing_medium">
<TextView
android:layout_width="0dp"
2019-08-12 16:19:09 +00:00
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/last_login"
style="@style/Subheader1"/>
<TextView
android:id="@+id/last_login_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="today"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/total_checkins"
style="@style/Subheader1"/>
<TextView
android:id="@+id/total_checkins_view"
android:layout_width="wrap_content"
2019-08-12 16:19:09 +00:00
android:layout_height="wrap_content"
tools:text="100"/>
</LinearLayout>
</LinearLayout>
2019-08-12 16:19:09 +00:00
</androidx.cardview.widget.CardView>
2019-08-12 16:19:09 +00:00
<androidx.cardview.widget.CardView
2019-10-07 16:35:08 +00:00
style="@style/CardView.Default"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="?android:attr/buttonBarStyle">
<Button
android:id="@+id/send_message_button"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/profile_send_message"
style="?android:attr/buttonBarButtonStyle"
android:textAllCaps="false"
android:textSize="13sp"
android:drawableTop="@drawable/icon_messages"/>
<Button
android:id="@+id/gift_gems_button"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/profile_gift_gems"
style="?android:attr/buttonBarButtonStyle"
android:textAllCaps="false"
android:textSize="13sp"
android:drawableTop="@drawable/icon_gift_gems"/>
<Button
android:id="@+id/gift_subscription_button"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/profile_gift_subscription"
style="?android:attr/buttonBarButtonStyle"
android:textAllCaps="false"
android:textSize="13sp"
android:drawableTop="@drawable/icon_gift_subscription"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
2019-08-12 16:19:09 +00:00
<androidx.cardview.widget.CardView
style="@style/CardView.Default"
android:layout_width="match_parent"
android:layout_height="wrap_content">
2018-08-29 12:57:41 +00:00
<LinearLayout
2019-08-12 16:19:09 +00:00
style="@style/CardContent"
2018-08-29 12:57:41 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-08-12 16:19:09 +00:00
android:orientation="vertical">
2018-08-29 12:57:41 +00:00
<TextView
2019-08-12 16:19:09 +00:00
style="@style/CardTitle"
2018-08-29 12:57:41 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-08-12 16:19:09 +00:00
android:text="@string/battle_gear"
android:textStyle="bold" />
<TableLayout
android:id="@+id/equipment_table"
android:layout_width="match_parent"
2018-08-29 12:57:41 +00:00
android:layout_height="wrap_content"
2019-08-12 16:19:09 +00:00
android:shrinkColumns="1"
android:stretchColumns="0" />
2018-08-29 12:57:41 +00:00
</LinearLayout>
2019-08-12 16:19:09 +00:00
</androidx.cardview.widget.CardView>
2019-08-12 16:19:09 +00:00
<androidx.cardview.widget.CardView
android:id="@+id/profile_costume_card"
style="@style/CardView.Default"
android:layout_width="match_parent"
2019-08-12 16:19:09 +00:00
android:layout_height="wrap_content">
2018-10-17 14:28:23 +00:00
<LinearLayout
2019-08-12 16:19:09 +00:00
style="@style/CardContent"
2018-10-17 14:28:23 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-08-12 16:19:09 +00:00
android:orientation="vertical">
<TextView
2019-08-12 16:19:09 +00:00
style="@style/CardTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-08-12 16:19:09 +00:00
android:text="@string/costume"
android:textStyle="bold" />
<TableLayout
android:id="@+id/costume_table"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-08-12 16:19:09 +00:00
android:shrinkColumns="1"
android:stretchColumns="0" />
</LinearLayout>
</androidx.cardview.widget.CardView>
2019-08-12 16:19:09 +00:00
<androidx.cardview.widget.CardView
android:id="@+id/profile_attributes_card"
style="@style/CardView.Default"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-08-12 16:19:09 +00:00
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground">
2019-08-12 16:19:09 +00:00
<LinearLayout
style="@style/CardContent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-08-12 16:19:09 +00:00
android:orientation="vertical"
android:weightSum="1">
2019-08-12 16:19:09 +00:00
<TableLayout
android:id="@+id/attributes_table"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:stretchColumns="0,1,2,3,4">
2019-08-12 16:19:09 +00:00
<TableRow android:layout_height="wrap_content">
<!-- Headers -->
2019-08-12 16:19:09 +00:00
<LinearLayout
android:layout_width="wrap_content"
2019-08-12 16:19:09 +00:00
android:layout_height="wrap_content">
2019-08-12 16:19:09 +00:00
<TextView
style="@style/CardTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/attributes"
android:textStyle="bold" />
<androidx.appcompat.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" />
2019-08-12 16:19:09 +00:00
</LinearLayout>
2019-08-12 16:19:09 +00:00
<TextView
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="STR" />
2019-08-12 16:19:09 +00:00
<TextView
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="INT" />
2019-08-12 16:19:09 +00:00
<TextView
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="CON" />
2019-08-12 16:19:09 +00:00
<TextView
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="PER" />
</TableRow>
2019-08-12 16:19:09 +00:00
</TableLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>
2019-08-12 16:19:09 +00:00
<androidx.cardview.widget.CardView
style="@style/CardView.Default"
android:layout_width="match_parent"
2019-08-12 16:19:09 +00:00
android:layout_height="wrap_content">
2019-08-12 16:19:09 +00:00
<LinearLayout
style="@style/CardContent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-08-12 16:19:09 +00:00
android:orientation="vertical"
android:weightSum="1">
2019-08-12 16:19:09 +00:00
<TextView
style="@style/CardTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-08-12 16:19:09 +00:00
android:text="@string/profile_pets_and_mounts"
android:textStyle="bold" />
2019-08-12 16:19:09 +00:00
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:stretchColumns="0,1">
2016-08-08 16:09:26 +00:00
2019-08-12 16:19:09 +00:00
<TableRow
2016-08-08 16:09:26 +00:00
android:layout_height="wrap_content"
2019-08-12 16:19:09 +00:00
android:gravity="center_vertical">
2016-08-08 16:09:26 +00:00
2019-08-12 16:19:09 +00:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/profile_pets_found" />
2016-08-08 16:09:26 +00:00
2019-08-12 16:19:09 +00:00
<TextView
android:id="@+id/profile_pets_found_count"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:text="#" />
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/current_pet_drawee"
android:layout_width="40dp"
android:layout_height="40dp"
2019-08-24 10:33:14 +00:00
fresco:actualImageScaleType="centerCrop"/>
2019-08-12 16:19:09 +00:00
</TableRow>
2016-08-08 16:09:26 +00:00
2019-08-12 16:19:09 +00:00
<TableRow android:layout_height="wrap_content"
android:gravity="center_vertical">
2019-08-12 16:19:09 +00:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/profile_mounts_tamed" />
<TextView
android:id="@+id/profile_mounts_tamed_count"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:text="#" />
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/current_mount_drawee"
android:layout_width="40dp"
android:layout_height="40dp"
fresco:actualImageScaleType="centerCrop"/>
</TableRow>
</TableLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/profile_achievements_card"
style="@style/CardView.Default"
android:layout_width="match_parent"
2019-08-12 16:19:09 +00:00
android:layout_height="wrap_content">
2019-08-12 16:19:09 +00:00
<LinearLayout
style="@style/CardContent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-08-12 16:19:09 +00:00
android:orientation="vertical">
2019-08-12 16:19:09 +00:00
<TextView
style="@style/CardTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/profile_achievements"
android:textStyle="bold" />
2019-08-12 16:19:09 +00:00
<ProgressBar
android:id="@+id/avatar_achievements_progress"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:indeterminate="true" />
<com.habitrpg.android.habitica.ui.helpers.RecyclerViewEmptySupport
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbarSize="3dp"
android:scrollbarThumbVertical="@color/scrollbarThumb"
android:scrollbars="vertical" />
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout>