* 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:clickable="true" android:onClick="clickEvent" 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_home.xml
===================
<?xml version="1.0" encoding="utf-8"?><android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="false" tools:openDrawer="start"> <android.support.design.widget.NavigationView android:id="@+id/activity_home_nav_view" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="start" android:background="@android:color/transparent" android:fitsSystemWindows="false"> <include layout="@layout/sliding_menu_layout" /> </android.support.design.widget.NavigationView> <FrameLayout android:id="@+id/activity_home_container" android:layout_width="match_parent" android:layout_height="match_parent"/> </android.support.v4.widget.DrawerLayout>3) activity_imagecrop.xml
=========================
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_image_crop_frame_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/slidingMenuBgColor"> <com.credencys.myapplication.widgets.CropImageView android:id="@+id/activity_image_crop_crop_imageview" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:keepScreenOn="true" /> <FrameLayout android:id="@+id/activity_image_crop_frame_layout_buttons" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true"> <LinearLayout android:id="@+id/activity_image_crop_fullscreen_content_layout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom|center_horizontal" android:background="@color/slidingMenuBgColor" android:orientation="horizontal" tools:ignore="UselessParent"> <TextView android:id="@+id/activity_image_crop_btn_cancel" style="@style/txtCropView" android:text="@string/btn_cancel" /> <View android:layout_width="@dimen/dp05" android:layout_height="match_parent" android:layout_marginBottom="@dimen/dp10" android:layout_marginTop="@dimen/dp10" android:background="@color/white" /> <TextView android:id="@+id/activity_image_crop_btn_ok" style="@style/txtCropView" android:text="@string/btn_save" /> </LinearLayout> </FrameLayout> </FrameLayout>4)crop_image_view.xml
======================
<?xml version="1.0" encoding="utf-8"?><merge xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"> <ImageView android:id="@+id/crop_image_view_image" android:layout_width="match_parent" android:layout_height="match_parent" android:adjustViewBounds="true" android:scaleType="centerInside" tools:ignore="contentDescription"/> <com.credencys.myapplication.widgets.CropOverlayView android:id="@+id/crop_image_view_crop_overlay_view" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center"/> <ProgressBar android:id="@+id/crop_image_view_progress_bar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center"/> </merge>
5)custom_dialog_media_chooser.xml
============================
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/custom_dialog_media_chooser_layout_root" android:layout_width="@dimen/dp280" android:layout_height="wrap_content" android:layout_gravity="center" android:background="@android:color/transparent" android:layout_margin="@dimen/dp20" android:gravity="center" android:orientation="vertical" > <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:padding="@dimen/dp5" android:background="@drawable/profile_ractangle_box"> <TextView android:id="@+id/custom_dialog_media_chooser_txt_choose_from" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_margin="@dimen/dp20" android:gravity="center" android:text="Choose from" android:textColor="@color/white" android:textSize="@dimen/sp20" /> <TextView android:id="@+id/custom_dialog_media_chooser_txt_library" style="@style/txtDialogTextStyle" android:layout_marginBottom="@dimen/dp10" android:text="Gallery" /> <TextView android:id="@+id/custom_dialog_media_chooser_txt_camera" style="@style/txtDialogTextStyle" android:layout_marginTop="@dimen/dp5" android:layout_marginBottom="@dimen/dp10" android:text="Camera"/> <TextView android:id="@+id/custom_dialog_media_chooser_txt_cancel" style="@style/txtDialogTextStyle" android:layout_marginTop="@dimen/dp5" android:layout_marginBottom="@dimen/dp15" android:text="@string/btn_cancel" /> </LinearLayout> </LinearLayout>6)dialog_fullscreen_view.xml
==============================
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#DD000000"> <com.credencys.myapplication.widgets.TouchImageView android:id="@+id/dialog_fullscreen_view_image" android:layout_width="match_parent" android:layout_height="match_parent" android:adjustViewBounds="true" android:gravity="center" android:src="@mipmap/default_no_image" android:layout_centerInParent="true" android:scaleType="centerCrop" /> <ImageView android:id="@+id/dialog_fullscreen_view_image_img_close" android:layout_width="@dimen/dp50" android:layout_height="@dimen/dp50" android:scaleType="centerInside" android:layout_alignParentRight="true" android:layout_alignParentTop="true" android:contentDescription="@string/app_name" android:background="@drawable/background_selector_white" android:src="@mipmap/delete" android:padding="@dimen/dp10"/> </RelativeLayout>7)dialog_load_webview.xml
==================
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@android:color/transparent"> <WebView android:id="@+id/dialog_load_web_view" android:layout_width="match_parent" android:layout_height="match_parent" android:adjustViewBounds="true" android:layout_margin="@dimen/dp20" android:gravity="center" android:layout_centerInParent="true" android:scaleType="centerInside" android:background="@android:color/transparent" android:scrollbars="none" /> <ProgressBar android:id="@+id/dialog_load_web_view_progressbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:visibility="gone" android:progressDrawable="@android:drawable/progress_horizontal" android:layout_centerInParent="true"/> <ImageView android:id="@+id/dialog_load_web_view_img_close" android:layout_width="@dimen/dp50" android:layout_height="@dimen/dp50" android:scaleType="centerInside" android:contentDescription="@string/app_name" android:background="@drawable/background_selector_white" android:src="@mipmap/ic_close" android:layout_alignParentTop="true" android:layout_alignParentRight="true" android:layout_alignParentEnd="true" /> </RelativeLayout>8)fragment_dashboard.xml
=====================
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/frag_dashboard_layout_parent" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:layout_gravity="center" android:background="@color/white_wash" android:orientation="vertical"> <include layout="@layout/actionbar_layout" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/dp20" android:layout_marginBottom="@dimen/dp10" android:layout_gravity="center" android:gravity="center" android:layout_weight="1" android:orientation="horizontal"> <TextView android:id="@+id/frag_dashboard_txt_latest_update" style="@style/txtMenu" android:layout_marginLeft="@dimen/dp20" android:layout_marginRight="@dimen/dp10" android:background="@color/bg_latest_update" android:textColor="@color/bg_near_by_location" android:text="@string/latest_update" /> <TextView android:id="@+id/frag_dashboard_txt_near_by_location" style="@style/txtMenu" android:layout_marginRight="@dimen/dp20" android:layout_marginLeft="@dimen/dp10" android:background="@color/bg_near_by_location" android:textColor="@color/bg_latest_update" android:text="@string/near_by_location" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/dp10" android:layout_marginBottom="@dimen/dp20" android:layout_gravity="center" android:gravity="center" android:layout_weight="1" android:orientation="horizontal"> <TextView android:id="@+id/frag_dashboard_txt_expand_view" style="@style/txtMenu" android:layout_marginLeft="@dimen/dp20" android:layout_marginRight="@dimen/dp10" android:background="@color/bg_expand_view" android:textColor="@color/bg_may_gallery" android:text="@string/expand_view" /> <TextView android:id="@+id/frag_dashboard_txt_my_gallery" style="@style/txtMenu" android:layout_marginRight="@dimen/dp20" android:layout_marginLeft="@dimen/dp10" android:background="@color/bg_may_gallery" android:textColor="@color/bg_expand_view" android:text="@string/my_gallery" /> </LinearLayout> </LinearLayout>9)fragment_expandView
==================
<?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:background="@color/white_wash"> <include layout="@layout/actionbar_layout" /> <android.support.v7.widget.RecyclerView android:id="@+id/frag_expand_view_recyclerview" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/dp5" android:nestedScrollingEnabled="true" android:layout_weight="1" /></LinearLayout>
10_fragment_latest_update.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/fragment_latest_update_parent_view" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white_wash" android:orientation="vertical"> <include layout="@layout/actionbar_layout" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/tab_bottom_shadow"> <android.support.design.widget.TabLayout android:id="@+id/fragment_latest_update_tab_layout" style="@style/tabLayoutStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_gravity="top" /> </LinearLayout> <android.support.v4.view.ViewPager android:id="@+id/fragment_latest_update_view_pager" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1"> </android.support.v4.view.ViewPager> </LinearLayout>11)fragment_latest_update_category.xml
=======================================
<?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="match_parent" android:background="@color/white_wash" android:orientation="vertical"> <android.support.v7.widget.RecyclerView android:id="@+id/frag_latest_update_recycler_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/dp5" android:layout_weight="1" /> <TextView android:id="@+id/frag_latest_update_txt_norecords" style="@style/txtNoRecordsStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/dp5" android:layout_weight="1" android:text="@string/no_data_found" android:visibility="gone" /> </LinearLayout>
12)fragment_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>12)fragment_my_gallery.xml
=========================
<?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="match_parent" android:background="@color/white" android:orientation="vertical"> <include layout="@layout/actionbar_layout" /> <android.support.v7.widget.RecyclerView android:id="@+id/frag_my_gallery_recycler_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:clickable="true" android:onClick="clickEvent"/> <TextView android:id="@+id/frag_my_gallery_txt_norecords" style="@style/txtNoRecordsStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:text="@string/no_data_found" android:visibility="gone" /> </LinearLayout>13)fragemtn_near_by_location
==============================
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:background="@color/white_wash" android:layout_width="match_parent" android:layout_height="match_parent"> <include layout="@layout/actionbar_layout" /> <FrameLayout android:id="@+id/frag_near_by_location_container" android:layout_width="match_parent" android:layout_height="match_parent" /> </LinearLayout>
14)fragment_profile.xml
====================
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/frag_profile_parentView" 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_profile_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_profile_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_profile_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_profile_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_profile_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/frag_profile_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_profile_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_profile_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_profile_edt_email" style="@style/edtRegister" android:hint="@string/email" android:enabled="false" android:focusable="false" android:inputType="none" /> <View android:layout_width="match_parent" android:layout_height="@dimen/dp1" android:layout_marginTop="@dimen/_dp7" android:layout_marginLeft="@dimen/dp2" android:layout_marginRight="@dimen/dp2" android:background="@color/colorAccent" /> </android.support.design.widget.TextInputLayout> <android.support.design.widget.TextInputLayout android:id="@+id/frag_profile_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_profile_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_profile_layout_date" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/dp5" android:orientation="vertical"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="left" android:gravity="left" android:textColor="@color/dark_grey" android:text="@string/birth_Date" /> <TextView android:id="@+id/frag_profile_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_profile_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_profile_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_profile_radio_group" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dp20" android:orientation="horizontal"> <RadioButton android:id="@+id/frag_profile_rbtn_male" style="@style/radioButtonStyle" android:checked="true" android:tag="0" android:text="@string/male" /> <RadioButton android:id="@+id/frag_profile_rbtn_female" style="@style/radioButtonStyle" android:layout_marginLeft="@dimen/dp5" android:tag="1" android:text="@string/female" /> </RadioGroup> </LinearLayout> <Button android:id="@+id/frag_profile_btn_save" style="@style/btnStyle" android:layout_marginBottom="@dimen/dp10" android:layout_marginTop="@dimen/dp20" android:text="@string/save" /> </LinearLayout> </LinearLayout> </ScrollView> </RelativeLayout>
15)fragment_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>
16)list_item_expand_view.xml
==========================
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <android.support.v7.widget.CardView android:id="@+id/card_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:elevation="@dimen/dp4" card_view:cardCornerRadius="4dp" card_view:cardUseCompatPadding="true"> <LinearLayout android:id="@+id/list_item_expand_view_lytmain" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/white" android:clickable="true" android:onClick="clickEvent" android:orientation="vertical"> <ImageView android:id="@+id/list_item_expand_view_imageview" android:layout_width="match_parent" android:layout_height="@dimen/dp150" android:scaleType="centerCrop" android:src="@mipmap/expandview_default_image" /> <TextView android:id="@+id/list_item_expand_view_title" style="@style/txtTitle" android:layout_width="match_parent" android:layout_height="wrap_content" android:maxLines="2" android:paddingLeft="@dimen/dp5" android:paddingRight="@dimen/dp5" android:paddingTop="@dimen/dp5" android:text="title" /> <TextView android:id="@+id/list_item_expand_view_description" style="@style/txtDescription" android:layout_width="match_parent" android:layout_height="wrap_content" android:maxLines="2" android:paddingBottom="@dimen/dp5" android:paddingLeft="@dimen/dp5" android:paddingRight="@dimen/dp5" android:text="description" /> </LinearLayout> </android.support.v7.widget.CardView> </RelativeLayout>
17)list_item_latest_update.xml
===============================
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <android.support.v7.widget.CardView android:id="@+id/card_view" card_view:cardCornerRadius="4dp" card_view:cardUseCompatPadding="true" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:elevation="@dimen/dp4"> <LinearLayout android:id="@+id/list_item_latest_update_layout_main" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/white" android:clickable="true" android:layout_marginTop="@dimen/dp5" android:layout_marginBottom="@dimen/dp5" android:layout_marginLeft="@dimen/dp10" android:layout_marginRight="@dimen/dp10" android:onClick="clickEvent" android:orientation="vertical"> <TextView android:id="@+id/list_item_latest_update_txt_title" style="@style/txtTitle" android:layout_width="match_parent" android:layout_height="wrap_content" android:maxLines="2" android:text="title" /> <TextView android:id="@+id/list_item_latest_update_txt_description" style="@style/txtDescription" android:layout_width="match_parent" android:layout_height="wrap_content" android:maxLines="2" android:text="description" /> </LinearLayout> </android.support.v7.widget.CardView> </LinearLayout>18)list_item_my_gallery.xml
===========================
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/list_item_my_gallery_layout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@color/white" android:orientation="vertical"> <RelativeLayout android:id="@+id/list_item_my_gallery_rlyt_gallery" android:layout_width="match_parent" android:layout_height="match_parent" android:clickable="true" android:onClick="clickEvent" android:layout_margin="@dimen/dp05"> <ImageView android:id="@+id/list_item_my_gallery_img_gallery" android:layout_width="match_parent" android:layout_height="match_parent" android:src="@mipmap/gallery_default_image" android:scaleType="centerCrop"/> </RelativeLayout> </LinearLayout>
19)menu_list_item
====================
<?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="wrap_content" android:clickable="true" android:background="@drawable/background_selector_white" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="@dimen/dp45" android:gravity="center_vertical" android:orientation="horizontal"> <ImageView android:id="@+id/menu_list_icon_img_icon" android:layout_width="@dimen/dp40" android:layout_height="wrap_content" android:layout_marginRight="@dimen/dp10" android:scaleType="centerInside" android:src="@drawable/selecter_home" /> <TextView android:id="@+id/menu_list_icon_txt_item" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:gravity="center" android:textColor="@color/white" android:textSize="@dimen/sp15" android:textStyle="bold" /> </LinearLayout> <View android:id="@+id/menu_list_icon_devider_menu" android:layout_width="wrap_content" android:layout_height="@dimen/dp05" android:layout_marginLeft="@dimen/dp50" android:clickable="false" android:focusable="false" android:background="@color/divider_menu" /> </LinearLayout>20)sliding_menu_layout.xml
========================
<?xml version="1.0" encoding="utf-8"?><LinearLayout 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="match_parent" android:background="@color/slidingMenuBgColor" android:orientation="vertical" android:paddingLeft="@dimen/dp15"> <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:orientation="vertical"> <LinearLayout android:id="@+id/sliding_menu_lyt_profile" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dp20" android:layout_marginRight="@dimen/dp20" android:layout_marginTop="@dimen/dp30" android:gravity="center" android:clickable="true" android:onClick="clickEvent" android:orientation="vertical"> <com.credencys.myapplication.widgets.ShapedImageView android:id="@+id/sliding_menu_image_user" android:layout_width="@dimen/dp116" android:layout_height="@dimen/dp116" android:scaleType="centerCrop" android:src="@mipmap/ic_default_profile" app:shape_mode="circle" /> <TextView android:id="@+id/sliding_menu_txt_user_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/dp5" android:maxLines="2" android:maxLength="41" android:gravity="center" android:text="" android:textColor="#FFFFFF" android:textSize="@dimen/sp23" /> </LinearLayout> <android.support.v7.widget.RecyclerView android:id="@+id/sliding_menu_recycler_view_sliding_menu" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/dp20" android:layout_weight="1" /> </LinearLayout> </android.support.v4.widget.NestedScrollView> </LinearLayout>*values
1)attrs.xml
===========
<?xml version="1.0" encoding="utf-8"?><resources> <declare-styleable name="ShapedImageView"> <attr name="shape_mode" format="enum"> <enum name="round_rect" value="1" /> <enum name="circle" value="2" /> </attr> <attr name="round_radius" format="dimension" /> <attr name="stroke_width" format="dimension" /> <attr name="stroke_color" format="color|reference" /> </declare-styleable> <!--For cropping functionality--> <declare-styleable name="CropImageView"> <attr name="guidelines"> <enum name="on" value="2" /> <enum name="onTouch" value="1" /> <enum name="off" value="0" /> </attr> <attr name="scaleType"> <enum name="centerInside" value="0" /> <enum name="fitCenter" value="1" /> </attr> <attr name="cropShape"> <enum name="rectangle" value="0" /> <enum name="oval" value="1" /> </attr> <attr name="fixAspectRatio" format="boolean" /> <attr name="aspectRatioX" format="integer" /> <attr name="aspectRatioY" format="integer" /> <attr name="snapRadius" format="float" /> <attr name="showProgressBar" format="boolean" /> </declare-styleable> <!--For expand collapse animation--> <declare-styleable name="ExpandableLayout"> <attr name="expDuration" format="integer|reference"/> <attr name="expWithParentScroll" format="boolean"/> <attr name="expExpandScrollTogether" format="boolean"/> </declare-styleable> </resources>2)colors.xml==============
<?xml version="1.0" encoding="utf-8"?> <resources> <color name="colorPrimary">#222222</color> <color name="colorPrimaryDark">#222222</color> <color name="colorAccent">#979797</color> <color name="white">#FFFFFF</color> <color name="black">#000000</color> <color name="dark_grey">#979797</color> <color name="darkerer_grey">#585858</color> <color name="actionBarBgColor">#222222</color> <color name="slidingMenuBgColor">#202427</color> <color name="divider_menu">#33cdcdcd</color> <color name="menu_selected_color">#00A0E8</color> <color name="white_wash">#F2F3F4</color> <!--selector colors--> <color name="highlightWhiteColor">#80FFFFFF</color> <color name="highlightPressWhiteColor">#42FFFFFF</color> <color name="highlightBlackColor">#80000000</color> <color name="highlightPressBlackColor">#42000000</color> <!--dashboard colors--> <color name="bg_latest_update">#bfbfbf</color> <color name="bg_near_by_location">#404040</color> <color name="bg_expand_view">#262626</color> <color name="bg_may_gallery">#808080</color> <!--latest update tabs color--> <color name="tabBackgroundColor">#F8F8F8</color> <color name="tabTextColorSelected">#00A0E8</color> <color name="tabTextColorNormal">#CBCBCB</color> <color name="tabDividerColor">#CCCCCC</color></resources>
3)dimens.xml=============
<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>4)string.xml
=============
<resources> <string name="app_name">PIP</string> <!-- web services --> <string name="baseURL">https://api.rss2json.com/v1/</string> <string name="top_stories">api.json?rss_url=http%3A%2F%2Ftimesofindia.indiatimes.com%2Frssfeedstopstories.cms</string> <string name="cricket">api.json?rss_url=http%3A%2F%2Ftimesofindia.indiatimes.com%2Frssfeeds%2F4719161.cms</string> <string name="business">api.json?rss_url=http%3A%2F%2Ftimesofindia.indiatimes.com%2Frssfeeds%2F1898055.cms</string> <string name="technology">api.json?rss_url=http%3A%2F%2Ftimesofindia.indiatimes.com%2Frssfeeds%2F5880659.cms</string> <string name="life_style">api.json?rss_url=http%3A%2F%2Ftimesofindia.indiatimes.com%2Frssfeeds%2F2886704.cms</string> <!--map url--> <string name="baseMapURL">https://maps.googleapis.com/maps/api/place/</string> <!--Request Code--> <integer name="reqCodeTopStory">101</integer> <integer name="reqCodeCricket">102</integer> <integer name="reqCodeBusiness">103</integer> <integer name="reqCodeTechnology">104</integer> <integer name="reqCodeLifeStyle">105</integer> <integer name="reqCodeNearByLocation">106</integer> <string name="no_data_found">No data found</string> <!--Dialog buttons--> <string name="btnYes">Yes</string> <string name="btnNo">No</string> <string name="btnOk">Ok</string> <string name="btnCancel">Cancel</string> <string name="coming_soon">Coming soon</string> <!--ActionBar Text--> <string name="registration">Registration</string> <integer name="drawerAnimationDuration">300</integer> <string name="dashboard">Dashboard</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> <!--preference variable--> <string name="pref_is_login">PREF_IS_LOGIN</string> <string name="pref_remember_me">PREF_REMEMBER_ME</string> <string name="prefUserLatitude">userLatitude</string> <string name="prefUserLongitude">userLongitude</string> <string name="prefLoginUserData">prefLoginUserData</string> <!--Bundle params--> <string name="extraFromScreen">From Screen</string> <string name="extraMenu">menu</string> <string name="extraDashBoard">dashboard</string> <!--Registration strings--> <string name="first_name">First name</string> <string name="last_name">Last name</string> <string name="birth_Date">Birthdate</string> <string name="email">Email</string> <string name="password">Password</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> <!--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> <!--Registration validation--> <string name="please_select_image">Please choose profile image</string> <string name="please_enter_first_name">Please enter first name</string> <string name="please_enter_last_name">Please enter last name</string> <string name="please_enter_birth_date">Please enter birth date</string> <string name="please_enter_valid_email">Please enter valid email address</string> <string name="please_enter_email">Please enter email address</string> <string name="email_already_exists">Email id already exists</string> <string name="register_successfully">Register successfully</string> <string name="please_enter_password">Please enter password</string> <string name="please_enter_confirm_password">Please enter confirm password</string> <string name="password_is_too_short">Password should be atleast 8 character long.</string> <string name="password_does_not_match">Password and confirm password does not match</string> <string name="please_enter_valid_phone_number">Please enter valid phone number</string> <string name="please_go_to_setting">Pleasse go to setting</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> <!--menu--> <string name="navigation_drawer_open">NavigationDrawerOpen</string> <string name="navigation_drawer_close">NavigationDrawerClose</string> <string name="latest_update">Latest Updates</string> <string name="near_by_location">Near By Locations</string> <string name="expand_view">Expand View</string> <string name="my_gallery">My Gallery</string> <string name="notification">Notification</string> <string name="search">Search</string> <string name="setting">Settings</string> <!--Directory Names--> <string name="dirSettings">Settings</string> <string name="dirMedia">Media</string> <string name="dirImages">Images</string> <string name="dirVideos">Videos</string> <!--image croping--> <string name="btn_cancel">Cancel</string> <string name="btn_save">Save</string> <string name="msgFailedToLoadImage">Failed to load image!</string> <string name="msgImageCropFailed">Image crop failed</string> <!--category one --> <string name="fragment_position">fragment_position</string> <!--Google Map Key--> <string name="google_maps_key" templateMergeStrategy="preserve" translatable="false">AIzaSyA1QGdZZL8C9tQV96adYKbAzcM0yH3N4o4</string> <string-array name="menu_items"> <item>Dashboard</item> <item>Latest Updates</item> <item>Near By Locations</item> <item>Expand View</item> <item>My Gallery</item> <item>Logout</item> </string-array> <integer-array name="menu_icons"> <item>@mipmap/ic_home</item> <item>@mipmap/ic_latest_update</item> <item>@mipmap/ic_map</item> <item>@mipmap/ic_expand_view</item> <item>@mipmap/ic_gallery</item> <item>@mipmap/ic_logout</item> </integer-array> <integer-array name="menu_icons_selected"> <item>@mipmap/ic_home_press</item> <item>@mipmap/ic_latest_update_press</item> <item>@mipmap/ic_map_press</item> <item>@mipmap/ic_expand_view_press</item> <item>@mipmap/ic_gallery_press</item> <item>@mipmap/ic_logout_press</item> </integer-array> <!-- profile strings --> <string name="save">Save</string> <string name='profile'>Profile</string> <!--categoryone --> <array name="categoryTabNames"> <item>TopStories</item> <item>Cricket</item> <item>Business</item> <item>Technology</item> <item>Life & Style</item> </array></resources>
5)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="DialogTheme" parent="@android:style/Theme.Holo.Light.Dialog"> <item name="android:windowBackground">@android:color/transparent</item> <item name="android:windowNoTitle">true</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> <style name="CommonTextInputLayout" parent="@style/TextAppearance.AppCompat"> <item name="android:textColor">@color/dark_grey</item> </style> <!--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="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="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> <!--list item styles--> <style name="txtTitle" parent="AppTheme"> <item name="android:textColor">@color/darkerer_grey</item> <item name="android:textSize">@dimen/sp14</item> <item name="android:gravity">left</item> <item name="android:ellipsize">end</item> </style> <style name="txtDescription" parent="AppTheme"> <item name="android:textColor">@color/dark_grey</item> <item name="android:textSize">@dimen/sp14</item> <item name="android:gravity">left</item> <item name="android:ellipsize">end</item> </style> <!--crop layout text style--> <style name="txtCropView" parent="AppTheme"> <item name="android:layout_width">0dp</item> <item name="android:layout_height">@dimen/dp45</item> <item name="android:gravity">center</item> <item name="android:layout_weight">0.5</item> <item name="android:background">@drawable/background_selector_white</item> <item name="android:textAllCaps">false</item> <item name="android:textSize">@dimen/sp14</item> <item name="android:textColor">@android:color/white</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> <!--dialog text style--> <style name="txtDialogTextStyle" parent="AppTheme"> <item name="android:layout_width">fill_parent</item> <item name="android:layout_height">wrap_content</item> <item name="android:layout_gravity">bottom|center</item> <item name="android:layout_marginLeft">@dimen/dp15</item> <item name="android:layout_marginRight">@dimen/dp15</item> <item name="android:padding">@dimen/dp5</item> <item name="android:background">@drawable/btn_media_chooser</item> <item name="android:textAllCaps">false</item> <item name="android:textSize">@dimen/sp16</item> <item name="android:textColor">@color/black</item> <item name="android:gravity">center</item> </style> <!--tab style--> <style name="tabLayoutStyle" parent="Widget.Design.TabLayout"> <item name="tabGravity">fill</item> <item name="tabMode">scrollable</item> <item name="tabIndicatorColor">@color/tabTextColorSelected</item> <item name="tabPaddingEnd">10dp</item> <item name="tabPaddingStart">10dp</item> <item name="tabPaddingBottom">0dp</item> <item name="tabPaddingTop">0dp</item> <item name="tabTextAppearance">@style/tabLayoutTextStyle</item> </style> <style name="tabLayoutTextStyle" parent="TextAppearance.Design.Tab"> <item name="android:textSize">14sp</item> <item name="textAllCaps">false</item> </style></resources>
<?xml version="1.0" encoding="utf-8"?>*res=>;xml1)provider_paths.xml
<?xml version="1.0" encoding="utf-8"?><!--For Nougat to get path--><paths> <external-path name="external_files" path="."/> </paths>
1)slide_in_left.xml
=============================
<translate xmlns:android="http://schemas.android.com/apk/res/android" android:duration="@android:integer/config_mediumAnimTime" android:fromXDelta="-100%" android:interpolator="@android:anim/decelerate_interpolator" android:toXDelta="0%" />
2)slide_in_right.xml
<?xml version="1.0" encoding="utf-8"?><translate xmlns:android="http://schemas.android.com/apk/res/android" android:duration="@android:integer/config_mediumAnimTime" android:fromXDelta="100%" android:interpolator="@android:anim/decelerate_interpolator"android:toXDelta="0%" />
3)slide_out_left.xml========================
<?xml version="1.0" encoding="utf-8"?><translate xmlns:android="http://schemas.android.com/apk/res/android" android:duration="@android:integer/config_mediumAnimTime" android:fromXDelta="0" android:interpolator="@android:anim/decelerate_interpolator"android:toXDelta="-100%" />
5)slide_down.xml
4)slide_out_right.xml
=====================
<?xml version="1.0" encoding="utf-8"?> <translate xmlns:android="http://schemas.android.com/apk/res/android" android:duration="@android:integer/config_mediumAnimTime" android:fromXDelta="0" android:interpolator="@android:anim/decelerate_interpolator" android:toXDelta="100%" />
=============
<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android" android:fillAfter="true"> <scale android:duration="500" android:fromXScale="1.0" android:fromYScale="0.0" android:interpolator="@android:anim/linear_interpolator" android:toXScale="1.0" android:toYScale="1.0" /></set>
6)slide_up.xml
============
<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android" android:fillAfter="true" > <scale android:duration="500" android:fromXScale="1.0" android:fromYScale="1.0" android:interpolator="@android:anim/linear_interpolator" android:toXScale="1.0" android:toYScale="0.0" /></set>
*res=>drawable
1)background_select0r_white.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_black.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_media_chooser.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/dp10" android:topRightRadius="@dimen/dp10" android:bottomRightRadius="@dimen/dp10" android:bottomLeftRadius="@dimen/dp10" /> <stroke android:width="1dp" android:color="@android:color/white" /> <solid android:color="@android:color/white"/> </shape>4)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>5_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>
6)profile_ractangle_box.xml
==================
=========================
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <solid android:color="@color/slidingMenuBgColor" /> <corners android:bottomLeftRadius="@dimen/dp5" android:bottomRightRadius="@dimen/dp5" android:topLeftRadius="@dimen/dp5" android:topRightRadius="@dimen/dp5" /> </shape>7)selecter_btn.xml
<?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>
8)selecter_home.xml*drawable-v21===================<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@mipmap/ic_home_press" android:state_pressed="true"></item> <item android:drawable="@mipmap/ic_home"></item> </selector>9)tab_bottom_shadow.xml==========================<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape> <padding android:bottom="0dp" android:left="0dp" android:right="0dp" android:top="0dp"/> <solid android:color="#00CCCCCC"/> </shape> </item> <item> <shape> <padding android:bottom="0dp" android:left="0dp" android:right="0dp" android:top="0dp"/> <solid android:color="#10CCCCCC"/> </shape> </item> <item> <shape> <padding android:bottom="0dp" android:left="0dp" android:right="0dp" android:top="0dp"/> <solid android:color="#20CCCCCC"/> </shape> </item> <item> <shape> <padding android:bottom="0dp" android:left="0dp" android:right="0dp" android:top="0dp"/> <solid android:color="#30CCCCCC"/> </shape> </item> <!--<item> <shape> <padding android:bottom="1dp" android:left="1dp" android:right="1dp" android:top="1dp"/> <solid android:color="#50CCCCCC"/> </shape> </item>--> <!-- Background --> <item> <shape> <solid android:color="@color/tabBackgroundColor"/> <!--<corners android:radius="3dp"/>--> </shape> </item> </layer-list>
1)background_selecter_black.xml============================<?xml version="1.0" encoding="utf-8"?> <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="@color/highlightBlackColor"> <item android:id="@android:id/mask" > <!--<shape android:shape="rectangle"> <solid android:color="#FFFFFF" /> </shape>--> <color android:color="@color/highlightBlackColor" /> </item> </ripple>2)background_selecter_white.xml===================================
<?xml version="1.0" encoding="utf-8"?><ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="@color/highlightWhiteColor"> <item android:id="@android:id/mask" > <!--<shape android:shape="rectangle"> <solid android:color="#FFFFFF" /> </shape>--> <color android:color="@color/highlightWhiteColor" /> </item></ripple>
manifest.xml===============
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.credencys.myapplication"> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.CAMERA" /> <uses-feature android:name="android.hardware.camera" android:required="false" /> <application android:name=".MyApplication" android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme.NoActionBar"> <activity android:name=".activity.HomeActivity" 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> <activity android:name=".activity.ImageCropActivity" android:configChanges="orientation|keyboardHidden|screenSize" android:screenOrientation="portrait" android:resizeableActivity="false" android:theme="@style/FullscreenTheme" /> <!--for map functionality--> <meta-data android:name="com.google.android.geo.API_KEY" android:value="@string/google_maps_key" /> <!--for api level 25 and up for camera functionality--> <provider android:name="android.support.v4.content.FileProvider" android:authorities="${applicationId}.provider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths"/> </provider> </application></manifest>
gradle.java================apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "25.0.2" defaultConfig { applicationId "com.credencys.myapplication" minSdkVersion 16 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:25.0.1' testCompile 'junit:junit:4.12' compile 'com.android.support.test.espresso:espresso-core:2.2.2' compile 'com.google.android.gms:play-services-location:9.8.0' compile 'com.android.support:design:25.0.1' testCompile 'junit:junit:4.12' compile 'com.android.support:recyclerview-v7:25.0.1' // Map compile 'com.google.android.gms:play-services-maps:9.8.0' //Retrofit compile 'com.google.code.gson:gson:2.6.2' compile 'com.squareup.retrofit2:retrofit:2.1.0' compile 'com.squareup.retrofit2:converter-gson:2.1.0' compile 'com.squareup.okhttp3:okhttp:3.3.1' compile 'com.squareup.okhttp3:logging-interceptor:3.3.1' compile 'com.squareup.okhttp3:okhttp-urlconnection:3.3.1' compile 'org.apache.commons:commons-lang3:3.5' //Image loading compile 'com.github.bumptech.glide:glide:3.7.0' //carview compile 'com.android.support:cardview-v7:+'}project gradle
================// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() } } task clean(type: Delete) { delete rootProject.buildDir }
No comments:
Post a Comment