updated xml files
This commit is contained in:
parent
fc2d998e91
commit
cd3b3f6dcc
10
app/src/main/res/drawable/ic_filter.xml
Normal file
10
app/src/main/res/drawable/ic_filter.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="30dp"
|
||||
android:height="30dp"
|
||||
android:viewportWidth="20"
|
||||
android:viewportHeight="20">
|
||||
<path
|
||||
android:fillColor="#000"
|
||||
android:pathData="M10,18h4v-2h-4v2zM3,6v2h18V6H3zM6,13h12v-2H6V13z"/>
|
||||
</vector>
|
||||
9
app/src/main/res/drawable/ic_more_vert.xml
Normal file
9
app/src/main/res/drawable/ic_more_vert.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#000000"
|
||||
android:pathData="M12,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM12,16c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2z"/>
|
||||
</vector>
|
||||
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#03396c"
|
||||
android:pathData="M12,12c2.21,0 4,-1.79 4,-4s-1.79,-4 -4,-4 -4,1.79 -4,4 1.79,4 4,4zM12,14c-2.67,0 -8,1.34 -8,4v2h16v-2c0,-2.66 -5.33,-4 -8,-4z"/>
|
||||
</vector>
|
||||
BIN
app/src/main/res/drawable/logo.png
Normal file
BIN
app/src/main/res/drawable/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 126 KiB |
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FFFFFF"/>
|
||||
<corners android:radius="40dp"/>
|
||||
</shape>
|
||||
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#b3cde0"/>
|
||||
<corners android:radius="22dp"/>
|
||||
</shape>
|
||||
@ -15,11 +15,120 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="@color/header"
|
||||
app:title="Gallery"
|
||||
app:titleTextColor="#011f4b"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"/>
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
<!-- Three Dots Menu Icon (leftmost) -->
|
||||
<ImageButton
|
||||
android:id="@+id/burgerMenuBtn"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/ic_more_vert"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:contentDescription="Menu"
|
||||
android:scaleType="centerInside"
|
||||
android:padding="12dp"
|
||||
app:layout_constraintTop_toTopOf="@id/toolbar"
|
||||
app:layout_constraintBottom_toBottomOf="@id/toolbar"
|
||||
app:layout_constraintStart_toStartOf="@id/toolbar"/>
|
||||
|
||||
<!-- Dropdown Menu Container -->
|
||||
<LinearLayout
|
||||
android:id="@+id/dropdownMenu"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:background="@android:color/white"
|
||||
android:elevation="4dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintTop_toBottomOf="@id/toolbar"
|
||||
app:layout_constraintStart_toStartOf="parent">
|
||||
|
||||
<!-- Logout Option -->
|
||||
<TextView
|
||||
android:id="@+id/menuLogout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:text="Logout"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="16sp"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"/>
|
||||
|
||||
<!-- New Post Option -->
|
||||
<TextView
|
||||
android:id="@+id/menuNewPost"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:text="New Post"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="16sp"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Login Button -->
|
||||
<Button
|
||||
android:id="@+id/Loginbtn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/button_background"
|
||||
android:text="Log in"
|
||||
android:textColor="@color/white"
|
||||
app:layout_constraintTop_toTopOf="@id/toolbar"
|
||||
app:layout_constraintBottom_toBottomOf="@id/toolbar"
|
||||
app:layout_constraintStart_toEndOf="@id/burgerMenuBtn"
|
||||
android:layout_marginStart="8dp"/>
|
||||
|
||||
<!-- Register Button -->
|
||||
<Button
|
||||
android:id="@+id/Registerbtn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/button_background"
|
||||
android:text="Register"
|
||||
android:textColor="@color/white"
|
||||
app:layout_constraintTop_toTopOf="@id/toolbar"
|
||||
app:layout_constraintBottom_toBottomOf="@id/toolbar"
|
||||
app:layout_constraintStart_toEndOf="@id/Loginbtn"
|
||||
android:layout_marginStart="8dp"/>
|
||||
|
||||
<!-- Filter Button -->
|
||||
<ImageButton
|
||||
android:id="@+id/filterBtnToolbar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/ic_filter"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:contentDescription="Filter"
|
||||
android:scaleType="centerInside"
|
||||
android:padding="12dp"
|
||||
app:layout_constraintTop_toTopOf="@id/toolbar"
|
||||
app:layout_constraintBottom_toBottomOf="@id/toolbar"
|
||||
app:layout_constraintEnd_toStartOf="@id/logoIcon"
|
||||
android:layout_marginEnd="8dp"/>
|
||||
|
||||
<!-- App Logo Icon (rightmost) -->
|
||||
<ImageView
|
||||
android:id="@+id/logoIcon"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:src="@drawable/logo"
|
||||
android:contentDescription="Logo"
|
||||
app:layout_constraintTop_toTopOf="@id/toolbar"
|
||||
app:layout_constraintBottom_toBottomOf="@id/toolbar"
|
||||
app:layout_constraintEnd_toEndOf="@id/toolbar"
|
||||
android:layout_marginEnd="16dp"/>
|
||||
|
||||
<!-- RecyclerView Feed -->
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
@ -33,27 +142,7 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:contentDescription="Enter How Much Cookies You Want"/>
|
||||
|
||||
<!-- Login Button -->
|
||||
<Button
|
||||
android:id="@+id/Loginbtn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Log in"
|
||||
android:layout_margin="16dp"
|
||||
app:layout_constraintTop_toTopOf="@id/toolbar"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
|
||||
<!-- Register Button -->
|
||||
<Button
|
||||
android:id="@+id/Registerbtn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Register"
|
||||
android:layout_marginStart="16dp"
|
||||
app:layout_constraintTop_toBottomOf="@id/Loginbtn"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
|
||||
<!-- Logout Button -->
|
||||
<!-- Logout Button (hidden - now in dropdown) -->
|
||||
<Button
|
||||
android:id="@+id/btnLogout"
|
||||
android:layout_width="wrap_content"
|
||||
@ -74,4 +163,5 @@
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@ -4,128 +4,209 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/bgColor"
|
||||
tools:context=".NewPostActivity">
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
android:fillViewport="true">
|
||||
|
||||
<LinearLayout
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/headerTV"
|
||||
android:layout_width="wrap_content"
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Create New Post"
|
||||
android:textSize="24sp"
|
||||
android:layout_marginBottom="24dp"/>
|
||||
android:orientation="vertical"
|
||||
android:padding="32dp"
|
||||
android:background="@drawable/card_background"
|
||||
android:elevation="8dp"
|
||||
android:layout_marginTop="24dp"
|
||||
android:layout_marginBottom="24dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintWidth_percent="0.85"
|
||||
app:layout_constraintVertical_bias="0.5">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/descriptionLabelTV"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Description"
|
||||
android:textSize="16sp"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/descriptionET"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="120dp"
|
||||
android:hint="Enter post description"
|
||||
android:inputType="textMultiLine"
|
||||
android:gravity="top"
|
||||
android:layout_marginBottom="16dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mediaTypeLabelTV"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Media Type"
|
||||
android:textSize="16sp"/>
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/mediaTypeRG"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginBottom="16dp">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/photoRB"
|
||||
android:layout_width="wrap_content"
|
||||
<!-- Header -->
|
||||
<TextView
|
||||
android:id="@+id/headerTV"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Photo"
|
||||
android:checked="true"/>
|
||||
android:text="Create New Post"
|
||||
android:textSize="32sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#011f4b"
|
||||
android:gravity="center"
|
||||
android:layout_marginBottom="40dp"/>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/videoRB"
|
||||
android:layout_width="wrap_content"
|
||||
<!-- Description Label -->
|
||||
<TextView
|
||||
android:id="@+id/descriptionLabelTV"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Video"
|
||||
android:layout_marginStart="24dp"/>
|
||||
</RadioGroup>
|
||||
android:text="Description"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#03396c"
|
||||
android:layout_marginBottom="8dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/categoryLabelTV"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Category"
|
||||
android:textSize="16sp"/>
|
||||
<!-- Description Input -->
|
||||
<EditText
|
||||
android:id="@+id/descriptionET"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="120dp"
|
||||
android:hint="Enter post description"
|
||||
android:textColorHint="#6497b1"
|
||||
android:textColor="#011f4b"
|
||||
android:background="@drawable/edit_text_background"
|
||||
android:padding="16dp"
|
||||
android:inputType="textMultiLine"
|
||||
android:gravity="top|start"
|
||||
android:layout_marginBottom="24dp"/>
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/categorySpinner"
|
||||
android:layout_width="370dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginBottom="16dp" />
|
||||
<!-- Media Type Label -->
|
||||
<TextView
|
||||
android:id="@+id/mediaTypeLabelTV"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Media Type"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#03396c"
|
||||
android:layout_marginBottom="8dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/selectMediaLabelTV"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Select Media"
|
||||
android:textSize="16sp"/>
|
||||
<!-- Media Type Radio Group -->
|
||||
<RadioGroup
|
||||
android:id="@+id/mediaTypeRG"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginBottom="24dp">
|
||||
|
||||
<Button
|
||||
android:id="@+id/selectMediaBtn"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Choose File"
|
||||
android:layout_marginBottom="16dp"/>
|
||||
<RadioButton
|
||||
android:id="@+id/photoRB"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Photo"
|
||||
android:textColor="#03396c"
|
||||
android:buttonTint="#005b96"
|
||||
android:checked="true"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/selectedFileTV"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="No file selected"
|
||||
android:textSize="14sp"
|
||||
android:layout_marginBottom="16dp"/>
|
||||
<RadioButton
|
||||
android:id="@+id/videoRB"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Video"
|
||||
android:textColor="#03396c"
|
||||
android:buttonTint="#005b96"
|
||||
android:layout_marginStart="24dp"/>
|
||||
</RadioGroup>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/previewIV"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="200dp"
|
||||
android:layout_gravity="center"
|
||||
android:visibility="gone"
|
||||
android:scaleType="centerCrop"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:contentDescription="Preview"/>
|
||||
<!-- Category Label -->
|
||||
<TextView
|
||||
android:id="@+id/categoryLabelTV"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Category"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#03396c"
|
||||
android:layout_marginBottom="8dp"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/submitBtn"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Post"
|
||||
android:layout_marginBottom="8dp"/>
|
||||
<!-- Category Spinner -->
|
||||
<Spinner
|
||||
android:id="@+id/categorySpinner"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp"
|
||||
android:background="@drawable/edit_text_background"
|
||||
android:padding="16dp"
|
||||
android:layout_marginBottom="24dp"
|
||||
android:spinnerMode="dropdown"
|
||||
android:popupBackground="#FFFFFF"/>
|
||||
|
||||
<!-- Select Media Label -->
|
||||
<TextView
|
||||
android:id="@+id/selectMediaLabelTV"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Select Media"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#03396c"
|
||||
android:layout_marginBottom="8dp"/>
|
||||
|
||||
<!-- Choose File Button -->
|
||||
<Button
|
||||
android:id="@+id/selectMediaBtn"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp"
|
||||
android:text="Choose File"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="@color/white"
|
||||
android:background="@drawable/button_background"
|
||||
android:elevation="4dp"
|
||||
android:stateListAnimator="@null"
|
||||
android:layout_marginBottom="12dp"/>
|
||||
|
||||
<!-- Selected File Text -->
|
||||
<TextView
|
||||
android:id="@+id/selectedFileTV"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="No file selected"
|
||||
android:textSize="14sp"
|
||||
android:textColor="#6497b1"
|
||||
android:gravity="center"
|
||||
android:layout_marginBottom="16dp"/>
|
||||
|
||||
<!-- Preview Image -->
|
||||
<ImageView
|
||||
android:id="@+id/previewIV"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="220dp"
|
||||
android:layout_gravity="center"
|
||||
android:visibility="gone"
|
||||
android:scaleType="centerCrop"
|
||||
android:background="@drawable/edit_text_background"
|
||||
android:layout_marginBottom="24dp"
|
||||
android:contentDescription="Preview"/>
|
||||
|
||||
<!-- Submit Button -->
|
||||
<Button
|
||||
android:id="@+id/submitBtn"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp"
|
||||
android:text="Post"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="@color/white"
|
||||
android:background="@drawable/button_background"
|
||||
android:elevation="4dp"
|
||||
android:stateListAnimator="@null"
|
||||
android:layout_marginBottom="12dp"/>
|
||||
|
||||
<!-- Cancel Button -->
|
||||
<Button
|
||||
android:id="@+id/cancelBtn"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp"
|
||||
android:text="Cancel"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="@color/white"
|
||||
android:background="@drawable/button_background"
|
||||
android:stateListAnimator="@null"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/cancelBtn"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Cancel"/>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@ -3,6 +3,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/bgColor"
|
||||
android:layout_marginBottom="24dp">
|
||||
|
||||
<LinearLayout
|
||||
@ -25,15 +26,6 @@
|
||||
android:layout_marginBottom="16dp"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/postUserIcon"
|
||||
android:layout_width="45dp"
|
||||
android:layout_height="45dp"
|
||||
android:src="@drawable/ic_profile"
|
||||
android:background="@drawable/profile_circle_background_small"
|
||||
android:padding="10dp"
|
||||
android:layout_marginEnd="12dp"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@ -1,31 +0,0 @@
|
||||
<?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="200dp"
|
||||
android:background="@color/header"
|
||||
android:orientation="vertical"
|
||||
android:padding="24dp"
|
||||
android:gravity="bottom">
|
||||
|
||||
<!-- Profile Icon -->
|
||||
<ImageView
|
||||
android:id="@+id/profileIcon"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:src="@drawable/ic_profile"
|
||||
android:background="@drawable/profile_circle_background"
|
||||
android:padding="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:contentDescription="Profile"/>
|
||||
|
||||
<!-- User Name -->
|
||||
<TextView
|
||||
android:id="@+id/userNameTV"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="User Name"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="20sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:id="@+id/nav_new_post"
|
||||
android:title="@string/new_post"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/nav_logout"
|
||||
android:title="@string/logout"/>
|
||||
|
||||
</menu>
|
||||
@ -1,6 +1,6 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<!-- Base application theme. -->
|
||||
<style name="Base.Theme.Gallery" parent="Theme.Material3.DayNight.NoActionBar">
|
||||
<style name="Base.Theme.Gallery" parent="Theme.AppCompat.Light.NoActionBar">
|
||||
<!-- Customize your dark theme here. -->
|
||||
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
|
||||
</style>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<!-- Base application theme. -->
|
||||
<style name="Base.Theme.Gallery" parent="Theme.Material3.DayNight.NoActionBar">
|
||||
<style name="Base.Theme.Gallery" parent="Theme.AppCompat.Light.NoActionBar">
|
||||
<!-- Customize your light theme here. -->
|
||||
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user