Tuesday 25 June 2019

ListMapTest Res

*** anim ****
============
1) slide_in_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="-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%" />

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%" />

*** drawable ***
=================
5)background_selecter_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>

6)background_selecter_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>

7)btn_normal.xml
===================
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"    android:shape="rectangle">    <gradient        android:startColor="@color/end_color"        android:endColor="@color/start_color"        android:angle="180"/>
    <corners        android:radius="@dimen/dp30" /></shape>

8)btn_selected.xml
==================
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"    android:shape="rectangle">    <gradient        android:startColor="@color/start_color"        android:endColor="@color/end_color"        android:angle="180"/>
    <corners        android:radius="@dimen/dp30" />
</shape>

9)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>

10)activity_home.xml
=====================
<?xml version="1.0" encoding="utf-8"?><layout 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">
    <LinearLayout        android:layout_width="match_parent"        android:layout_height="match_parent"        android:background="@color/white"        android:orientation="vertical">
        <include            android:id="@+id/toolbar"            layout="@layout/toolbar_layout"            android:layout_width="match_parent"            android:layout_height="@dimen/_50sdp"            android:layout_alignParentTop="true" />
        <android.support.v7.widget.RecyclerView            android:id="@+id/recycler_view"            android:layout_width="match_parent"            android:layout_height="match_parent"            android:layout_margin="@dimen/_5sdp"            android:layout_gravity="center"            android:orientation="vertical" />
        <LinearLayout            android:id="@+id/lyt_no_data"            android:layout_width="match_parent"            android:layout_height="match_parent"            android:layout_gravity="center"            android:gravity="center"            android:orientation="vertical"            android:visibility="visible">
            <TextView                android:id="@+id/txt_no_data"                android:layout_width="match_parent"                android:layout_height="wrap_content"                android:layout_marginBottom="@dimen/_10sdp"                android:text="@string/no_data_found" />        </LinearLayout>

        <LinearLayout            android:id="@+id/lytLoader"            android:layout_width="match_parent"            android:layout_height="match_parent"            android:background="@android:color/transparent"            android:gravity="center"            android:visibility="gone">
            <com.wang.avi.AVLoadingIndicatorView                android:id="@+id/avi"                style="@style/AVLoadingIndicatorView"                android:layout_width="wrap_content"                android:layout_height="wrap_content"                app:indicatorColor="@color/colorPrimary"                app:indicatorName="BallPulseIndicator" />        </LinearLayout>    </LinearLayout>

</layout>

11)activity_map.xml
===================
<?xml version="1.0" encoding="utf-8"?><layout xmlns:android="http://schemas.android.com/apk/res/android">
    <RelativeLayout        android:layout_width="match_parent"        android:layout_height="match_parent"        android:layout_gravity="top"        android:background="@color/white"        android:gravity="top"        android:orientation="vertical">
        <include            android:id="@+id/toolbar"            layout="@layout/toolbar_layout"            android:layout_width="match_parent"            android:layout_height="@dimen/_50sdp"            android:layout_alignParentTop="true" />
        <LinearLayout            android:layout_width="match_parent"            android:layout_height="wrap_content"            android:layout_below="@+id/toolbar"            android:weightSum="1">
            <FrameLayout                android:id="@+id/mapContainer"                android:layout_width="match_parent"                android:layout_height="match_parent" />        </LinearLayout>    </RelativeLayout></layout>
12)item_list.xml
================
<?xml version="1.0" encoding="utf-8"?><layout xmlns:android="http://schemas.android.com/apk/res/android">
    <LinearLayout        android:id="@+id/lytMain"        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:orientation="horizontal">
        <ImageView            android:id="@+id/imgView"            android:layout_width="@dimen/_50sdp"            android:layout_height="@dimen/_50sdp"            android:contentDescription="@string/todo"            android:padding="@dimen/_5sdp"            android:scaleType="centerCrop"            android:src="@mipmap/ic_launcher" />
        <LinearLayout            android:layout_width="match_parent"            android:layout_height="wrap_content"            android:layout_gravity="center"            android:layout_marginRight="@dimen/_10sdp"            android:gravity="center"            android:orientation="vertical">
            <TextView                android:id="@+id/txt1"                android:layout_width="match_parent"                android:layout_height="wrap_content"                android:layout_marginLeft="@dimen/_5sdp"                android:textColor="@color/colorPrimary"                android:textSize="@dimen/_14ssp" />
        </LinearLayout>    </LinearLayout></layout>
13)load_more_layout.xml
=======================
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:tools="http://schemas.android.com/tools"    android:id="@+id/load_more_rl"    android:layout_width="match_parent"    android:layout_height="wrap_content"    android:gravity="center"    android:orientation="horizontal"    android:padding="@dimen/_10sdp">
    <ProgressBar        android:id="@+id/load_more_pb"        android:layout_width="@dimen/_30sdp"        android:layout_height="@dimen/_30sdp"        android:layout_marginRight="@dimen/_10sdp"        android:indeterminate="true"        tools:targetApi="lollipop" />
    <TextView        android:id="@+id/txtLoading"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:text="@string/txtLoading"        android:textColor="@color/black"        android:textSize="@dimen/_16ssp" />
