Add post screen ui design in android studio (with source code) free

Add post screen ui design in android studio with xml code

by Author Aayush Parmartoday

In this page I am show you source code of my Add post design also you can check this code in our android app name Kherwara App available at play store

Activity name : Add postActivity.java

Install library

 Gradle Add jitpack.io to your root gradle file (project level) :

 allprojects { 

repositories {

 ... maven { url 'https://jitpack.io' } } } 

paste thid dependecies in build.gradle file

implementation 'com.github.MrNouri:DynamicSizes:1.0'


beautiful android Add post and signup screens with material design

<?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/white"
tools:context=".AddPostActivity"
android:orientation="vertical">
<ScrollView
android:id="@+id/scrollveiaddpostactivty"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/erroe"
android:layout_width="match_parent"
android:textColor="@color/red"
android:visibility="gone"
android:text="error"
android:textSize="@dimen/_20mdp"
android:textStyle="bold"
android:layout_height="wrap_content">
</TextView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:id="@+id/toplp"
android:layout_margin="@dimen/_2mdp"
android:gravity="center"
android:orientation="horizontal">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/profile"
android:layout_width="@dimen/_50mdp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:gravity="center"
android:src="@drawable/ic_twotone_mood_24" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:layout_weight="1"
android:gravity="start"
android:orientation="vertical">
<TextView
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="start"
android:textColor="@color/black"
android:layout_marginLeft="@dimen/_4mdp"
android:layout_weight="1"
android:gravity="start"
android:text="@string/app_name"
android:textSize="@dimen/_15font_mdp"
android:textStyle="bold"
/>
<TextView
android:id="@+id/profession"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="start"
android:layout_marginStart="@dimen/_4mdp"
android:textColor="@color/black"
android:layout_weight="1"
android:gravity="start"
android:textSize="@dimen/_10font_mdp"
android:text="@string/app_name"
/>
</LinearLayout>
<Button
android:gravity="center"
android:id="@+id/postBtn"
android:layout_width="wrap_content"
android:backgroundTint="@color/Wh"

android:textColor="#000000"
android:layout_marginEnd="@dimen/_4mdp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/post11" />
</LinearLayout>
<View
android:id="@+id/divider4"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:attr/listDivider" />
<ImageView
android:id="@+id/youtubeimage"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</ImageView>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/_3mdp"
app:boxStrokeColor="@color/black"
android:layout_weight="1"
android:id="@+id/ytla"
android:hint="@string/enter_youtube_video_link"
app:hintTextColor="@color/black"
app:placeholderTextColor="@color/black"
app:helperTextTextColor="@color/black"
app:suffixTextColor="@color/black"
app:prefixTextColor="@color/black"
android:textColorHint="@color/black"
style="@style/FirebaseUI.TextInputLayout"
android:layout_margin="@dimen/_10mdp"
>
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/youtubevideolink"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/black"

android:textColorHint="@color/black"
android:textColorLink="@color/black"
android:maxLength="100"
android:maxLines="1" />



</com.google.android.material.textfield.TextInputLayout>






<VideoView
android:layout_width="match_parent"
android:id="@+id/video"

android:layout_height="wrap_content"/>

<LinearLayout
android:layout_width="match_parent"
android:orientation="vertical"
android:id="@+id/td"
android:layout_height="wrap_content">

<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/_3mdp"
app:boxStrokeColor="@color/black"
android:hint="Titel"

app:hintTextColor="@color/black"
app:placeholderTextColor="@color/black"
app:counterTextColor="@color/black"
android:id="@+id/titelL"
app:helperTextTextColor="@color/black"
app:suffixTextColor="@color/black"
app:prefixTextColor="@color/black"
android:textColorHint="@color/black"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_margin="@dimen/_10mdp"
app:boxCollapsedPaddingTop="@dimen/_3mdp"
app:counterEnabled="true"
app:counterMaxLength="50"

