Sunday 31 December 2017

OTP view

Link: https://github.com/mukeshsolanki/android-otpview-pinview

.....
dependencies {
  ...
  compile 'com.mukesh:otpview:1.0.1'
}
<com.mukesh.OtpView
      android:id="@+id/otp_view"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:background="#cccccc"
      android:inputType="number"
      android:textColor="#FFFFFF"
      app:otp="1234"
      app:text_background_color="@color/colorAccent"
      >
</com.mukesh.OtpView>

Tuesday 7 November 2017

MultiSelectListWithWebserviceParsingResources

http://droidmentor.com/multi-select-like-whatsapp-android/
*drawable
1)background_selector_black.xml
========================
<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:drawable="@color/highlightPressBlackColor" android:state_focused="true"/>
        <item android:drawable="@color/highlightPressBlackColor" android:state_pressed="true"/>
        <item android:drawable="@android:color/transparent"/>
</selector>
2)background_selector_white.xml
================================
<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@color/highlightPressWhiteColor" android:state_focused="true"/>
    <item android:drawable="@color/highlightPressWhiteColor" android:state_pressed="true"/>
    <item android:drawable="@android:color/transparent"/>
</selector>
3)btn_normal.xml
=================
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"    android:shape="rectangle">

    <stroke        android:width="@dimen/dp1"        android:color="@color/actionBarBgColor" />
    <corners android:radius="@dimen/dp15" />
    <solid android:color="@color/white" />

</shape>
4)btn_selected.xml
==================
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"    android:shape="rectangle">
    <corners        android:radius="@dimen/dp15" />
    <solid android:color="@color/dark_grey"/>
</shape>
5_selecter_btn
==============
<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@drawable/btn_selected" android:state_pressed="true"></item>
    <item android:drawable="@drawable/btn_normal"></item>

</selector>

*layout
1)actionbar_layout.xml
======================
<?xml version="1.0" encoding="utf-8"?><android.support.v7.widget.Toolbar 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:id="@+id/my_toolbar"    android:layout_width="match_parent"    android:layout_height="@dimen/actionbarHeight"    android:background="@color/actionBarBgColor"    android:contentInsetEnd="0dp"    android:contentInsetLeft="0dp"    android:contentInsetRight="0dp"    android:contentInsetStart="0dp"    app:contentInsetEnd="0dp"    app:contentInsetLeft="0dp"    app:contentInsetRight="0dp"    app:contentInsetStart="0dp"    tools:targetApi="lollipop">

    <RelativeLayout        android:id="@+id/relative_layout_actionbar"        android:layout_width="match_parent"        android:layout_height="match_parent">

        <ImageView            android:id="@+id/img_actionbar_menu"            style="@style/imgActionBarStyle"            android:layout_alignParentLeft="true"            android:layout_centerVertical="true"            android:background="@drawable/background_selector_white"            android:src="@mipmap/ic_menu" />

        <TextView            android:id="@+id/txt_actionbar_title"            android:layout_width="match_parent"            android:layout_height="wrap_content"            android:layout_toRightOf="@+id/img_actionbar_menu"            android:layout_toLeftOf="@+id/img_actionbar_extra"            android:gravity="center"            android:textColor="@android:color/white"            android:text=""            android:textSize="@dimen/txtActionbarTextSize"            android:layout_centerVertical="true" />

        <ImageView            android:id="@+id/img_actionbar_extra"            style="@style/imgActionBarStyle"            android:layout_alignParentRight="true"            android:background="@drawable/background_selector_white"            android:visibility="invisible"            android:src="@mipmap/ic_menu" />

    </RelativeLayout>
</android.support.v7.widget.Toolbar>

