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

294 lines
17 KiB
XML
Raw Normal View History

2017-10-03 13:19:19 +00:00
<?xml version="1.0" encoding="utf-8"?>
<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"
android:layout_height="match_parent"
android:orientation="vertical"
2017-10-16 09:40:24 +00:00
tools:context="com.habitrpg.android.habitica.ui.activities.FixCharacterValuesActivity"
2020-09-04 16:17:34 +00:00
android:background="?attr/colorContentBackground">
2018-11-06 15:11:02 +00:00
<com.google.android.material.appbar.AppBarLayout
2017-10-03 13:19:19 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
2018-11-06 15:11:02 +00:00
<androidx.appcompat.widget.Toolbar
2017-10-03 13:19:19 +00:00
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/ThemeOverlay.AppCompat.Dark"/>
2018-11-06 15:11:02 +00:00
</com.google.android.material.appbar.AppBarLayout>
2017-10-03 13:19:19 +00:00
<ScrollView android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-10-16 09:40:24 +00:00
android:padding="@dimen/outer_inset"
android:text="@string/fix_character_description"
2020-09-04 16:17:34 +00:00
android:background="@color/window_background"
2017-10-16 09:40:24 +00:00
android:layout_marginBottom="16dp"
/>
2020-04-22 12:52:36 +00:00
<FrameLayout
2017-10-03 13:19:19 +00:00
android:layout_width="match_parent"
2017-10-16 09:40:24 +00:00
android:layout_height="wrap_content"
2020-09-17 11:47:02 +00:00
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
2020-04-22 12:52:36 +00:00
android:layout_marginBottom="12dp" >
<View
android:id="@+id/healthIconBackgroundView"
android:layout_width="80dp"
android:layout_height="match_parent"
android:layout_gravity="end"
android:background="@color/red_500"/>
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/editTextWrapper"
android:layout_height="match_parent"
android:layout_width="0dp"
android:layout_weight="1"
2020-09-04 16:17:34 +00:00
android:background="@drawable/layout_rounded_bg_window"
2020-04-22 12:52:36 +00:00
android:hint="@string/health"
android:paddingStart="16dp">
2020-09-17 11:23:27 +00:00
<com.google.android.material.textfield.TextInputEditText
2020-04-22 12:52:36 +00:00
android:id="@+id/healthEditText"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="numberDecimal"
android:background="@android:color/transparent"/>
</com.google.android.material.textfield.TextInputLayout>
<ImageView
android:id="@+id/healthIconView"
android:layout_width="56dp"
android:layout_height="56dp"
android:scaleType="center"/>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_gravity="bottom"
2020-09-04 16:17:34 +00:00
android:background="@color/content_background_offset"
2020-04-22 12:52:36 +00:00
android:layout_marginEnd="56dp"/>
</FrameLayout>
<FrameLayout
2017-10-16 09:40:24 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-09-17 11:47:02 +00:00
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
2020-04-22 12:52:36 +00:00
android:layout_marginBottom="12dp" >
<View
android:id="@+id/experienceIconBackgroundView"
android:layout_width="80dp"
android:layout_height="match_parent"
android:layout_gravity="end"
android:background="@color/yellow_500"/>
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent">
<com.google.android.material.textfield.TextInputLayout
android:layout_height="match_parent"
android:layout_width="0dp"
android:layout_weight="1"
2020-09-04 16:17:34 +00:00
android:background="@drawable/layout_rounded_bg_window"
2020-04-22 12:52:36 +00:00
android:hint="@string/experience_points"
android:paddingStart="16dp">
2020-09-17 11:23:27 +00:00
<com.google.android.material.textfield.TextInputEditText
2020-04-22 12:52:36 +00:00
android:id="@+id/experienceEditText"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="numberDecimal"
android:background="@android:color/transparent"/>
</com.google.android.material.textfield.TextInputLayout>
<ImageView
android:id="@+id/experienceIconView"
android:layout_width="56dp"
android:layout_height="56dp"
android:scaleType="center"/>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_gravity="bottom"
2020-09-04 16:17:34 +00:00
android:background="@color/content_background_offset"
2020-04-22 12:52:36 +00:00
android:layout_marginEnd="56dp"/>
</FrameLayout>
<FrameLayout
2017-10-16 09:40:24 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-09-17 11:47:02 +00:00
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
2020-04-22 12:52:36 +00:00
android:layout_marginBottom="12dp" >
<View
android:id="@+id/manaIconBackgroundView"
android:layout_width="80dp"
android:layout_height="match_parent"
android:layout_gravity="end"
android:background="@color/blue_500"/>
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent">
<com.google.android.material.textfield.TextInputLayout
android:layout_height="match_parent"
android:layout_width="0dp"
android:layout_weight="1"
2020-09-04 16:17:34 +00:00
android:background="@drawable/layout_rounded_bg_window"
2020-04-22 12:52:36 +00:00
android:hint="@string/mana_points"
android:paddingStart="16dp">
2020-09-17 11:23:27 +00:00
<com.google.android.material.textfield.TextInputEditText
2020-04-22 12:52:36 +00:00
android:id="@+id/manaEditText"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="numberDecimal"
android:background="@android:color/transparent"/>
</com.google.android.material.textfield.TextInputLayout>
<ImageView
android:id="@+id/manaIconView"
android:layout_width="56dp"
android:layout_height="56dp"
android:scaleType="center"/>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_gravity="bottom"
2020-09-04 16:17:34 +00:00
android:background="@color/content_background_offset"
2020-04-22 12:52:36 +00:00
android:layout_marginEnd="56dp"/>
</FrameLayout>
<FrameLayout
2017-10-16 09:40:24 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-09-17 11:47:02 +00:00
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
2020-04-22 12:52:36 +00:00
android:layout_marginBottom="12dp" >
<View
android:id="@+id/goldIconBackgroundView"
android:layout_width="80dp"
android:layout_height="match_parent"
android:layout_gravity="end"
android:background="@color/yellow_500"/>
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent">
<com.google.android.material.textfield.TextInputLayout
android:layout_height="match_parent"
android:layout_width="0dp"
android:layout_weight="1"
2020-09-04 16:17:34 +00:00
android:background="@drawable/layout_rounded_bg_window"
2020-04-22 12:52:36 +00:00
android:hint="@string/gold_capitalilzed"
android:paddingStart="16dp">
2020-09-17 11:23:27 +00:00
<com.google.android.material.textfield.TextInputEditText
2020-04-22 12:52:36 +00:00
android:id="@+id/goldEditText"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="numberDecimal"
android:background="@android:color/transparent"/>
</com.google.android.material.textfield.TextInputLayout>
<ImageView
android:id="@+id/goldIconView"
android:layout_width="56dp"
android:layout_height="56dp"
android:scaleType="center"/>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_gravity="bottom"
2020-09-04 16:17:34 +00:00
android:background="@color/content_background_offset"
2020-04-22 12:52:36 +00:00
android:layout_marginEnd="56dp"/>
</FrameLayout>
<FrameLayout
2017-10-16 09:40:24 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-09-17 11:47:02 +00:00
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
2020-04-22 12:52:36 +00:00
android:layout_marginBottom="12dp" >
<View
android:id="@+id/levelIconBackgroundView"
android:layout_width="80dp"
android:layout_height="match_parent"
android:layout_gravity="end"
android:background="@color/red_500"/>
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent">
<com.google.android.material.textfield.TextInputLayout
android:layout_height="match_parent"
android:layout_width="0dp"
android:layout_weight="1"
2020-09-04 16:17:34 +00:00
android:background="@drawable/layout_rounded_bg_window"
2020-04-22 12:52:36 +00:00
android:hint="@string/character_level"
android:paddingStart="16dp">
2020-09-17 11:23:27 +00:00
<com.google.android.material.textfield.TextInputEditText
2020-04-22 12:52:36 +00:00
android:id="@+id/levelEditText"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="number"
android:background="@android:color/transparent"/>
</com.google.android.material.textfield.TextInputLayout>
<ImageView
android:id="@+id/levelIconView"
android:layout_width="56dp"
android:layout_height="56dp"
android:scaleType="center"/>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_gravity="bottom"
2020-09-04 16:17:34 +00:00
android:background="@color/content_background_offset"
2020-04-22 12:52:36 +00:00
android:layout_marginEnd="56dp"/>
</FrameLayout>
<FrameLayout
2017-10-16 09:40:24 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-09-17 11:47:02 +00:00
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
2020-04-22 12:52:36 +00:00
android:layout_marginBottom="12dp" >
<View
android:id="@+id/streakIconBackgroundView"
android:layout_width="80dp"
android:layout_height="match_parent"
android:layout_gravity="end"
android:background="@color/gray_400"/>
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/streakEditTextWrapper"
android:layout_height="match_parent"
android:layout_width="0dp"
android:layout_weight="1"
2020-09-04 16:17:34 +00:00
android:background="@drawable/layout_rounded_bg_window"
2020-04-22 12:52:36 +00:00
android:hint="@string/streak_label"
android:paddingStart="16dp">
2020-09-17 11:23:27 +00:00
<com.google.android.material.textfield.TextInputEditText
2020-04-22 12:52:36 +00:00
android:id="@+id/streakEditText"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="number"
android:background="@android:color/transparent"/>
</com.google.android.material.textfield.TextInputLayout>
<ImageView
android:id="@+id/streakIconView"
android:layout_width="56dp"
android:layout_height="56dp"
android:scaleType="center"/>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_gravity="bottom"
2020-09-04 16:17:34 +00:00
android:background="@color/content_background_offset"
2020-04-22 12:52:36 +00:00
android:layout_marginEnd="56dp"/>
</FrameLayout>
2017-10-03 13:19:19 +00:00
</LinearLayout>
</ScrollView>
</LinearLayout>