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

391 lines
18 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"
2020-09-04 16:17:34 +00:00
android:background="?attr/colorContentBackground">
2019-08-12 16:19:09 +00:00
<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"
2020-08-26 10:58:04 +00:00
android:theme="@style/Toolbar.Modern"
2019-08-12 16:19:09 +00:00
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/scroll_view"
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">
2019-11-05 14:19:44 +00:00
<include
2019-08-12 16:19:09 +00:00
android:id="@+id/avatar_with_bars"
2019-11-05 14:19:44 +00:00
layout="@layout/avatar_with_bars"
android:layout_width="match_parent"
2019-11-05 14:19:44 +00:00
android:layout_height="wrap_content" />
2019-08-12 16:19:09 +00:00
<TextView
android:id="@+id/blurb_text_view"
2019-08-12 16:19:09 +00:00
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_layout"
2019-08-12 16:19:09 +00:00
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/costume_card"
2019-08-12 16:19:09 +00:00
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_layout"
2019-08-12 16:19:09 +00:00
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/attributes_card_view"
2019-08-12 16:19:09 +00:00
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_layout"
2019-08-12 16:19:09 +00:00
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/pets_found_count"
2019-08-12 16:19:09 +00:00
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/mounts_tamed_count"
2019-08-12 16:19:09 +00:00
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/achievement_progress"
2019-08-12 16:19:09 +00:00
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:indeterminate="true" />
<com.habitrpg.android.habitica.ui.helpers.RecyclerViewEmptySupport
android:id="@+id/achievement_group_list"
2019-08-12 16:19:09 +00:00
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>