2)activity_login.xml
====================
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    android:id="@+id/frag_login_rlyt_parent"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:background="@color/white"    android:orientation="vertical">

    <ScrollView        android:layout_width="match_parent"        android:layout_height="match_parent"        android:layout_centerInParent="true"        android:fillViewport="true">

        <LinearLayout            android:layout_width="match_parent"            android:layout_height="match_parent"            android:layout_gravity="center"            android:gravity="center"            android:orientation="vertical"            android:paddingLeft="@dimen/dp20"            android:paddingRight="@dimen/dp20">

            <TextView                android:id="@+id/frag_login_img_logo"                android:layout_width="match_parent"                android:layout_height="wrap_content"                android:gravity="center"                android:text="@string/app_name"                android:textColor="@color/dark_grey"                android:textSize="@dimen/sp30" />

            <android.support.design.widget.TextInputLayout                android:id="@+id/frag_login_input_email"                android:layout_width="match_parent"                android:layout_height="wrap_content"                android:layout_marginTop="@dimen/dp10"                app:hintTextAppearance="@style/CommonTextInputLayout">

                <EditText                    android:id="@+id/frag_login_edt_email"                    style="@style/edtRegister"                    android:hint="@string/email"                    android:inputType="textEmailAddress" />
            </android.support.design.widget.TextInputLayout>

            <android.support.design.widget.TextInputLayout                android:id="@+id/frag_login_input_password"                android:layout_width="match_parent"                android:layout_height="wrap_content"                android:layout_marginTop="@dimen/dp10"                app:hintTextAppearance="@style/CommonTextInputLayout">

                <EditText                    android:id="@+id/frag_login_edt_password"                    style="@style/edtRegister"                    android:hint="@string/password"                    android:inputType="textPassword" />
            </android.support.design.widget.TextInputLayout>

            <CheckBox                android:id="@+id/frag_login_chk_remember_me"                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:layout_gravity="left"                android:layout_marginTop="@dimen/dp10"                android:checked="false"                android:gravity="center"                android:padding="@dimen/dp5"                android:text="@string/remember_me"                android:textColor="@color/actionBarBgColor" />

            <Button                android:id="@+id/frag_login_btn_login"                style="@style/btnStyle"
                android:layout_marginBottom="@dimen/dp10"                android:layout_marginTop="@dimen/dp20"                android:text="@string/login" />

            <Button                android:id="@+id/frag_login_btn_sign_up"                style="@style/btnStyle"
                android:layout_marginBottom="@dimen/dp10"                android:layout_marginTop="@dimen/dp10"                android:text="@string/sign_up" />

        </LinearLayout>
    </ScrollView>
</RelativeLayout>
3)activity_main.xml
===================
<?xml version="1.0" encoding="utf-8"?><android.support.design.widget.CoordinatorLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:fitsSystemWindows="true">

<!--<android.support.design.widget.FloatingActionButton-->    <!--android:id="@+id/fab"-->    <!--android:layout_width="wrap_content"-->    <!--android:layout_height="wrap_content"-->    <!--android:layout_gravity="bottom|end"-->    <!--android:layout_margin="@dimen/activity_vertical_margin"-->    <!--android:src="@drawable/ic_add" />-->
<LinearLayout    android:orientation="vertical"    android:layout_width="match_parent"    android:layout_height="match_parent">

    <include layout="@layout/content_contextual_menu"/>

</LinearLayout>