>

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/titel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLength="100"
android:maxLines="1"
android:selectAllOnFocus="true"
android:textColor="@color/black"
android:textColorHint="@color/black"
android:textColorLink="@color/black" />
</com.google.android.material.textfield.TextInputLayout>






<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/_10mdp"
style="@style/FirebaseUI.TextInputLayout"
app:counterEnabled="true"

app:hintTextColor="@color/black"
app:placeholderTextColor="@color/black"
app:counterTextColor="@color/black"
app:helperTextTextColor="@color/black"
app:suffixTextColor="@color/black"
app:boxStrokeColor="@color/black"
app:prefixTextColor="@color/black"
android:textColorHint="@color/black"
android:hint="Description"
android:id="@+id/descriptionL"
android:textColor="@color/black"
app:counterMaxLength="1000">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/postdescription"
android:layout_width="match_parent"
android:layout_height="@dimen/_100mdp"
android:textColor="@color/black"
android:maxLength="8000"
android:selectAllOnFocus="true"
android:maxLines="5"

/>

</com.google.android.material.textfield.TextInputLayout>

</LinearLayout>






<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/forsalelayout"
android:orientation="vertical">

<LinearLayout
android:id="@+id/salelayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/_4mdp"
android:orientation="vertical">


<com.google.android.material.textfield.TextInputLayout
android:id="@+id/priceL"
android:layout_width="match_parent"
android:layout_height="wrap_content"

android:layout_margin="@dimen/_2mdp"
style="@style/FirebaseUI.TextInputLayout"
app:startIconDrawable="@drawable/ic_baseline_currency_rupee_24"
android:importantForAutofill="auto"
android:orientation="horizontal"
android:hint="मूल्य |price"
app:startIconTint="@color/black"
android:textColorHint="@color/black"
app:hintTextColor="@color/black"
app:placeholderTextColor="@color/black"
app:prefixTextColor="@color/black"
app:boxStrokeColor="@color/black"
app:suffixTextColor="@color/black"
app:helperTextTextColor="@color/black"

>


<com.google.android.material.textfield.TextInputEditText
android:id="@+id/price"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textColor="@color/black"
android:digits="1234567890"
android:ems="10"
android:inputType="number"
android:maxLength="7"
android:minHeight="48dp"
/>
</com.google.android.material.textfield.TextInputLayout>



<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/phoneL"
android:layout_margin="@dimen/_2mdp"
android:orientation="horizontal"
style="@style/FirebaseUI.TextInputLayout"
app:startIconDrawable="@drawable/phone"
app:startIconTint="@color/black"
android:textColorHint="@color/black"
app:hintTextColor="@color/black"
app:placeholderTextColor="@color/black"
app:prefixTextColor="@color/black"
app:boxStrokeColor="@color/black"
app:suffixTextColor="@color/black"
app:helperTextTextColor="@color/black"
android:hint=" फोन न. | Phone"

>

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/phone"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:ems="10"
android:textColor="@color/black"
android:digits="1234567890"
android:inputType="number"
android:maxLength="10"
android:text="" />

</com.google.android.material.textfield.TextInputLayout>



<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/whatsappL"
android:layout_margin="@dimen/_2mdp"
android:orientation="horizontal"
style="@style/FirebaseUI.TextInputLayout"
app:startIconDrawable="@drawable/fui_ic_phone_white_24dp"
app:startIconTint="@color/black"
android:textColorHint="@color/black"
app:hintTextColor="@color/black"
app:placeholderTextColor="@color/black"
app:prefixTextColor="@color/black"
app:boxStrokeColor="@color/black"
app:suffixTextColor="@color/black"
app:helperTextTextColor="@color/black"
android:hint=" WhatsApp"

>

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/whatsapp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:ems="10"
android:textColor="@color/black"
android:digits="1234567890"
android:inputType="number"
android:maxLength="10"
android:text="" />

</com.google.android.material.textfield.TextInputLayout>




