PlayerAndroid/app/src/main/res/layout/fragment_user_info.xml

103 lines
4.6 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
2018-08-30 09:29:30 +00:00
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-09-09 19:44:46 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2019-03-29 14:17:41 +00:00
xmlns:tools="http://schemas.android.com/tools"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2018-09-09 19:44:46 +00:00
android:layout_height="match_parent"
2019-12-26 14:45:02 +00:00
android:background="?attr/colorSurface"
2021-09-16 12:59:31 +00:00
android:fitsSystemWindows="true"
android:orientation="vertical">
2018-07-27 13:07:33 +00:00
2018-09-09 19:44:46 +00:00
<com.google.android.material.appbar.AppBarLayout
2018-12-04 15:34:26 +00:00
android:id="@+id/appBarLayout"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2018-09-09 19:44:46 +00:00
android:layout_height="wrap_content"
android:fitsSystemWindows="true"
app:liftOnScroll="true">
2018-09-09 19:44:46 +00:00
2019-09-29 08:37:57 +00:00
<com.google.android.material.appbar.MaterialToolbar
2018-09-09 19:44:46 +00:00
android:id="@+id/toolbar"
2018-12-04 15:34:26 +00:00
style="@style/Toolbar"
android:layout_height="wrap_content"
2020-07-19 21:00:30 +00:00
app:navigationIcon="@drawable/ic_keyboard_backspace_black"
2020-02-25 06:44:46 +00:00
app:title="@string/profile"
app:titleTextAppearance="@style/ToolbarTextAppearanceNormal" />
2018-09-09 19:44:46 +00:00
</com.google.android.material.appbar.AppBarLayout>
<code.name.monkey.retromusic.views.insets.InsetsConstraintLayout
2018-09-09 19:44:46 +00:00
android:layout_width="match_parent"
2020-10-04 13:31:40 +00:00
android:layout_height="match_parent"
2018-09-09 19:44:46 +00:00
android:orientation="vertical"
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior">
2018-09-09 19:44:46 +00:00
2020-10-04 13:31:40 +00:00
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/bannerImage"
android:layout_width="0dp"
android:layout_height="0dp"
2021-11-12 05:37:02 +00:00
android:layout_margin="16dp"
2020-10-04 13:31:40 +00:00
android:scaleType="centerCrop"
app:layout_constraintDimensionRatio="21:10"
2020-05-20 22:53:09 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2020-10-04 13:31:40 +00:00
app:layout_constraintTop_toTopOf="parent"
2021-11-12 05:37:02 +00:00
android:transitionName="banner_image"
2020-10-04 13:31:40 +00:00
app:shapeAppearanceOverlay="@style/circleImageView"
app:srcCompat="@drawable/material_design_default" />
2020-10-04 13:31:40 +00:00
<code.name.monkey.retromusic.views.RetroShapeableImageView
android:id="@+id/userImage"
android:layout_width="72dp"
android:layout_height="72dp"
android:layout_gravity="center"
2020-05-20 22:53:09 +00:00
android:layout_marginStart="16dp"
2020-10-04 13:31:40 +00:00
android:layout_marginTop="16dp"
android:scaleType="centerCrop"
android:transitionName="user_image"
2020-10-04 13:31:40 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/bannerImage"
app:retroCornerSize="36dp"
app:srcCompat="@drawable/ic_person_flat" />
2020-05-20 22:53:09 +00:00
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/nameContainer"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
2020-10-04 13:31:40 +00:00
android:layout_width="0dp"
2020-05-20 22:53:09 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
app:hintAnimationEnabled="true"
app:hintEnabled="true"
2020-10-04 13:31:40 +00:00
app:layout_constraintBottom_toBottomOf="@+id/userImage"
2020-05-20 22:53:09 +00:00
app:layout_constraintEnd_toEndOf="parent"
2020-10-04 13:31:40 +00:00
app:layout_constraintStart_toEndOf="@id/userImage"
app:layout_constraintTop_toTopOf="@id/userImage">
2020-05-20 22:53:09 +00:00
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/name"
2018-09-09 19:44:46 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-05-20 22:53:09 +00:00
android:autofillHints="name"
android:hint="@string/my_name"
android:importantForAutofill="yes"
android:inputType="textPersonName|textCapWords|text"
android:textAppearance="@style/TextViewSubtitle1"
tools:text="@tools:sample/full_names" />
</com.google.android.material.textfield.TextInputLayout>
</code.name.monkey.retromusic.views.insets.InsetsConstraintLayout>
2020-05-20 22:53:09 +00:00
2018-09-09 19:44:46 +00:00
2019-04-05 10:45:09 +00:00
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
2018-09-09 19:44:46 +00:00
android:id="@+id/next"
2019-04-05 10:45:09 +00:00
android:layout_width="match_parent"
2018-09-09 19:44:46 +00:00
android:layout_height="wrap_content"
2019-04-05 10:45:09 +00:00
android:layout_gravity="bottom"
android:layout_marginHorizontal="16dp"
android:layout_marginBottom="70dp"
2021-10-23 11:55:48 +00:00
android:fitsSystemWindows="false"
2019-04-05 10:45:09 +00:00
android:gravity="center"
android:text="@string/save"
2020-07-19 21:00:30 +00:00
app:icon="@drawable/ic_save"
2019-05-11 16:01:15 +00:00
app:iconGravity="textStart" />
2018-09-09 19:44:46 +00:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>