</android.support.design.widget.CoordinatorLayout>
4)activity_registration.xml
=============================
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    android:id="@+id/frag_register_parent_view"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:background="@android:color/white"    android:orientation="vertical">

    <include layout="@layout/actionbar_layout" />

    <ScrollView        android:id="@+id/frag_register_scrollview"        android:layout_width="match_parent"        android:layout_height="match_parent"        android:layout_below="@+id/my_toolbar">

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

            <LinearLayout                android:layout_width="match_parent"                android:layout_height="wrap_content"                android:layout_marginBottom="@dimen/dp5"                android:layout_marginTop="@dimen/dp5"                android:orientation="vertical"                android:paddingLeft="@dimen/dp20"                android:paddingRight="@dimen/dp20">

                <RelativeLayout                    android:id="@+id/frag_register_rlyttop"                    android:layout_width="@dimen/dp100"                    android:layout_height="@dimen/dp100"                    android:layout_gravity="center_horizontal"                    android:layout_marginTop="@dimen/dp30">

                    <com.credencys.myapplication.widgets.ShapedImageView                        android:id="@+id/frag_register_img_profile"                        android:layout_width="match_parent"                        android:layout_height="match_parent"                        android:layout_centerHorizontal="true"                        android:clickable="true"                        android:onClick="clickEvent"                        android:scaleType="centerCrop"                        android:src="@mipmap/ic_default_profile"                        app:shape_mode="circle" />

                </RelativeLayout>

                <android.support.design.widget.TextInputLayout                    android:id="@+id/frag_register_input_first_Name"                    android:layout_width="match_parent"                    android:layout_height="wrap_content"                    android:layout_marginTop="@dimen/dp10"                    app:hintTextAppearance="@style/CommonTextInputLayout">

                    <EditText                        android:id="@+id/frag_register_edt_first_name"                        style="@style/edtRegister"                        android:hint="@string/first_name"                        android:inputType="textCapWords"                        android:maxLength="25" />
                </android.support.design.widget.TextInputLayout>

                <android.support.design.widget.TextInputLayout                    android:id="@+id/input_last_name"                    android:layout_width="match_parent"                    android:layout_height="wrap_content"                    android:layout_marginTop="@dimen/dp10"                    app:hintTextAppearance="@style/CommonTextInputLayout">

                    <EditText                        android:id="@+id/frag_register_edt_last_name"                        style="@style/edtRegister"                        android:hint="@string/last_name"                        android:inputType="textCapWords"                        android:maxLength="25" />
                </android.support.design.widget.TextInputLayout>

                <android.support.design.widget.TextInputLayout                    android:id="@+id/frag_register_input_email"                    android:layout_width="match_parent"                    android:layout_height="wrap_content"                    android:layout_marginTop="@dimen/dp10"                    app:hintTextAppearance="@style/CommonTextInputLayout">

                    <EditText                        android:id="@+id/frag_register_edt_email"                        style="@style/edtRegister"                        android:hint="@string/email"                        android:inputType="textEmailAddress" />
                </android.support.design.widget.TextInputLayout>

                <android.support.design.widget.TextInputLayout                    android:id="@+id/frag_register_input_password"                    android:layout_width="match_parent"                    android:layout_height="wrap_content"                    android:layout_marginTop="@dimen/dp10"                    app:hintTextAppearance="@style/CommonTextInputLayout">

                    <EditText                        android:id="@+id/frag_register_edt_password"                        style="@style/edtRegister"                        android:hint="@string/password"                        android:inputType="textPassword" />
                </android.support.design.widget.TextInputLayout>

                <android.support.design.widget.TextInputLayout                    android:id="@+id/frag_register_input_confirm_password"                    android:layout_width="match_parent"                    android:layout_height="wrap_content"                    android:layout_below="@+id/input_password"                    android:layout_marginTop="@dimen/dp10"                    app:hintTextAppearance="@style/CommonTextInputLayout">

                    <EditText                        android:id="@+id/frag_register_edt_confirm_password"                        style="@style/edtRegister"                        android:hint="@string/confirm_password"                        android:inputType="textPassword" />
                </android.support.design.widget.TextInputLayout>

                <android.support.design.widget.TextInputLayout                    android:id="@+id/frag_register_input_phone_number"                    android:layout_width="match_parent"                    android:layout_height="wrap_content"                    android:layout_marginTop="@dimen/dp10"                    app:hintTextAppearance="@style/CommonTextInputLayout">

                    <EditText                        android:id="@+id/frag_register_edt_phone_number"                        style="@style/edtRegister"                        android:layout_width="match_parent"                        android:layout_height="wrap_content"                        android:hint="@string/phone_number"                        android:inputType="phone"                        android:maxLength="10" />
                </android.support.design.widget.TextInputLayout>

                <LinearLayout                    android:id="@+id/frag_register_layout_date"                    android:layout_width="match_parent"                    android:layout_height="wrap_content"                    android:layout_margin="@dimen/dp5"                    android:orientation="vertical">

                    <TextView                        android:id="@+id/frag_register_txt_lbl_birthdate"                        android:layout_width="wrap_content"                        android:layout_height="wrap_content"                        android:layout_gravity="left"                        android:gravity="left"                        android:layout_marginTop="@dimen/dp2"                        android:textColor="@color/dark_grey"                        android:text="@string/birth_Date" />

                    <TextView                        android:id="@+id/frag_register_txt_birth_date"                        style="@style/txtRegister"                        android:layout_width="match_parent"                        android:layout_height="wrap_content"                        android:layout_marginBottom="@dimen/dp5"                        android:layout_marginTop="@dimen/dp6"                        android:clickable="true"                        android:inputType="none"                        android:onClick="clickEvent"                        android:text="@string/birth_Date" />

                    <View                        android:layout_width="match_parent"                        android:layout_height="@dimen/dp1"                        android:background="@color/colorAccent" />
                </LinearLayout>

                <LinearLayout                    android:id="@+id/frag_register_layout_radio"                    android:layout_width="match_parent"                    android:layout_height="wrap_content"                    android:layout_marginTop="@dimen/dp15"                    android:orientation="horizontal">

                    <TextView                        android:id="@+id/frag_register_txt_gender"                        style="@style/txtRegister"                        android:layout_width="wrap_content"                        android:layout_height="wrap_content"                        android:layout_gravity="center"                        android:layout_marginLeft="@dimen/dp5"                        android:gravity="center"                        android:text="@string/gender" />

                    <RadioGroup                        android:id="@+id/frag_register_radio_group_gender"                        android:layout_width="match_parent"                        android:layout_height="wrap_content"                        android:layout_marginLeft="@dimen/dp20"                        android:orientation="horizontal">

                        <RadioButton                            android:id="@+id/frag_register_rbtn_male"                            style="@style/radioButtonStyle"                            android:checked="true"                            android:tag="0"                            android:text="@string/male" />

                        <RadioButton                            android:id="@+id/frag_register_rbtn_female"                            style="@style/radioButtonStyle"                            android:layout_marginLeft="@dimen/dp5"                            android:tag="1"                            android:text="@string/female" />
                    </RadioGroup>
                </LinearLayout>

                <Button                    android:id="@+id/frag_register_btn_signup"                    style="@style/btnStyle"                    android:layout_marginBottom="@dimen/dp10"                    android:layout_marginTop="@dimen/dp20"                    android:text="@string/sign_up" />
            </LinearLayout>
        </LinearLayout>
    </ScrollView>