<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/_2mdp"
android:id="@+id/locationL"
android:orientation="horizontal"
style="@style/FirebaseUI.TextInputLayout"
app:startIconTint="@color/black"
android:textColorHint="@color/black"
app:hintTextColor="@color/black"
app:placeholderTextColor="@color/black"
app:prefixTextColor="@color/black"
app:boxStrokeColor="@color/black"
app:suffixTextColor="@color/black"
app:helperTextTextColor="@color/black"

>



<com.google.android.material.textfield.TextInputEditText
android:id="@+id/location"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:textColor="@color/black"
android:hint=" जगह का नाम"
android:drawableStart="@drawable/location"
android:maxLength="100"
/>
</com.google.android.material.textfield.TextInputLayout>


<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="@dimen/_50mdp"
android:layout_margin="@dimen/_2mdp"
app:startIconDrawable="@drawable/ic_baseline_local_offer_24"
android:orientation="horizontal"
style="@style/FirebaseUI.TextInputLayout"
android:id="@+id/discountL"

app:startIconTint="@color/black"
android:textColorHint="@color/black"
app:hintTextColor="@color/black"
app:placeholderTextColor="@color/black"
app:prefixTextColor="@color/black"
app:boxStrokeColor="@color/black"
app:suffixTextColor="@color/black"
app:helperTextTextColor="@color/black"
>

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/discount"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:ems="10"
android:textColor="@color/green"
android:hint=" Discount %"
android:inputType="number"
android:maxLength="2"
android:text="" />

</com.google.android.material.textfield.TextInputLayout>




<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/_2mdp"
app:startIconDrawable="@drawable/web_24"
android:orientation="horizontal"
style="@style/FirebaseUI.TextInputLayout"
android:id="@+id/weightL"
app:startIconTint="@color/black"
android:textColorHint="@color/black"
app:hintTextColor="@color/black"
app:placeholderTextColor="@color/black"
app:prefixTextColor="@color/black"
android:layout_weight="1"
app:boxStrokeColor="@color/black"
app:suffixTextColor="@color/black"
app:helperTextTextColor="@color/black"
>


<com.google.android.material.textfield.TextInputEditText
android:id="@+id/weight"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:textColor="@color/black"
android:ems="10"
android:hint=" भार,वजन,kG"
android:inputType="number"
android:maxLength="2"
android:text="" />

</com.google.android.material.textfield.TextInputLayout>





</LinearLayout>


</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:id="@+id/pis"
android:orientation="vertical"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/images"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_weight="1"
android:orientation="vertical"
android:layout_height="wrap_content">

<ImageView
android:id="@+id/postImg"
android:layout_width="match_parent"
android:layout_height="@dimen/_200mdp"
android:contentDescription="@string/todo11"
android:layout_weight="1"
android:layout_margin="@dimen/_5mdp"
android:padding="@dimen/_35font_mdp"
android:scaleType="centerCrop"
android:src="@drawable/ic_add"
tools:ignore="ContentDescription" />

<TextView
android:id="@+id/mainPhoto"
android:layout_width="match_parent"
android:text="Main Photo"
android:textSize="@dimen/_25mdp"
android:textStyle="bold"
android:layout_gravity="center"
android:background="@color/gr"
android:gravity="center"
android:fontFamily="@font/acme"
android:textColor="@color/black"
android:layout_height="wrap_content"/>


</LinearLayout>



<LinearLayout
android:layout_width="match_parent"
android:layout_weight="1"
android:id="@+id/image1l"
android:orientation="vertical"
android:layout_height="wrap_content">

<ImageView

android:layout_width="match_parent"
android:layout_height="@dimen/_200mdp"
android:contentDescription="@string/todo11"
android:layout_weight="1"
android:id="@+id/I1"
android:scaleType="centerCrop"
android:src="@drawable/image"
tools:ignore="ContentDescription" />

<TextView
android:id="@+id/i1T"
android:layout_width="match_parent"
android:text="Image one"
android:textSize="@dimen/_25mdp"
android:textStyle="bold"
android:layout_gravity="center"
android:gravity="center"
android:fontFamily="@font/acme"
android:textColor="@color/black"
android:layout_height="wrap_content"/>


