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_width="0dp"
|
||||||
android:layout_height="?attr/actionBarSize"
|
android:layout_height="?attr/actionBarSize"
|
||||||
android:background="@color/header"
|
android:background="@color/header"
|
||||||
app:title="Gallery"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:titleTextColor="#011f4b"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="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 -->
|
<!-- RecyclerView Feed -->
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
@ -33,27 +142,7 @@
|
|||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
android:contentDescription="Enter How Much Cookies You Want"/>
|
android:contentDescription="Enter How Much Cookies You Want"/>
|
||||||
|
|
||||||
<!-- Login Button -->
|
<!-- Logout Button (hidden - now in dropdown) -->
|
||||||
<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 -->
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btnLogout"
|
android:id="@+id/btnLogout"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -74,4 +163,5 @@
|
|||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="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"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/bgColor"
|
||||||
tools:context=".NewPostActivity">
|
tools:context=".NewPostActivity">
|
||||||
|
|
||||||
<ScrollView
|
<ScrollView
|
||||||
android:layout_width="match_parent"
|
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_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content">
|
||||||
android:orientation="vertical"
|
|
||||||
android:padding="16dp">
|
|
||||||
|
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:id="@+id/headerTV"
|
android:layout_width="0dp"
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Create New Post"
|
android:orientation="vertical"
|
||||||
android:textSize="24sp"
|
android:padding="32dp"
|
||||||
android:layout_marginBottom="24dp"/>
|
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
|
<!-- Header -->
|
||||||
android:id="@+id/descriptionLabelTV"
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:id="@+id/headerTV"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="match_parent"
|
||||||
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"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Photo"
|
android:text="Create New Post"
|
||||||
android:checked="true"/>
|
android:textSize="32sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textColor="#011f4b"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_marginBottom="40dp"/>
|
||||||
|
|
||||||
<RadioButton
|
<!-- Description Label -->
|
||||||
android:id="@+id/videoRB"
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:id="@+id/descriptionLabelTV"
|
||||||
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Video"
|
android:text="Description"
|
||||||
android:layout_marginStart="24dp"/>
|
android:textSize="16sp"
|
||||||
</RadioGroup>
|
android:textStyle="bold"
|
||||||
|
android:textColor="#03396c"
|
||||||
|
android:layout_marginBottom="8dp"/>
|
||||||
|
|
||||||
<TextView
|
<!-- Description Input -->
|
||||||
android:id="@+id/categoryLabelTV"
|
<EditText
|
||||||
android:layout_width="wrap_content"
|
android:id="@+id/descriptionET"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:text="Category"
|
android:layout_height="120dp"
|
||||||
android:textSize="16sp"/>
|
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
|
<!-- Media Type Label -->
|
||||||
android:id="@+id/categorySpinner"
|
<TextView
|
||||||
android:layout_width="370dp"
|
android:id="@+id/mediaTypeLabelTV"
|
||||||
android:layout_height="48dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_marginBottom="16dp" />
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Media Type"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textColor="#03396c"
|
||||||
|
android:layout_marginBottom="8dp"/>
|
||||||
|
|
||||||
<TextView
|
<!-- Media Type Radio Group -->
|
||||||
android:id="@+id/selectMediaLabelTV"
|
<RadioGroup
|
||||||
android:layout_width="wrap_content"
|
android:id="@+id/mediaTypeRG"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:text="Select Media"
|
android:layout_height="wrap_content"
|
||||||
android:textSize="16sp"/>
|
android:orientation="horizontal"
|
||||||
|
android:layout_marginBottom="24dp">
|
||||||
|
|
||||||
<Button
|
<RadioButton
|
||||||
android:id="@+id/selectMediaBtn"
|
android:id="@+id/photoRB"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Choose File"
|
android:text="Photo"
|
||||||
android:layout_marginBottom="16dp"/>
|
android:textColor="#03396c"
|
||||||
|
android:buttonTint="#005b96"
|
||||||
|
android:checked="true"/>
|
||||||
|
|
||||||
<TextView
|
<RadioButton
|
||||||
android:id="@+id/selectedFileTV"
|
android:id="@+id/videoRB"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="No file selected"
|
android:text="Video"
|
||||||
android:textSize="14sp"
|
android:textColor="#03396c"
|
||||||
android:layout_marginBottom="16dp"/>
|
android:buttonTint="#005b96"
|
||||||
|
android:layout_marginStart="24dp"/>
|
||||||
|
</RadioGroup>
|
||||||
|
|
||||||
<ImageView
|
<!-- Category Label -->
|
||||||
android:id="@+id/previewIV"
|
<TextView
|
||||||
android:layout_width="200dp"
|
android:id="@+id/categoryLabelTV"
|
||||||
android:layout_height="200dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_gravity="center"
|
android:layout_height="wrap_content"
|
||||||
android:visibility="gone"
|
android:text="Category"
|
||||||
android:scaleType="centerCrop"
|
android:textSize="16sp"
|
||||||
android:layout_marginBottom="16dp"
|
android:textStyle="bold"
|
||||||
android:contentDescription="Preview"/>
|
android:textColor="#03396c"
|
||||||
|
android:layout_marginBottom="8dp"/>
|
||||||
|
|
||||||
<Button
|
<!-- Category Spinner -->
|
||||||
android:id="@+id/submitBtn"
|
<Spinner
|
||||||
android:layout_width="match_parent"
|
android:id="@+id/categorySpinner"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:text="Post"
|
android:layout_height="56dp"
|
||||||
android:layout_marginBottom="8dp"/>
|
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>
|
</ScrollView>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@ -3,6 +3,7 @@
|
|||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@color/bgColor"
|
||||||
android:layout_marginBottom="24dp">
|
android:layout_marginBottom="24dp">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@ -25,15 +26,6 @@
|
|||||||
android:layout_marginBottom="16dp"
|
android:layout_marginBottom="16dp"
|
||||||
android:gravity="center_vertical">
|
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
|
<LinearLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
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">
|
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||||
<!-- Base application theme. -->
|
<!-- 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. -->
|
<!-- Customize your dark theme here. -->
|
||||||
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
|
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||||
<!-- Base application theme. -->
|
<!-- 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. -->
|
<!-- Customize your light theme here. -->
|
||||||
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
|
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user