</RelativeLayout>
5)common_appbar_layout.xml
==========================
<?xml version="1.0" encoding="utf-8"?><android.support.design.widget.AppBarLayout    xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    android:layout_width="match_parent"    android:layout_height="wrap_content"    android:theme="@style/AppTheme.AppBarOverlay">

    <android.support.v7.widget.Toolbar        android:id="@+id/toolbar"        android:layout_width="match_parent"        android:layout_height="?attr/actionBarSize"        android:background="?attr/colorPrimary"        app:popupTheme="@style/AppTheme.PopupOverlay" />

</android.support.design.widget.AppBarLayout>
6)content_contextual_menu.xml
==============================
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:orientation="vertical" android:layout_width="match_parent"    android:layout_height="match_parent">
    <android.support.v7.widget.RecyclerView        android:id="@+id/recycler_view"        android:layout_width="match_parent"        android:layout_height="match_parent"         />
</LinearLayout>
7)item_userlist.xml
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:id="@+id/ll_listitem"    android:orientation="vertical"    android:background="@color/list_item_normal_state"    android:layout_width="match_parent"    android:layout_height="wrap_content">

    <TextView        android:layout_marginTop="8dp"        android:layout_marginLeft="@dimen/activity_vertical_margin"        android:layout_marginRight="@dimen/activity_vertical_margin"        android:text="Gokul"        android:textSize="18dp"        android:textColor="#D35400"        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:id="@+id/tv_user_name" />

    <TextView        android:text="Manager"        android:textSize="16dp"        android:layout_marginTop="8dp"        android:layout_marginBottom="8dp"        android:layout_marginLeft="@dimen/activity_vertical_margin"        android:layout_marginRight="@dimen/activity_vertical_margin"        android:textColor="#AF7AC5"        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:id="@+id/tv_posting" />
    <View        android:id="@+id/view_divider"        android:layout_width="match_parent"        android:layout_height="0.5px"        android:background="@color/list_divider"        android:layout_alignParentBottom="true" />
</LinearLayout>

*menu
1)menu_common_activity.xml
==========================
<?xml version="1.0" encoding="utf-8"?><menu xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto">
    <item android:id="@+id/action_settings"        android:icon="@drawable/ic_settings"        android:title="@string/menu_item_settings"        app:showAsAction="always"/>

    <item android:id="@+id/action_exit"        android:icon="@drawable/ic_exit_to_app"        android:title="@string/menu_item_exit"        app:showAsAction="always"/>
</menu>
2)menu_multi_select.xml
======================
<?xml version="1.0" encoding="utf-8"?><menu xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto">

    <item android:id="@+id/action_delete"        android:icon="@drawable/ic_delete"        android:title="@string/menu_item_delete"        app:showAsAction="always"/>