</LinearLayout>
14)toolbar_layout.xml
=======================
<?xml version="1.0" encoding="utf-8"?><layout 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.support.v7.widget.Toolbar        android:id="@+id/toolbar"        android:layout_width="match_parent"        android:layout_height="@dimen/_50sdp"        android:background="@color/colorPrimary"        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/rlyt_toolbar_main"            android:layout_width="match_parent"            android:layout_height="match_parent">
            <ImageView                android:id="@+id/img_back"                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:layout_centerVertical="true"                android:background="@drawable/background_selector_white"                android:clickable="true"                android:contentDescription="@string/app_name"                android:padding="@dimen/_15sdp"                android:scaleType="centerInside"                android:src="@drawable/left_arrow" />
            <RelativeLayout                android:id="@+id/rlyt_title"                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:layout_centerInParent="true">
                <TextView                    android:id="@+id/toolbar_title"                    style="bold"                    fontPath="fonts/Roboto-Bold.ttf"                    android:layout_width="wrap_content"                    android:layout_height="wrap_content"                    android:gravity="center"                    android:inputType="textNoSuggestions"                    android:singleLine="true"                    android:text="@string/dashboard"                    android:textColor="@color/white"                    android:textSize="@dimen/_16ssp" />
                <TextView                    android:id="@+id/toolbar_sub_title"                    fontPath="fonts/Roboto-Regular.ttf"                    android:layout_width="wrap_content"                    android:layout_height="wrap_content"                    android:layout_below="@id/toolbar_title"                    android:layout_centerHorizontal="true"                    android:gravity="center"                    android:inputType="textNoSuggestions"                    android:singleLine="true"                    android:text=""                    android:textColor="@color/white"                    android:textSize="@dimen/_14ssp"                    android:visibility="gone" />
            </RelativeLayout>        </RelativeLayout>    </android.support.v7.widget.Toolbar></layout>
15)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>    <color name="black">#000000</color>    <color name="white">#FFFFFF</color>    <color name="gray">#999999</color>    <color name="divider_color">#e7e7e7</color>    <color name="section_color">#F1F1F1</color>    <color name="head_number_color">#99727272</color>    <color name="side_bar_color">#999E9E9E</color>
    <!--Selector colors-->    <color name="highlightWhiteColor">#80FFFFFF</color>    <color name="highlightPressWhiteColor">#42FFFFFF</color>    <color name="highlightBlackColor">#80000000</color>    <color name="highlightPressBlackColor">#20000000</color>    <color name="transPerent_start_color">#20000000</color></resources>

16)integers.xml
<?xml version="1.0" encoding="utf-8"?><resources>    <integer name="reqCodeDataList">101</integer>
</resources>

17)string.xml
==============
<resources>    <string name="app_name">My Application</string>    <string name="prefAuthKey">prefAuthKey</string>    <string name="prefUserId">prefUserId</string>    <string name="btnOk">Ok</string>    <string name="msgLoading">Loading</string>
    <!--common string-->    <string name="msgInternetConnectionNotAvailable">Internet Connection not available</string>    <string name="msgProblemWithRequest">Response Timeout..! Please try again later.</string>    <string name="txtLoading">Loading</string>    <string name="todo">TODO</string>
    <string name="baseURL">http://180.211.111.85/guruji/api/web/v1/</string>    <string name="no_data_found">No data found</string>    <string name="dashboard">Dashboard</string>
    <string name="msgGettingLocation">Getting location...</string>    <string name="google_maps_key" templateMergeStrategy="preserve" translatable="false">AIzaSyBT4ksR3hCOLBwNiTHfxRLK3rL8D7sZsWY</string>
    <string name="map">Map</string></resources>
18)styles.xml
=============
<resources>
    <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>        <item name="android:windowActionBarOverlay">true</item>        <item name="android:alertDialogTheme">@style/AlertDialogTheme</item>    </style>
    <style name="AlertDialogTheme" parent="Theme.AppCompat.Light.Dialog.Alert">        <item name="colorPrimary">@color/colorPrimary</item>        <item name="colorPrimaryDark">@color/colorPrimary</item>        <item name="colorAccent">@color/colorPrimary</item>    </style>
    <!-- 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/colorPrimary</item>        <item name="colorAccent">@color/colorPrimary</item>    </style>
</resources>

18) build.gradle(project)
==================
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.2'        classpath "io.realm:realm-gradle-plugin:5.4.1"        classpath 'com.google.gms:google-services:4.1.0'
        // NOTE: Do not place your application dependencies here; they belong        // in the individual module build.gradle files    }
}

ext {

    rxjava_lib_version = '2.0.2'    rxpermission_lib_version = '0.9.1'    sdp_lib_version = '1.0.5'}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

