0% found this document useful (0 votes)
35 views5 pages

Temp

The document describes a profile fragment layout for an Android app. It contains views for displaying a circular profile image, the user's name and email, and buttons for settings, editing profile, about, and contact. There are nested constraint and linear layouts to position the views.

Uploaded by

vokafe6614
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views5 pages

Temp

The document describes a profile fragment layout for an Android app. It contains views for displaying a circular profile image, the user's name and email, and buttons for settings, editing profile, about, and contact. There are nested constraint and linear layouts to position the views.

Uploaded by

vokafe6614
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

<?xml version="1.0" encoding="utf-8"?

>
<androidx.constraintlayout.widget.ConstraintLayout
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:background="#8222C93E"
tools:context=".Fragment.ProfileFragment">

<View
android:id="@+id/profileView"
android:layout_width="140dp"
android:layout_height="140dp"
android:layout_marginTop="40dp"
android:background="@drawable/placeholder"
android:elevation="20dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.48"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout
android:id="@+id/profileLL"
android:layout_width="300dp"
android:layout_height="200dp"
android:layout_marginTop="88dp"
android:background="@drawable/mainactivityllrounded"
android:elevation="10dp"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/profileView">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">

<TextView
android:id="@+id/ignoreUsername"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/merriweathersans_bold"
android:text="Name : "
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.056"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.348" />

<TextView
android:id="@+id/username"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/merriweathersans_semibold"
android:text="Sarvesh Kshatriya"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.227"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/ignoreEmail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="70dp"
android:fontFamily="@font/merriweathersans_bold"
android:text="Email : "
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.055"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.481" />

<TextView
android:id="@+id/email"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/merriweathersans_semibold"
android:text="[email protected]"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.588"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/ignoreEmail"
app:layout_constraintVertical_bias="0.0" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="330dp"
android:layout_marginBottom="50dp"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/profileLL">

<View
android:id="@+id/settings"
android:layout_width="340dp"
android:layout_height="90dp"
android:layout_gravity="center"
android:layout_marginTop="40dp"
android:backgroundTint="#1fb838"
android:background="@drawable/profile2_practice_bkg_left"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<View
android:id="@+id/edit"
android:layout_width="340dp"
android:layout_height="90dp"
android:layout_gravity="center"
android:layout_marginTop="30dp"
android:backgroundTint="#1fb838"
android:background="@drawable/profile2_practice_bkg_left"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<View
android:id="@+id/about"
android:layout_width="340dp"
android:layout_height="90dp"
android:layout_gravity="center"
android:layout_marginTop="30dp"
android:backgroundTint="#1fb838"
android:background="@drawable/profile2_practice_bkg_left"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<View
android:id="@+id/contact"
android:layout_width="340dp"
android:layout_height="90dp"
android:layout_gravity="center"
android:layout_marginTop="30dp"
android:backgroundTint="#1fb838"
android:background="@drawable/profile2_practice_bkg_left"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</LinearLayout>

</androidx.constraintlayout.widget.ConstraintLayout>

<?xml version="1.0" encoding="utf-8"?>


<androidx.constraintlayout.widget.ConstraintLayout
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:background="@color/teal_700"
tools:context=".Fragment.ProfileFragment">

<View
android:id="@+id/view2"
android:layout_width="343dp"
android:layout_height="89dp"
android:layout_marginTop="24dp"
android:layout_marginEnd="4dp"
android:background="@drawable/profile2_practice_bkg"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/username"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginEnd="2dp"
android:paddingStart="10dp"
android:paddingTop="3dp"
android:paddingEnd="10dp"
android:paddingBottom="3dp"
android:text="Kartik Kanade"
android:fontFamily="@font/merriweathersans_bold"
android:textColor="#292727"
android:textSize="22sp"
app:layout_constraintEnd_toStartOf="@+id/profilephoto"
app:layout_constraintTop_toTopOf="@+id/view2" />

<TextView
android:id="@+id/email"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="10dp"
android:paddingTop="3dp"
android:paddingEnd="10dp"
android:paddingBottom="3dp"
android:text="working in wipro since 2022"
app:layout_constraintEnd_toEndOf="@+id/username"
app:layout_constraintTop_toBottomOf="@+id/username" />

<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/profilephoto"
android:layout_width="95dp"
android:layout_height="95dp"
android:layout_marginTop="-16dp"
android:layout_marginEnd="16dp"
android:src="@drawable/profilephoto"
app:civ_border_color="@color/white"
app:civ_border_overlay="true"
app:civ_border_width="4dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/view2" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="200dp"
android:layout_marginBottom="200dp"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0">

<View
android:id="@+id/settings"
android:layout_width="343dp"
android:layout_height="89dp"
android:layout_marginTop="50dp"
android:layout_marginEnd="4dp"
android:background="@drawable/profile2_practice_bkg_left"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">
</View>

<View
android:id="@+id/edit"
android:layout_width="343dp"
android:layout_height="89dp"
android:layout_marginTop="30dp"
android:layout_marginEnd="4dp"
android:layout_gravity="right"
android:background="@drawable/profile2_practice_bkg"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<View
android:id="@+id/about"
android:layout_width="343dp"
android:layout_height="89dp"
android:layout_marginTop="30dp"
android:layout_marginEnd="4dp"
android:background="@drawable/profile2_practice_bkg_left"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"/>

<View
android:id="@+id/contact"
android:layout_width="343dp"
android:layout_height="89dp"
android:layout_marginTop="30dp"
android:layout_marginEnd="4dp"
android:layout_gravity="right"
android:background="@drawable/profile2_practice_bkg"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</LinearLayout>

</androidx.constraintlayout.widget.ConstraintLayout>

You might also like