</menu>
3)menu_setting_only.xml
=====================
<?xml version="1.0" encoding="utf-8"?><menu xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto">
    <item android:id="@+id/action_settings"        android:icon="@drawable/ic_settings"        android:title="@string/menu_item_settings"        app:showAsAction="always"/>
</menu>

*values
1)colors.xml
================
<?xml version="1.0" encoding="utf-8"?><resources>
    <color name="colorPrimary">#3F51B5</color>
    <color name="colorPrimaryDark">#303F9F</color>
    <color name="colorAccent">#FF4081</color>
    <!--selector colors-->    <color name="highlightWhiteColor">#80FFFFFF</color>
    <color name="highlightPressWhiteColor">#42FFFFFF</color>
    <color name="highlightBlackColor">#80000000</color>
    <color name="highlightPressBlackColor">#42000000</color>
    <color name="actionBarBgColor">#222222</color>
    <color name="white">#FFFFFF</color>
    <color name="black">#000000</color>
    <color name="dark_grey">#979797</color>
    <color name="list_divider">#979797</color>
    <color name="list_item_selected_state">#F4F6F6</color>
    <color name="list_item_normal_state">#FFFFFF</color>
</resources>
2)dimens.xml
============
<?xml version="1.0" encoding="utf-8"?><resources>
    <!-- Default screen margins, per the Android Design guidelines. -->    <dimen name="activity_horizontal_margin">16dp</dimen>
    <dimen name="activity_vertical_margin">16dp</dimen>

    <dimen name="dp05">0.5dp</dimen>
    <dimen name="dp1">1dp</dimen>
    <dimen name="dp2">2dp</dimen>
    <dimen name="dp3">3dp</dimen>
    <dimen name="dp4">4dp</dimen>
    <dimen name="dp5">5dp</dimen>
    <dimen name="dp6">6dp</dimen>
    <dimen name="dp7">7dp</dimen>
    <dimen name="_dp7">-7dp</dimen>
    <dimen name="dp8">8dp</dimen>
    <dimen name="dp9">9dp</dimen>
    <dimen name="dp10">10dp</dimen>
    <dimen name="dp11">11dp</dimen>
    <dimen name="dp12">12dp</dimen>
    <dimen name="dp14">14dp</dimen>
    <dimen name="dp15">15dp</dimen>
    <dimen name="dp16">16dp</dimen>
    <dimen name="dp20">20dp</dimen>
    <dimen name="dp22">22dp</dimen>
    <dimen name="dp25">25dp</dimen>
    <dimen name="dp27">27dp</dimen>
    <dimen name="dp30">30dp</dimen>
    <dimen name="dp32">32dp</dimen>
    <dimen name="dp33">33dp</dimen>
    <dimen name="dp35">35dp</dimen>
    <dimen name="dp36">36dp</dimen>
    <dimen name="dp37">37dp</dimen>
    <dimen name="dp38">38dp</dimen>
    <dimen name="dp39">39dp</dimen>
    <dimen name="dp40">40dp</dimen>
    <dimen name="dp43">43dp</dimen>
    <dimen name="dp45">45dp</dimen>
    <dimen name="dp50">50dp</dimen>
    <dimen name="dp52">52dp</dimen>
    <dimen name="dp55">55dp</dimen>
    <dimen name="dp60">60dp</dimen>
    <dimen name="dp65">65dp</dimen>
    <dimen name="dp67">67dp</dimen>
    <dimen name="dp70">70dp</dimen>
    <dimen name="dp73">73dp</dimen>
    <dimen name="dp75">75dp</dimen>
    <dimen name="dp76">76dp</dimen>
    <dimen name="dp80">80dp</dimen>
    <dimen name="dp85">85dp</dimen>
    <dimen name="dp100">100dp</dimen>
    <dimen name="dp110">110dp</dimen>
    <dimen name="dp117">117dp</dimen>
    <dimen name="dp116">116dp</dimen>
    <dimen name="dp136">136dp</dimen>
    <dimen name="dp170">170dp</dimen>
    <dimen name="dp180">180dp</dimen>
    <dimen name="dp185">185dp</dimen>
    <dimen name="dp190">190dp</dimen>
    <dimen name="dp200">200dp</dimen>
    <dimen name="dp203">203dp</dimen>
    <dimen name="dp220">220dp</dimen>
    <dimen name="dp230">230dp</dimen>
    <dimen name="dp130">130dp</dimen>
    <dimen name="dp90">90dp</dimen>
    <dimen name="dp240">240dp</dimen>
    <dimen name="dp270">270dp</dimen>
    <dimen name="dp280">280dp</dimen>
    <dimen name="dp150">150dp</dimen>
    <dimen name="dp120">120dp</dimen>
    <dimen name="dp300">300dp</dimen>
    <dimen name="dp315">315dp</dimen>
    <dimen name="dp320">320dp</dimen>
    <dimen name="dp340">340dp</dimen>
    <dimen name="dp166">166dp</dimen>

    <dimen name="sp7">7sp</dimen>
    <dimen name="sp8">8sp</dimen>
    <dimen name="sp9">9sp</dimen>
    <dimen name="sp10">10sp</dimen>
    <dimen name="sp11">11sp</dimen>
    <dimen name="sp12">12sp</dimen>
    <dimen name="sp13">13sp</dimen>
    <dimen name="sp14">14sp</dimen>
    <dimen name="sp16">16sp</dimen>
    <dimen name="sp17">17sp</dimen>
    <dimen name="sp15">15sp</dimen>
    <dimen name="sp18">18sp</dimen>
    <dimen name="sp20">20sp</dimen>
    <dimen name="sp22">22sp</dimen>
    <dimen name="sp23">23sp</dimen>
    <dimen name="sp24">24sp</dimen>
    <dimen name="sp26">26sp</dimen>
    <dimen name="ap27">27sp</dimen>
    <dimen name="sp28">28dp</dimen>
    <dimen name="sp30">30dp</dimen>
    <dimen name="sp32">32dp</dimen>
    <dimen name="sp34">34dp</dimen>
    <dimen name="sp36">36dp</dimen>
    <dimen name="sp38">38dp</dimen>

    <!--Actionbar layout-->    <dimen name="actionbarHeight">56dp</dimen> <!--default actionBarSize = 56-->    <dimen name="imgActionbarWidth">45dp</dimen>
    <dimen name="txtActionbarTextSize">18sp</dimen>
    <dimen name="txtActionbarButtonTextSize">16sp</dimen>
