XML Layout Design

 //============================XML Code Start =========================================

http://hateum.github.io/AndroidDrawableGenerator/

//==================================End=========================================== 

----------------------------------------------------Screen Short-------------------------------------------------------------------------




//==================================End===========================================


----------------------------------------------------Screen Short-------------------------------------------------------------------------



 

//============================XML Code Start =========================================

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

    <CheckBox
       
android:id="@+id/rd_btn_burger"
       
android:layout_width="0dp"
       
android:layout_height="wrap_content"
       
android:layout_weight="1"
       
android:text="Burger 150">

    </CheckBox>

    <EditText
       
android:id="@+id/txt_Burger"
       
android:layout_weight="1"
       
android:layout_width="0dp"
       
android:layout_height="wrap_content"
       
android:hint="Enter Quntity" />


</LinearLayout>

//==================================End===========================================

//=================================================================================

 

----------------------------------------------------Screen Short-------------------------------------------------------------------------




//============================XML Code Start =========================================

<LinearLayout
   
android:layout_width="match_parent"
   
android:layout_height="wrap_content"
   
android:orientation="vertical">

    <TextView
   
android:layout_width="match_parent"
   
android:layout_height="0dp"
   
android:text="Select Your Orders"
   
android:paddingLeft="100dp"
   
android:textSize="30dp"
   
android:layout_weight="1"/>

</LinearLayout>

//==================================End===========================================

//=================================================================================

 

----------------------------------------------------Screen Short-------------------------------------------------------------------------

 

//============================XML Code Start =========================================

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

    <RadioGroup
       
android:layout_width="match_parent"
       
android:layout_height="wrap_content"
       
android:orientation="horizontal"
       
>
    <RadioButton
       
android:id="@+id/rd_cash"
       
android:layout_weight="1"
       
android:layout_width="0dp"
       
android:checked="true"
       
android:layout_height="wrap_content"
       
android:text="Cash">

    </RadioButton>
    <RadioButton
       
android:id="@+id/rd_credit_Card"
       
android:layout_weight="1"
       
android:layout_width="0dp"
        
android:checked="true"
       
android:layout_height="wrap_content"
       
android:text="credit_Card">

    </RadioButton>
    </RadioGroup>
</LinearLayout>

//==================================End===========================================

//=================================================================================

 

----------------------------------------------------Screen Short-------------------------------------------------------------------------



//============================XML Code Start =========================================

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


    <Button
       
android:id="@+id/btn_Place_order"
       
android:layout_width="match_parent"
       
android:layout_height="wrap_content"
       
android:text="Place Order">

    </Button>
</LinearLayout>

//==================================End===========================================

//=================================================================================

----------------------------------------------------Screen Short-------------------------------------------------------------------------





//============================XML Code Start =========================================

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

    <TextView

       
android:id="@+id/txtview_right_show"
       
android:layout_width="wrap_content"
       
android:layout_height="wrap_content"
       
android:paddingTop="30dp"
       
android:textSize="25dp"
       
android:layout_marginLeft="30dp"
       
android:text="Bill" />

    <TextView
       
android:id="@+id/txtview_left_show"
       
android:layout_width="fill_parent"
       
android:layout_height="wrap_content"
       
android:gravity="right"
       
android:textSize="20dp"
        
android:layout_marginRight="50dp"
       
android:text="0"/>
</LinearLayout>

//==================================End===========================================

//=================================================================================




//============================XML Code Start =========================================

<EditText
   
android:id="@+id/edit_txt_email"
   
android:layout_width="match_parent"
   
android:layout_height="wrap_content"
   
android:layout_margin="20dp"
   
android:background="@drawable/edit_style"
   
android:drawableLeft="@drawable/ic_baseline_email_24"
   
android:drawablePadding="10dp"
   
android:hint="Enter Email"
   
android:padding="10dp"
   
android:paddingLeft="20dp"
   
android:inputType="textEmailAddress"/>

//==================================End===========================================

 

//=================================================================================





//============================XML Code Start =========================================

<com.google.android.material.textfield.TextInputLayout
   
android:layout_width="match_parent"
   
android:layout_height="wrap_content"
   
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
   
app:endIconMode="clear_text"
  
android:layout_margin="14dp"
   
app:boxCornerRadiusBottomEnd="10dp"
   
app:boxCornerRadiusTopEnd="10dp"
   
app:boxCornerRadiusBottomStart="10dp"
   
app:boxCornerRadiusTopStart="10dp">
    <com.google.android.material.textfield.TextInputEditText
       
android:layout_width="match_parent"
       
android:layout_height="wrap_content"
       
android:drawableRight="@drawable/ic_baseline_email_24"
       
android:hint="Email"
       
android:inputType="textEmailAddress"
       
android:textColorHint="@color/black"
       
android:textStyle="bold" />

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

//==================================End===========================================

//=================================================================================

spinner

//============================XML Code Start =========================================

<com.google.android.material.textfield.TextInputLayout
   
android:layout_width="match_parent"
   
android:layout_height="match_parent"
   