19)build.gradle(app)
====================
apply plugin: 'com.android.application'apply plugin: 'realm-android'
android {
    compileSdkVersion 27    defaultConfig {
        applicationId "com.testdemo"        minSdkVersion 19        targetSdkVersion 27        versionCode 1        versionName "1.0"        multiDexEnabled true//      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"    }

    buildTypes {
        release {
            minifyEnabled false            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'        }
    }

    dataBinding {
        enabled = true;
    }

    realm {
        syncEnabled = true;
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:27.0.2'    implementation 'com.android.support.constraint:constraint-layout:1.1.3'//    testImplementation 'junit:junit:4.12'//    androidTestImplementation 'com.android.support.test:runner:1.0.2'//    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'    implementation 'com.android.support:recyclerview-v7:27.0.2'
    implementation 'com.android.support:design:27.0.2'    implementation 'com.android.support:recyclerview-v7:27.0.2'    implementation 'com.android.support:cardview-v7:27.0.2'    implementation 'com.android.support:multidex:1.0.3'
    // Retrofit    implementation 'com.google.code.gson:gson:2.6.2'    implementation 'com.squareup.retrofit2:retrofit:2.1.0'    implementation 'com.squareup.retrofit2:converter-gson:2.1.0'    implementation 'com.squareup.okhttp3:okhttp:3.5.0'    implementation 'com.squareup.okhttp3:logging-interceptor:3.5.0'    implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.5.0'    implementation 'com.github.bumptech.glide:glide:3.7.0'
    // for get location    implementation 'com.google.android.gms:play-services:11.4.0'    implementation 'com.google.android.gms:play-services-location:11.4.0'
    // implementation 'com.google.firebase:firebase-core:11.0.4'    implementation 'com.google.firebase:firebase-messaging:11.4.0'    implementation 'com.google.firebase:firebase-core:11.4.0'    implementation 'com.google.firebase:firebase-core:11.4.0'
//    implementation 'com.google.firebase:firebase-auth:10.2.1'
    implementation "io.reactivex.rxjava2:rxandroid:$rxjava_lib_version"    implementation "com.tbruyelle.rxpermissions2:rxpermissions:$rxpermission_lib_version"    implementation "com.intuit.sdp:sdp-android:$sdp_lib_version"    implementation "com.intuit.ssp:ssp-android:$sdp_lib_version"
    // loader    implementation 'com.wang.avi:library:2.1.3'
}

20)Manifest.xml
==============
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"    package="com.testdemo">
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />    <uses-permission android:name="android.permission.INTERNET" />
    <application        android:name=".MyApplication"        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">
        <activity            android:name=".activity.HomeActivity"            android:resizeableActivity="false"            android:screenOrientation="portrait"            android:theme="@style/AppTheme.NoActionBar">
            <intent-filter>                <action android:name="android.intent.action.MAIN" />                <category android:name="android.intent.category.LAUNCHER" />            </intent-filter>        </activity>
        <activity            android:name=".activity.MapActivity"            android:resizeableActivity="false"            android:screenOrientation="portrait"            android:theme="@style/AppTheme.NoActionBar">        </activity>
        <meta-data            android:name="com.google.android.maps.v2.API_KEY"            android:value="@string/google_maps_key" />
        <!--<meta-data-->        <!--android:name="com.google.android.geo.API_KEY"-->        <!--android:value="@string/google_maps_key" />-->
        <meta-data            android:name="com.google.android.gms.version"            android:value="@integer/google_play_services_version" />
    </application></manifest>

21)activity_main.xml
<?xml version="1.0" encoding="utf-8"?><layout 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.support.design.widget.CoordinatorLayout        android:layout_width="match_parent"        android:layout_height="match_parent">
        <include            layout="@layout/content_main"            android:layout_width="match_parent"            android:layout_height="match_parent"            android:layout_marginBottom="@dimen/_42sdp"/>
            <android.support.design.widget.BottomNavigationView xmlns:android="http://schemas.android.com/apk/res/android"                xmlns:app="http://schemas.android.com/apk/res-auto"                android:id="@+id/bottom_navigation"                android:layout_width="match_parent"                android:layout_height="@dimen/_42sdp"                android:layout_gravity="bottom"                android:fitsSystemWindows="true"                app:elevation="8dp"                android:background="@color/white"                app:itemBackground="@android:color/white"                app:itemIconTint="@drawable/bottom_navigation_color_selector"                app:itemTextAppearance="@style/TextStyleBNV"                app:itemTextColor="@drawable/bottom_navigation_color_selector"                app:menu="@menu/menu_navigation" />    </android.support.design.widget.CoordinatorLayout></layout>

21) content_main.xml
<?xml version="1.0" encoding="utf-8"?><android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"    android:layout_height="match_parent"    app:layout_behavior="@string/appbar_scrolling_view_behavior"    tools:context="com.webinfinium.vmukti.activity.HomeActivity">
    <FrameLayout        android:id="@+id/act_home_frag_container"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        app:layout_constraintBottom_toBottomOf="parent"        app:layout_constraintLeft_toLeftOf="parent"        app:layout_constraintRight_toRightOf="parent"        app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>





No comments:

Post a Comment