</resources>
3)strings.xml
=============
<resources>
    <string name="baseURL">https://api.rss2json.com/v1/</string>

    <string name="app_name">MultiSelectList</string>
    <!--login strings-->    <string name="login">Login</string>
    <string name="login_successfully">Login successful</string>
    <string name="remember_me">Remember me</string>
    <string name="sign_up">Sign Up</string>
    <string name="please_enter_valid_username_password">Please enter valid user name and password</string>
    <string name="do_you_want_to_logout">Are you sure do you want to logout?</string>
    <string name="email">Email</string>
    <string name="password">Password</string>

    <string name="menu_item_exit">Exit</string>
    <string name="menu_item_settings">Settings</string>
    <string name="menu_item_edit">Edit</string>
    <string name="menu_item_delete">Delete</string>

    <!--Progress dialog message-->    <string name="msgLoading">Loading...</string>
    <string name="msgFetchingData">Fetching data</string>
    <string name="msgGettingLocation">Getting location</string>
    <string name="txtLoading">Loading...</string>

    <!--Dialog buttons-->    <string name="btnYes">Yes</string>
    <string name="btnNo">No</string>
    <string name="btnOk">Ok</string>
    <string name="btnCancel">Cancel</string>

    <!--Common Variables and messages-->    <string name="msgInternetConnectionNotAvailable">Please check your internet connection and try again..! </string>
    <string name="msgProblemWithRequest">Response Timeout..! Please try again later.</string>
    <string name="msgEmoticonsNotAllowed">Emoticons are not allowed</string>
    <string name="msgProblemWithWeview">Please try again later.</string>
    <integer name="reqCodeGetFollowersList">125</integer>

    <!--Registration strings-->    <string name="first_name">First name</string>
    <string name="last_name">Last name</string>
    <string name="birth_Date">Birthdate</string>
    <string name="phone_number">Phone number</string>
    <string name="confirm_password">Confirm password</string>
    <string name="sign_in">Sign in</string>
    <string name="male">Male</string>
    <string name="female">Female</string>
    <string name="gender">Gender:</string>
    <string name="is_login">is_login</string>
    <string name="msgLogoutAlert">Are you sure you want to logout?</string>


