Skip to content

Instantly share code, notes, and snippets.

@Mohsen-Khodabakhshi
Created April 20, 2024 21:02
Show Gist options
  • Save Mohsen-Khodabakhshi/b6f8f2ac2c398029ca11f5960193d5b5 to your computer and use it in GitHub Desktop.
Save Mohsen-Khodabakhshi/b6f8f2ac2c398029ca11f5960193d5b5 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp">
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:src="@tools:sample/avatars"
android:scaleType="centerCrop"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="16dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Username"
android:textSize="24sp"
android:textStyle="bold"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="8dp"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
android:textSize="16sp"
android:gravity="center"
android:layout_marginBottom="24dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Edit Profile"
android:layout_marginEnd="16dp"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Logout"/>
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment