Modified User details
This commit is contained in:
parent
e2d4ef11bd
commit
6fd3f36e31
4 changed files with 32 additions and 72 deletions
|
@ -88,4 +88,9 @@
|
||||||
<item name="android:letterSpacing">0.0125</item>
|
<item name="android:letterSpacing">0.0125</item>
|
||||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="circleImageView" parent="">
|
||||||
|
<item name="cornerFamily">rounded</item>
|
||||||
|
<item name="cornerSize">5%</item>
|
||||||
|
</style>
|
||||||
</resources>
|
</resources>
|
|
@ -55,7 +55,7 @@ class UserInfoActivity : AbsBaseActivity() {
|
||||||
pickNewPhoto()
|
pickNewPhoto()
|
||||||
}
|
}
|
||||||
|
|
||||||
bannerSelect.setOnClickListener {
|
bannerImage.setOnClickListener {
|
||||||
selectBannerImage()
|
selectBannerImage()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,95 +25,50 @@
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior">
|
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior">
|
||||||
|
|
||||||
<com.google.android.material.card.MaterialCardView
|
<com.google.android.material.imageview.ShapeableImageView
|
||||||
android:id="@+id/imageContainer"
|
android:id="@+id/bannerImage"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="0dp"
|
||||||
android:layout_margin="16dp"
|
android:layout_margin="16dp"
|
||||||
app:cardCornerRadius="12dp"
|
android:scaleType="centerCrop"
|
||||||
app:cardElevation="8dp"
|
app:layout_constraintDimensionRatio="21:10"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent">
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:shapeAppearanceOverlay="@style/circleImageView"
|
||||||
<FrameLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent">
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageView
|
|
||||||
android:id="@+id/bannerImage"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="156dp"
|
|
||||||
android:scaleType="centerCrop"
|
|
||||||
app:srcCompat="@drawable/material_design_default" />
|
app:srcCompat="@drawable/material_design_default" />
|
||||||
|
|
||||||
<View
|
|
||||||
android:id="@+id/bannerSelect"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="156dp"
|
|
||||||
android:background="@color/twenty_percent_black_overlay" />
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="end"
|
|
||||||
android:background="?roundSelector"
|
|
||||||
android:padding="16dp"
|
|
||||||
app:srcCompat="@drawable/ic_add_photo" />
|
|
||||||
|
|
||||||
</FrameLayout>
|
|
||||||
</com.google.android.material.card.MaterialCardView>
|
|
||||||
|
|
||||||
<FrameLayout
|
|
||||||
android:id="@+id/userImageContainer"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="bottom|center_horizontal"
|
|
||||||
android:layout_marginStart="16dp"
|
|
||||||
android:elevation="8dp"
|
|
||||||
android:transitionName="@string/transition_user_image"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@id/imageContainer"
|
|
||||||
app:layout_constraintEnd_toEndOf="@id/imageContainer"
|
|
||||||
app:layout_constraintStart_toStartOf="@+id/imageContainer"
|
|
||||||
app:layout_constraintTop_toBottomOf="@id/imageContainer">
|
|
||||||
|
|
||||||
<code.name.monkey.retromusic.views.RetroShapeableImageView
|
<code.name.monkey.retromusic.views.RetroShapeableImageView
|
||||||
android:id="@+id/userImage"
|
android:id="@+id/userImage"
|
||||||
android:layout_width="72dp"
|
android:layout_width="72dp"
|
||||||
android:layout_height="72dp"
|
android:layout_height="72dp"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginStart="16dp"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
|
android:transitionName="@string/transition_user_image"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/bannerImage"
|
||||||
app:retroCornerSize="36dp"
|
app:retroCornerSize="36dp"
|
||||||
app:srcCompat="@drawable/ic_person_flat" />
|
app:srcCompat="@drawable/ic_person_flat" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_margin="16dp"
|
|
||||||
android:gravity="center"
|
|
||||||
android:padding="12dp"
|
|
||||||
android:src="@drawable/ic_add_photo"
|
|
||||||
app:tint="?attr/colorControlNormal" />
|
|
||||||
</FrameLayout>
|
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
android:id="@+id/nameContainer"
|
android:id="@+id/nameContainer"
|
||||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="16dp"
|
android:layout_marginStart="16dp"
|
||||||
android:layout_marginTop="16dp"
|
|
||||||
android:layout_marginEnd="16dp"
|
android:layout_marginEnd="16dp"
|
||||||
app:hintAnimationEnabled="true"
|
app:hintAnimationEnabled="true"
|
||||||
app:hintEnabled="true"
|
app:hintEnabled="true"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/userImage"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toEndOf="@id/userImage"
|
||||||
app:layout_constraintTop_toBottomOf="@id/userImageContainer">
|
app:layout_constraintTop_toTopOf="@id/userImage">
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
android:id="@+id/name"
|
android:id="@+id/name"
|
||||||
|
|
|
@ -91,7 +91,7 @@
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
app:layout_collapseMode="parallax"
|
app:layout_collapseMode="parallax"
|
||||||
tools:ignore="ContentDescription"
|
tools:ignore="ContentDescription"
|
||||||
tools:srcCompat="@tools:sample/backgrounds/scenic[9]" />
|
tools:srcCompat="@tools:sample/backgrounds/scenic" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
Loading…
Reference in a new issue