</resources>
4)styles.xml
==============
<resources>

    <!-- Base application theme. -->    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <!-- Customize your theme here. -->        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
    </style>

    <style name="AppTheme.NoActionBar">
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
        <item name="android:windowDisablePreview">true</item>
        <item name="android:windowBackground">@null</item>
    </style>

    <!--  actionbar imageview style-->    <style name="imgActionBarStyle" parent="AppTheme">
        <item name="android:layout_width">@dimen/imgActionbarWidth</item>
        <item name="android:layout_height">match_parent</item>
        <item name="android:contentDescription">@string/app_name</item>
        <item name="android:scaleType">centerInside</item>
    </style>

    <style name="btnStyle" parent="AppTheme">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textColor">@color/actionBarBgColor</item>
        <item name="android:textSize">@dimen/sp18</item>
        <item name="android:background">@drawable/selecter_btn</item>
        <item name="android:gravity">center</item>
        <item name="android:clickable">true</item>
        <item name="android:onClick">clickEvent</item>
    </style>

    <style name="CommonTextInputLayout" parent="@style/TextAppearance.AppCompat">
        <item name="android:textColor">@color/dark_grey</item>
    </style>

    <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />

    <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />

    <!--EditText Style-->    <style name="edtRegister" parent="AppTheme">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textColor">@color/dark_grey</item>
        <item name="android:textSize">@dimen/sp16</item>
        <item name="android:maxLines">1</item>
        <item name="android:gravity">center_vertical</item>
    </style>

    <!--TextView menu style-->    <style name="txtMenu" parent="AppTheme">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">match_parent</item>
        <item name="android:textSize">@dimen/sp16</item>
        <item name="android:ellipsize">end</item>
        <item name="android:gravity">center</item>
        <item name="android:layout_gravity">center</item>
        <item name="android:clickable">true</item>
        <item name="android:onClick">clickEvent</item>
        <item name="android:layout_weight">1</item>
    </style>

    <!--TextView register style-->    <style name="txtRegister" parent="AppTheme">
        <item name="android:maxLines">1</item>
        <item name="android:textColor">@color/dark_grey</item>
        <item name="android:textSize">@dimen/sp16</item>
        <item name="android:ellipsize">end</item>
    </style>


    <style name="radioButtonStyle" parent="AppTheme">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textColor">@color/dark_grey</item>
        <item name="android:textSize">@dimen/sp16</item>
        <item name="android:maxLines">1</item>
        <item name="android:gravity">center_vertical</item>
        <item name="android:padding">0dp</item>
    </style>

    <style name="FullscreenTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowBackground">@null</item>
    </style>

    <style name="txtNoRecordsStyle" parent="AppTheme">
        <item name="android:textColor">#222222</item>
        <item name="android:textSize">@dimen/sp16</item>
        <item name="android:gravity">center</item>
        <item name="android:layout_gravity">center</item>
        <item name="android:padding">@dimen/dp10</item>
    </style>

</resources>

* Manifest.xml
==============
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"    package="com.multiselectList">

    <application        android:allowBackup="true"        android:icon="@mipmap/ic_launcher"        android:label="@string/app_name"        android:roundIcon="@mipmap/ic_launcher_round"        android:supportsRtl="true"        android:theme="@style/AppTheme.NoActionBar">

        <activity            android:name=".activity.LoginActivity"            android:configChanges="orientation|screenSize|screenLayout"            android:resizeableActivity="false"            android:screenOrientation="portrait"            android:theme="@style/AppTheme.NoActionBar"            android:windowSoftInputMode="adjustResize">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

        </activity>
    </application>

</manifest>

* build.gradle
==============
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"    package="com.multiselectList">

    <application        android:allowBackup="true"        android:icon="@mipmap/ic_launcher"        android:label="@string/app_name"        android:roundIcon="@mipmap/ic_launcher_round"        android:supportsRtl="true"        android:theme="@style/AppTheme.NoActionBar">

        <activity            android:name=".activity.LoginActivity"            android:configChanges="orientation|screenSize|screenLayout"            android:resizeableActivity="false"            android:screenOrientation="portrait"            android:theme="@style/AppTheme.NoActionBar"            android:windowSoftInputMode="adjustResize">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

        </activity>
    </application>

</manifest>