140 lines
5.9 KiB
XML
140 lines
5.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:orientation="vertical"
|
|
app:cardCornerRadius="10dp">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_margin="@dimen/dp_10">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Upload image & Message"
|
|
android:textColor="@color/black"
|
|
android:layout_gravity="center"
|
|
android:textSize="20dp"
|
|
android:fontFamily="@font/popins_bold"/>
|
|
<LinearLayout
|
|
android:id="@+id/closebtn"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="end"
|
|
android:layout_gravity="center">
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:padding="@dimen/dp_15"
|
|
android:src="@drawable/close_1" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_weight="2">
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_weight="1">
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Upload Image"
|
|
android:gravity="center"
|
|
android:layout_gravity="center"
|
|
android:fontFamily="@font/popins_medimum">
|
|
</TextView>
|
|
<LinearLayout
|
|
android:id="@+id/uploadimages"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:layout_gravity="center"
|
|
android:layout_weight="0.2"
|
|
android:background="@drawable/dotted_rectangle"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/chooseimage"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/add_plus"
|
|
android:gravity="center"
|
|
android:scaleType="fitXY">
|
|
|
|
</ImageView>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/gilory_bold"
|
|
android:letterSpacing="0.2"
|
|
android:padding="@dimen/dp_5"
|
|
android:text="UPLOAD"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black">
|
|
|
|
</TextView>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progress"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:visibility="gone" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_weight="1">
|
|
<EditText
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="Enter Message"
|
|
android:textSize="15dp"
|
|
android:fontFamily="@font/popins_medimum"
|
|
android:background="@color/zxing_transparent"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_gravity="center"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:gravity="end">
|
|
<Button
|
|
android:id="@+id/addcancel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Cancel"
|
|
android:fontFamily="@font/popins_bold">
|
|
</Button>
|
|
<Button
|
|
android:id="@+id/addok"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp_10"
|
|
android:text="ok"
|
|
android:fontFamily="@font/popins_bold">
|
|
</Button>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView> |