android:hint="type"

   
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense.ExposedDropdownMenu">
    <AutoCompleteTextView
       
android:padding="30dip"
       
android:layout_width="fill_parent"
       
android:id="@+id/spinner_row_one_monday"
       
android:layout_height="wrap_content"
       
android:inputType="none"
       
/>
</com.google.android.material.textfield.TextInputLayout>

//==================================End===========================================

//=================================================================================

Constainlayout use floating buttom

//============================XML Code Start =========================================

<com.google.android.material.floatingactionbutton.FloatingActionButton
   
android:id="@+id/floating_btn_Save"
   
android:layout_width="wrap_content"
   
android:layout_height="wrap_content"
   
android:layout_alignParentRight="true"
   
android:layout_alignParentBottom="true"
   
android:layout_marginStart="36dp"
   
android:layout_marginTop="36dp"
   
android:layout_marginEnd="36dp"
   
android:layout_marginRight="149dp"
   
android:layout_marginBottom="34dp"
   
android:backgroundTint="@android:color/holo_orange_light"
   
android:src="@drawable/plus"
   
app:useCompatPadding="true" />

 

//==================================End===========================================







//============================XML Code Start =========================================

<LinearLayout
   
android:layout_width="match_parent"
   
android:layout_height="wrap_content"
   
android:padding="18dp"
   
android:orientation="horizontal">
    <LinearLayout
       
android:layout_width="0dp"
       
android:layout_weight="4"
       
android:layout_margin="0dp"

       
android:layout_height="wrap_content"
       
android:orientation="vertical">
        <TextView
           
android:layout_width="match_parent"
           
android:layout_height="wrap_content"
           
android:textSize="15dp"
           
android:layout_margin="3dp"
           
android:textStyle="bold"
           
android:text="Name :"/>
        <TextView
           
android:layout_width="match_parent"
           
android:layout_margin="3dp"
           
android:layout_height="wrap_content"
           
android:textSize="15dp"
           
android:textStyle="bold"
           
android:text="Host :"/>
        <TextView
           
android:layout_width="match_parent"
           
android:layout_height="wrap_content"
           
android:textSize="15dp"
           
android:layout_margin="3dp"
           
android:textStyle="bold"
            
android:text="IP"/>
    </LinearLayout>
    <LinearLayout
       
android:layout_width="0dp"
       
android:layout_weight="8"
       
android:layout_height="wrap_content"
       
android:orientation="vertical">
        <TextView
           
android:layout_width="match_parent"
           
android:layout_height="wrap_content"
           
android:textSize="15dp"
           
android:layout_margin="3dp"
           
android:id="@+id/textView_setting_dvr_name"
           
android:text="DVR 1"/>
        <TextView
           
android:layout_width="match_parent"
           
android:layout_height="wrap_content"
           
android:textSize="15dp"
           
android:layout_margin="3dp"
           
android:id="@+id/textView_setting_dvr_host"
            
android:text="Admin"/>
        <TextView
           
android:layout_width="match_parent"
           
android:layout_height="wrap_content"
           
android:textSize="15dp"
           
android:layout_margin="3dp"
           
android:id="@+id/textView_setting_dvr_ip"
           
android:text="192.168.1.1"/>
    </LinearLayout>
    <LinearLayout
       
android:layout_width="0dp"
       
android:layout_weight="2"
       
android:layout_height="wrap_content"
       
android:layout_marginRight="20dp"
        
android:orientation="vertical">
        <ImageView
           
android:layout_width="50dp"
           
android:layout_margin="3dp"
           
android:layout_height="35dp"
           
android:id="@+id/hjhj"
           
android:layout_weight="3"
           
android:src="@drawable/ic_baseline_edit"/>
        <ImageView
           
android:layout_width="50dp"
           
android:layout_height="35dp"
           
android:layout_margin="3dp"
           
android:layout_weight="1"
           
android:src="@drawable/ic_baseline_delete"/>
    </LinearLayout>

</LinearLayout>

//==================================End===========================================

 

//============================XML Code Start =========================================

<!--time show title-->
<TableRow
   
android:layout_height="wrap_content"
   
android:layout_width="match_parent">

    <TextView

       
android:text=""
       
android:layout_weight="1"
       
android:background="@color/white"
       
android:textColor="#000000"

       
android:layout_gravity="center"
       
android:gravity="center"/>
    <TableRow
       
android:layout_weight="1">

        <TextView
           
android:layout_width="match_parent"
           
android:layout_height="wrap_content"
           
android:gravity="center"
           
android:layout_weight="1"
           
android:layout_margin="10dp"
           
android:textSize="20dp"
           
android:textStyle="bold"
           
android:text="Mon"/>

    </TableRow>


    <TableRow
       
android:layout_weight="1"
       
android:layout_gravity="center">

        <TextView
           
android:layout_width="match_parent"
           
android:layout_height="wrap_content"
           
android:gravity="center"
           
android:layout_weight="1"
           
android:layout_margin="10dp"
           
android:textSize="20dp"
           
android:textStyle="bold"
           
