Profile UI design xml: layout
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
tools:context=".view.fragment.ProfileFragment">
<LinearLayout
android:id="@+id/linear_top_id"
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:orientation="horizontal"
android:weightSum="3">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/back_press_id"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_weight="0.3"
android:background="?selectableItemBackgroundBorderless"
android:src="@drawable/ic_baseline_arrow_back_24">
</androidx.appcompat.widget.AppCompatImageView>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="2"
android:gravity="center_vertical"
android:text="Profile"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/black"
android:textStyle="bold">
</androidx.appcompat.widget.AppCompatTextView>
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/logout_id"
android:layout_weight="0.3"
android:layout_width="0dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:layout_marginLeft="15dp"
android:src="@drawable/ic_baseline_logout_24"
android:layout_height="25dp">
</androidx.appcompat.widget.AppCompatImageView>
</LinearLayout>
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/linear_top_id"
android:layout_marginTop="5dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="5dp"
android:orientation="vertical">
<!--name section-->
<LinearLayout
android:id="@+id/profile_id"
android:layout_width="match_parent"
android:layout_height="150dp">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/profile_image_id"
android:layout_width="126dp"
android:layout_height="94dp"
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:src="@drawable/cure_profile"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
</de.hdodenhof.circleimageview.CircleImageView>
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/appCompatImageView3"
android:layout_width="20dp"
android:layout_height="15dp"
android:layout_marginRight="5dp"
android:src="@drawable/ic_image_black_24dp"
app:layout_constraintBottom_toBottomOf="@+id/profile_image_id"
app:layout_constraintEnd_toEndOf="@+id/profile_image_id"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="@+id/profile_image_id"
app:layout_constraintTop_toTopOf="@+id/profile_image_id">
</androidx.appcompat.widget.AppCompatImageView>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/user_name_txt_id"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:text="Md Ruhul Amin"
android:textAllCaps="false"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
android:textColor="@color/black"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/profile_image_id">
</androidx.appcompat.widget.AppCompatTextView>
<com.google.android.material.button.MaterialButton
android:layout_width="175dp"
android:layout_height="52dp"
android:layout_margin="20dp"
android:layout_marginStart="24dp"
android:layout_marginLeft="24dp"
android:backgroundTint="@color/greay_light"
android:text="Order Status"
android:textColor="@color/black"
app:layout_constraintBottom_toTopOf="@+id/user_name_txt_id"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/profile_image_id"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.529">
</com.google.android.material.button.MaterialButton>
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
<!-- email section-->
<LinearLayout
android:id="@+id/mail_liner_id"
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:background="?attr/selectableItemBackground"
android:gravity="center_vertical"
android:weightSum="3">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/email_txt_id"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="2.5"
android:drawableLeft="@drawable/ic_baseline_mail_outline_24"
android:drawablePadding="10dp"
android:gravity="center_vertical"
android:text="ruhulamin122017@gmail.com"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/black">
</androidx.appcompat.widget.AppCompatTextView>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5"
android:drawableRight="@drawable/ic_baseline_arrow_forward_ios_24"
android:drawablePadding="10dp"
android:gravity="end"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/black">
</androidx.appcompat.widget.AppCompatTextView>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_below="@id/mail_liner_id"
android:layout_marginLeft="10dp"
android:layout_marginTop="2dp"
android:layout_marginRight="10dp"
android:background="#CACACA">
</View>
<!-- phone section-->
<LinearLayout
android:id="@+id/phone_line_id"
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:background="?attr/selectableItemBackground"
android:gravity="center_vertical"
android:weightSum="3">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/phone_txt_id"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="2.5"
android:drawableLeft="@drawable/ic_baseline_phone_24"
android:drawablePadding="10dp"
android:gravity="center_vertical"
android:text="01767051482"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/black">
</androidx.appcompat.widget.AppCompatTextView>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="0.5"
android:drawableRight="@drawable/ic_baseline_arrow_forward_ios_24"
android:drawablePadding="10dp"
android:gravity="center"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/black">
</androidx.appcompat.widget.AppCompatTextView>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_below="@id/phone_line_id"
android:layout_marginLeft="10dp"
android:layout_marginTop="2dp"
android:layout_marginRight="10dp"
android:background="#CACACA">
</View>
<!-- addrash section-->
<LinearLayout
android:id="@+id/addrash_line_id"
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:background="?attr/selectableItemBackground"
android:gravity="center_vertical"
android:weightSum="3">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/addrash_txt_id"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="2.5"
android:drawableLeft="@drawable/ic_baseline_location_on_24"
android:drawablePadding="10dp"
android:gravity="center_vertical"
android:text="Jessor Sadar "
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/black">
</androidx.appcompat.widget.AppCompatTextView>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="0.5"
android:drawableRight="@drawable/ic_baseline_arrow_forward_ios_24"
android:drawablePadding="10dp"
android:gravity="center"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/black">
</androidx.appcompat.widget.AppCompatTextView>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_below="@id/addrash_line_id"
android:layout_marginLeft="10dp"
android:layout_marginTop="2dp"
android:layout_marginRight="10dp"
android:background="#CACACA">
</View>
<!-- order complete section-->
<LinearLayout
android:id="@+id/order_line_complete_id"
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:background="?attr/selectableItemBackground"
android:gravity="center_vertical"
android:weightSum="3">
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="2.5"
android:drawableLeft="@drawable/ic_baseline_shopping_bag_24"
android:drawablePadding="10dp"
android:gravity="center_vertical"
android:text="Order complete List"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/black">
</androidx.appcompat.widget.AppCompatTextView>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="0.5"
android:drawableRight="@drawable/ic_baseline_arrow_forward_ios_24"
android:drawablePadding="10dp"
android:gravity="center"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/black">
</androidx.appcompat.widget.AppCompatTextView>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="2dp"
android:layout_marginRight="10dp"
android:background="#CACACA">
</View>
<!-- order list section-->
<LinearLayout
android:id="@+id/order_list_liner_id"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="15dp"
android:background="?attr/selectableItemBackground"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:gravity="center_vertical"
android:weightSum="3">
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="2.5"
android:drawableLeft="@drawable/ic_baseline_shopping_cart_24"
android:drawablePadding="10dp"
android:gravity="center_vertical"
android:text="order List"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/black">
</androidx.appcompat.widget.AppCompatTextView>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="0.5"
android:drawableRight="@drawable/ic_baseline_arrow_forward_ios_24"
android:drawablePadding="10dp"
android:gravity="center"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/black">
</androidx.appcompat.widget.AppCompatTextView>
</LinearLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="2dp"
android:layout_marginRight="10dp"
android:background="#CACACA">
</View>
<!-- settings section-->
<LinearLayout
android:id="@+id/settings_line_id"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="15dp"
android:background="?attr/selectableItemBackground"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:gravity="center_vertical"
android:weightSum="3">
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="2.5"
android:drawableLeft="@drawable/ic_baseline_settings_24"
android:drawablePadding="10dp"
android:gravity="center_vertical"
android:text="Settings"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/black">
</androidx.appcompat.widget.AppCompatTextView>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="0.5"
android:drawableRight="@drawable/ic_baseline_arrow_forward_ios_24"
android:drawablePadding="10dp"
android:gravity="center"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/black">
</androidx.appcompat.widget.AppCompatTextView>
</LinearLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="2dp"
android:layout_marginRight="10dp"
android:background="#CACACA">
</View>
<!-- language section-->
<LinearLayout
android:id="@+id/language_lene_id"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="15dp"
android:background="?attr/selectableItemBackground"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:gravity="center_vertical"
android:weightSum="3">
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="2.5"
android:drawableLeft="@drawable/ic_baseline_language_24"
android:drawablePadding="10dp"
android:gravity="center_vertical"
android:text="@string/language"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/black">
</androidx.appcompat.widget.AppCompatTextView>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="0.5"
android:drawableRight="@drawable/ic_baseline_arrow_forward_ios_24"
android:drawablePadding="10dp"
android:gravity="center"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/black">
</androidx.appcompat.widget.AppCompatTextView>
</LinearLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="2dp"
android:layout_marginRight="10dp"
android:background="#CACACA">
</View>
<!-- themes section-->
<LinearLayout
android:id="@+id/themes_line_id"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="15dp"
android:background="?attr/selectableItemBackground"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:gravity="center_vertical"
android:weightSum="3">
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="2.5"
android:drawableLeft="@drawable/ic_baseline_style_24"
android:drawablePadding="10dp"
android:gravity="center_vertical"
android:text="Themes"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/black">
</androidx.appcompat.widget.AppCompatTextView>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="0.5"
android:drawableRight="@drawable/ic_baseline_arrow_forward_ios_24"
android:drawablePadding="10dp"
android:gravity="center"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/black">
</androidx.appcompat.widget.AppCompatTextView>
</LinearLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="2dp"
android:layout_marginRight="10dp"
android:background="#CACACA">
</View>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</RelativeLayout>
Comments
Post a Comment