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

433 lines
20 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"
android:layout_width="match_parent"
2019-08-12 16:19:09 +00:00
android:layout_height="match_parent"
android:orientation="vertical"
2021-06-04 14:11:48 +00:00
tools:context="com.habitrpg.android.habitica.ui.activities.FixCharacterValuesActivity">
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"
2023-01-04 13:34:12 +00:00
style="@style/ToolbarTitleStyle"
2019-08-12 16:19:09 +00:00
app:layout_scrollFlags="scroll|enterAlways"
2020-09-29 10:48:20 +00:00
app:popupTheme="@style/PopupTheme"/>
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">
2020-09-15 07:28:34 +00:00
<FrameLayout
2020-09-18 16:34:53 +00:00
android:id="@+id/blocked_disclaimer_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/FlatCardView"
android:background="@drawable/layout_rounded_bg_red"
android:visibility="gone">
<LinearLayout
style="@style/CardContent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/CardTitle"
android:text="@string/user_is_blocked"
android:textColor="@color/white"
android:layout_gravity="center" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/CardText"
android:text="@string/user_is_blocked_explanation"
android:textColor="@color/white"
android:gravity="center"
android:layout_gravity="center" />
</LinearLayout>
</FrameLayout>
<FrameLayout
style="@style/FlatCardView"
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">
2022-12-19 15:40:18 +00:00
<androidx.compose.ui.platform.ComposeView
2019-08-12 16:19:09 +00:00
android:id="@+id/avatar_with_bars"
android:layout_width="match_parent"
2019-11-05 14:19:44 +00:00
android:layout_height="wrap_content" />
2022-12-12 16:46:32 +00:00
<LinearLayout
android:id="@+id/admin_status_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="@dimen/spacing_medium"
android:layout_marginBottom="@dimen/spacing_medium"
android:visibility="gone">
<TextView
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/status"
style="@style/SubHeader1"/>
<TextView
android:id="@+id/admin_status_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="today"/>
</LinearLayout>
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
2021-06-07 14:09:57 +00:00
<ImageView
2019-08-12 16:19:09 +00:00
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
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"
2022-06-30 10:14:31 +00:00
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"
2022-06-30 10:14:31 +00:00
style="@style/SubHeader1"/>
2019-08-12 16:19:09 +00:00
<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"
2022-06-30 10:14:31 +00:00
style="@style/SubHeader1"/>
2019-08-12 16:19:09 +00:00
<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>
2020-09-15 07:28:34 +00:00
</FrameLayout>
2020-09-15 07:28:34 +00:00
<FrameLayout
2020-09-18 16:34:53 +00:00
style="@style/FlatCardView"
2019-10-07 16:35:08 +00:00
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"
2020-09-18 16:34:53 +00:00
android:drawableTint="?colorPrimary"
2019-10-07 16:35:08 +00:00
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"
2020-09-18 16:34:53 +00:00
android:drawableTint="?colorPrimary"
2019-10-07 16:35:08 +00:00
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"
2020-09-18 16:34:53 +00:00
android:drawableTint="?colorPrimary"
2019-10-07 16:35:08 +00:00
android:textAllCaps="false"
android:textSize="13sp"
android:drawableTop="@drawable/icon_gift_subscription"/>
</LinearLayout>
2020-09-15 07:28:34 +00:00
</FrameLayout>
2019-10-07 16:35:08 +00:00
2020-09-15 07:28:34 +00:00
<FrameLayout
2020-09-18 16:34:53 +00:00
style="@style/FlatCardView"
2019-08-12 16:19:09 +00:00
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>
2020-09-15 07:28:34 +00:00
</FrameLayout>
2020-09-15 07:28:34 +00:00
<FrameLayout
2020-09-18 16:34:53 +00:00
style="@style/FlatCardView"
android:id="@+id/costume_card"
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>
2020-09-15 07:28:34 +00:00
</FrameLayout>
2020-09-15 07:28:34 +00:00
<FrameLayout
2020-09-18 16:34:53 +00:00
style="@style/FlatCardView"
android:id="@+id/attributes_card_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-08-12 16:19:09 +00:00
android:clickable="true"
2023-12-21 13:17:06 +00:00
android:focusable="true"
2019-08-12 16:19:09 +00:00
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">
<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>
2020-09-15 07:28:34 +00:00
</FrameLayout>
2020-09-15 07:28:34 +00:00
<FrameLayout
2020-09-18 16:34:53 +00:00
style="@style/FlatCardView"
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.habitrpg.common.habitica.views.PixelArtView
2019-08-12 16:19:09 +00:00
android:id="@+id/current_pet_drawee"
android:layout_width="40dp"
2021-06-07 14:09:57 +00:00
android:layout_height="40dp"/>
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.habitrpg.common.habitica.views.PixelArtView
2019-08-12 16:19:09 +00:00
android:id="@+id/current_mount_drawee"
android:layout_width="40dp"
2021-06-07 14:09:57 +00:00
android:layout_height="40dp"/>
2019-08-12 16:19:09 +00:00
</TableRow>
</TableLayout>
</LinearLayout>
2020-09-15 07:28:34 +00:00
</FrameLayout>
2019-08-12 16:19:09 +00:00
2020-09-15 07:28:34 +00:00
<FrameLayout
2020-09-18 16:34:53 +00:00
style="@style/FlatCardView"
2019-08-12 16:19:09 +00:00
android:id="@+id/profile_achievements_card"
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
<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>
2020-09-15 07:28:34 +00:00
</FrameLayout>
2019-08-12 16:19:09 +00:00
</LinearLayout>
</androidx.core.widget.NestedScrollView>
2023-12-21 13:17:06 +00:00
</LinearLayout>