android:text="Tue"/>

    </TableRow>
    <TableRow
       
android:layout_weight="1"
       
android:layout_gravity="center">

        <TextView
           
android:layout_width="match_parent"
           
android:layout_height="wrap_content"
           
android:gravity="center"
           
android:layout_weight="1"
           
android:layout_margin="10dp"
           
android:textSize="20dp"
           
android:textStyle="bold"
           
android:text="Wed"/>

    </TableRow>
    <TableRow
       
android:layout_weight="1"
       
android:layout_gravity="center">

        <TextView
            
android:layout_width="match_parent"
           
android:layout_height="wrap_content"
           
android:gravity="center"
           
android:layout_weight="1"
           
android:layout_margin="10dp"
           
android:textSize="20dp"
            
android:textStyle="bold"
           
android:text="Thu"/>

    </TableRow>
    <TableRow
       
android:layout_weight="1"
       
android:layout_gravity="center">

        <TextView
           
android:layout_width="match_parent"
           
android:layout_height="wrap_content"
           
android:gravity="center"
           
android:layout_weight="1"
           
android:layout_margin="10dp"
           
android:textSize="20dp"
           
android:textStyle="bold"
           
android:text="Fri"/>
    </TableRow>
</TableRow>
   
<!--time show row one-->
<TableRow
   
android:id="@+id/tableRow1"
   
android:layout_height="wrap_content"
   
android:layout_width="match_parent">

    <TextView

       
android:text="8:30\n10:00"
       
android:layout_weight="1"
       
android:background="@color/white"
       
android:textColor="#000000"

       
android:layout_gravity="center"
       
android:gravity="center"/>
    <TableRow
       
android:layout_weight="1"
       
android:layout_gravity="center">

        <Spinner
           
android:id="@+id/spinner_row_one_monday"
           
android:layout_width="wrap_content"
           
android:layout_height="match_parent"
           
android:layout_weight="1"
           
android:drawSelectorOnTop="true"
           
android:gravity="left"
           
android:textColor="@color/white" />

    </TableRow>


    <TableRow
       
android:layout_weight="1"
       
android:layout_gravity="center">

        <Spinner
           
android:id="@+id/spinner_row_one_Tuesday"
           
android:layout_width="wrap_content"
           
android:layout_height="match_parent"
           
android:layout_weight="1"
           
android:drawSelectorOnTop="true"
           
android:gravity="left"
           
android:textColor="@color/white" />

    </TableRow>
    <TableRow
       
android:layout_weight="1"
       
android:layout_gravity="center">

        <Spinner
           
android:id="@+id/spinner_row_one_Wednesday"
           
android:layout_width="wrap_content"
           
android:layout_height="match_parent"
           
android:layout_weight="1"
           
android:drawSelectorOnTop="true"
           
android:gravity="left"
           
android:textColor="@color/white" />

    </TableRow>
    <TableRow
       
android:layout_weight="1"
       
android:layout_gravity="center">

        <Spinner
           
android:id="@+id/spinner_row_one_Thursday"

           
android:layout_width="wrap_content"
           
android:layout_height="match_parent"
           
android:layout_weight="1"
           
android:drawSelectorOnTop="true"
           
android:gravity="left"
           
android:textColor="@color/white" />

    </TableRow>
    <TableRow
       
android:layout_weight="1"
       
android:layout_gravity="center">

        <Spinner
           
android:id="@+id/spinner_row_one_Friday"
           
android:layout_width="wrap_content"
           
android:layout_height="match_parent"
           
android:layout_weight="1"
           
android:drawSelectorOnTop="true"
           
android:gravity="left"
           
android:textColor="@color/white" />

    </TableRow>
</TableRow>

 

//==================================End===========================================








//============================XML Code Start =========================================

<GridLayout
   
android:layout_width="match_parent"
   
android:layout_height="wrap_content"
   
android:columnCount="2"
   
android:rowCount="2">

    <com.google.android.material.imageview.ShapeableImageView
       
android:id="@+id/profile_image_teacher"
       
android:layout_width="96dp"
       
android:layout_height="96dp"
       
android:layout_row="0"

       
android:layout_column="0"
       
android:layout_margin="5dp"
       
android:adjustViewBounds="true"
       
android:elevation="5dp"
       
android:maxWidth="50dp"
       
android:maxHeight="50dp"
       
android:scaleType="fitXY"
       
android:background="@color/white"
       
android:src="@drawable/image_icon"
       
app:shapeAppearanceOverlay="@style/imageViewRounded"
       
app:strokeColor="@android:color/black" />

    <TextView
       
android:id="@+id/textView_venue_1"
       
android:layout_width="match_parent"
       
android:layout_height="wrap_content"
       
android:layout_marginTop="42dp"
       
android:layout_marginLeft="10dp"
       
android:layout_marginRight="20dp"
       
android:text="Teacher"
       
android:elevation="15dp"
       
android:textSize="20dp"
       
android:textStyle="bold"
       
/>
</GridLayout>

 

//==================================End===========================================

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.