</LinearLayout>





</LinearLayout>




<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_weight="1"
android:layout_height="wrap_content">


<LinearLayout
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_weight="1"
android:id="@+id/image2l"
android:layout_height="wrap_content">

<ImageView
android:id="@+id/I2"
android:layout_width="match_parent"
android:layout_height="@dimen/_200mdp"
android:contentDescription="@string/todo11"
android:layout_weight="1"
android:padding="@dimen/_4mdp"
android:scaleType="centerCrop"
android:src="@drawable/image"
tools:ignore="ContentDescription" />

<TextView
android:layout_width="match_parent"
android:text="Image Two"
android:textSize="@dimen/_25mdp"
android:textStyle="bold"
android:layout_gravity="center"
android:gravity="center"
android:fontFamily="@font/acme"
android:textColor="@color/black"
android:layout_height="wrap_content"/>


</LinearLayout>


<LinearLayout
android:id="@+id/image3l"
android:layout_width="match_parent"
android:layout_weight="1"

android:orientation="vertical"
android:layout_height="wrap_content">

<ImageView

android:id="@+id/I3"
android:layout_width="match_parent"
android:layout_height="@dimen/_200mdp"
android:contentDescription="@string/todo11"
android:layout_weight="1"
android:padding="@dimen/_4mdp"
android:scaleType="centerCrop"
android:src="@drawable/image"
tools:ignore="ContentDescription" />

<TextView
android:layout_width="match_parent"
android:text="Image Three"
android:textSize="@dimen/_25mdp"
android:textStyle="bold"
android:layout_gravity="center"
android:gravity="center"
android:fontFamily="@font/acme"
android:textColor="@color/black"
android:layout_height="wrap_content"/>


</LinearLayout>





</LinearLayout>




</LinearLayout>







</LinearLayout>
</ScrollView>

<View
android:id="@+id/divider6"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginBottom="8dp"
android:background="?android:attr/listDivider"
app:layout_constraintBottom_toTopOf="@+id/linearLayout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />


</androidx.constraintlayout.widget.ConstraintLayout>

Team

हमारी टीम हर समय आपकी मदद करने को तैयार है |

Aayush Parmar Kherwara

Aayush Parmar 

Developer 

I am Developer and Blogger of kherwara and oudaipur.tech website . Also I am freelancer blogger , App developer , youtube chennal Builder and set-up, Android UI maker , YouTube Video Set-up And all other Digital program I can set. You can Search @iamaayushparmar to know more about me. Thank You.    

kherwara App Icon

Kherwara App 

App

खेरवाड़ा उदयपुर जिले की एक तहसील है जिसमे 195 गावों मे 2 लाख से भी ज्यादा लोग रहते है और Kherwara App को खेरवाड़ा तहसील के लिए बनाया गया | जिससे खेरवाड़ा तहसील के लोग आपस मे जुड़ सके | और साथ ही आप खेरवाड़ा एप की मदद से शॉपिंग भी कर सकते है | और अपना पुराना सामान बेचने के साथ साथ खरीद भी  सकते है |

Oudaipur.tech

Oudaipur.Tech 

Website

Oudaipur.tech ये उदयपुर जिले की एक वेबसाईट है जो उदयपुर और उदयपुर के तहसीलो और उदयपुर के गावों के बारे मे जानकारी देती है | ईस वेबसाइट पर आप उदयपुर जिले के बारे बहुत कुछ जान सकते है |

#MakeInUdaipur

#MakeInUdaipur 

Our Dream

ईस कंपनी ,वेबसाइट का उद्देश्य उदयपुर जिले के लोगों को उदयपुर मे रहकर काम करने और उदयपुर को पूरे राजस्थान मे ही नहीं बल्कि पूरे भारत मे , पहले स्थान पर लाना है | पूरे दुनिया मे इसे एक अलग पहचान मिले | और अगर आप साथ है तो जल्द ही हमारा सपना पूरा हो जाएगा |