Commit 00df9753 authored by Marcus Sales's avatar Marcus Sales

Initial commit

parents
# Built application files
*.apk
*.ap_
# Files for the Dalvik VM
*.dex
# Java class files
*.class
# Generated files
bin/
gen/
# Gradle files
.gradle/
build/
# Local configuration file (sdk path, etc)
local.properties
# Proguard folder generated by Eclipse
proguard/
# Log Files
*.log
# Android Studio Navigation editor temp files
.navigation/
# Android Studio captures folder
captures/
.idea/
*.iml
Copyright (C) 2017 Marcus Sales
MVPBoilerplate
apply plugin: 'com.android.application'
apply plugin: 'com.jakewharton.butterknife'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
applicationId "br.com.evologica.mvp"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
// android support libraries
compile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
compile "com.android.support:recyclerview-v7:$rootProject.supportLibraryVersion"
compile "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"
compile "com.android.support:design:$rootProject.supportLibraryVersion"
compile "com.android.support:support-vector-drawable:$rootProject.supportLibraryVersion"
compile "com.android.support:animated-vector-drawable:$rootProject.supportLibraryVersion"
// font
compile "uk.co.chrisjenx:calligraphy:$rootProject.calligraphyVersion"
// // network
// compile "com.amitshekhar.android:rx2-android-networking:$rootProject.rx2AndroidNetworking"
// compile "com.google.code.gson:gson:$rootProject.gsonVersion"
//
// // database
// compile "org.greenrobot:greendao:$rootProject.greenDaoVersion"
// debugCompile "com.amitshekhar.android:debug-db:$rootProject.debugDBVersion"
//
// // dependency injection
// compile "com.google.dagger:dagger:$rootProject.dagger2Version"
// annotationProcessor "com.google.dagger:dagger-compiler:$rootProject.dagger2Version"
// provided 'javax.annotation:jsr250-api:1.0'
// compile 'javax.inject:javax.inject:1'
//
// // reactive
// compile "io.reactivex.rxjava2:rxjava:$rootProject.rxjava2Version"
// compile "io.reactivex.rxjava2:rxandroid:$rootProject.rxandroidVersion"
//
// // code generator for view
compile "com.jakewharton:butterknife:$rootProject.butterKnifeVersion"
annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.butterKnifeVersion"
//
// // swipe view
// compile "com.mindorks:placeholderview:$rootProject.placeholderviewVersion"
//
// // logger
// compile "com.jakewharton.timber:timber:$rootProject.timberVersion"
//
// // dependencies for local unit tests
// testCompile "junit:junit:$rootProject.ext.junitVersion"
// testCompile "org.mockito:mockito-core:$rootProject.mockitoVersion"
// testAnnotationProcessor "com.google.dagger:dagger-compiler:$rootProject.dagger2Version"
//
// // UI Testing
// androidTestCompile "com.android.support.test.espresso:espresso-core:$rootProject.espressoVersion"
// androidTestCompile "com.android.support.test.espresso:espresso-intents:$rootProject.espressoVersion"
// androidTestCompile "org.mockito:mockito-core:$rootProject.mockitoVersion"
// androidTestAnnotationProcessor "com.google.dagger:dagger-compiler:$rootProject.dagger2Version"
// 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.1.0'
testCompile 'junit:junit:4.12'
}
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\Users\Public\android\sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
package br.com.evologica.mvp;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("br.com.evologica.mvp", appContext.getPackageName());
}
}
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="br.com.evologica.mvp">
<application
android:name=".MvpApp"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".ui.splash.SplashActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/AppThemeFullScreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ui.login.LoginActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait" />
<activity android:name=".ui.main.MainActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait"/>
</application>
</manifest>
[
{
"option_text": "MVVM",
"question_id": 1,
"is_correct": false
},
{
"option_text": "MVP",
"question_id": 1,
"is_correct": true
},
{
"option_text": "MVC",
"question_id": 1,
"is_correct": false
},
{
"option_text": "Data Manager",
"question_id": 2,
"is_correct": true
},
{
"option_text": "View",
"question_id": 2,
"is_correct": false
},
{
"option_text": "Presenter",
"question_id": 2,
"is_correct": false
},
{
"option_text": "Yes",
"question_id": 3,
"is_correct": false
},
{
"option_text": "Never",
"question_id": 3,
"is_correct": true
},
{
"option_text": "Sometimes",
"question_id": 3,
"is_correct": false
},
{
"option_text": "It fetches the data from the database.",
"question_id": 4,
"is_correct": false
},
{
"option_text": "It delegates View's requirements to Data Manager.",
"question_id": 4,
"is_correct": true
},
{
"option_text": "It instructs the View to perform actions.",
"question_id": 4,
"is_correct": true
},
{
"option_text": "It created a readable code.",
"question_id": 5,
"is_correct": true
},
{
"option_text": "It is highly testable.",
"question_id": 5,
"is_correct": true
},
{
"option_text": "It provides reusable code.",
"question_id": 5,
"is_correct": true
},
{
"option_text": "Linus Torvalds",
"question_id": 6,
"is_correct": true
},
{
"option_text": "Janishar Ali",
"question_id": 6,
"is_correct": false
},
{
"option_text": "Amit Shekhar",
"question_id": 6,
"is_correct": false
},
{
"option_text": "None",
"question_id": 7,
"is_correct": false
},
{
"option_text": "Mindorks",
"question_id": 7,
"is_correct": true
},
{
"option_text": "Google",
"question_id": 7,
"is_correct": false
}
]
\ No newline at end of file
[
{
"id": 1,
"question_text": "What is the architecture of this app?",
"question_img_url": null
},
{
"id": 2,
"question_text": "Which component of the MVP controls the data flow?",
"question_img_url": null
},
{
"id": 3,
"question_text": "Can a View ask for data from a Data Manager?",
"question_img_url": null
},
{
"id": 4,
"question_text": "What is the role of a Presenter?",
"question_img_url": null
},
{
"id": 5,
"question_text": "Why should we follow MVP?",
"question_img_url": null
},
{
"id": 6,
"question_text": "Who is this person?",
"question_img_url": "https://avatars3.githubusercontent.com/u/1024025"
},
{
"id": 7,
"question_text": "Which company's logo is this?",
"question_img_url": "https://janishar.github.io/images/mindorks-logo-small.png"
}
]
\ No newline at end of file
package br.com.evologica.mvp;
import android.app.Application;
import br.com.evologica.mvp.data.AppDataManager;
import uk.co.chrisjenx.calligraphy.CalligraphyConfig;
/**
* Created by marcussales on 01/03/2017.
*/
public class MvpApp extends Application {
@Override
public void onCreate() {
super.onCreate();
AppDataManager.initInstance(this);
CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()
.setDefaultFontPath("fonts/source-sans-pro/SourceSansPro-Regular.ttf")
.setFontAttrId(R.attr.fontPath)
.build());
}
}
package br.com.evologica.mvp.data;
import android.content.Context;
import br.com.evologica.mvp.data.prefs.AppPreferencesHelper;
/**
* Created by marcussales on 01/03/2017.
*/
public class AppDataManager implements DataManager {
private AppPreferencesHelper mAppPreferencesHelper;
private static AppDataManager _INSTANCE;
public static AppDataManager initInstance(Context ctx) {
_INSTANCE = new AppDataManager(ctx);
return _INSTANCE;
}
public static AppDataManager getInstance(){
return _INSTANCE;
}
public AppDataManager(Context ctx) {
mAppPreferencesHelper = new AppPreferencesHelper(ctx, "whatever");
}
@Override
public void setLoggedIn() {
mAppPreferencesHelper.setLoggedIn();
}
@Override
public void setLoggedOut() {
mAppPreferencesHelper.setLoggedOut();
}
@Override
public boolean isLogged() {
return mAppPreferencesHelper.isLogged();
}
}
package br.com.evologica.mvp.data;
import br.com.evologica.mvp.data.prefs.PreferencesHelper;
/**
* Created by marcussales on 01/03/2017.
*/
public interface DataManager extends PreferencesHelper {
}
package br.com.evologica.mvp.data.prefs;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by marcussales on 01/03/2017.
*/
public class AppPreferencesHelper implements PreferencesHelper {
private static final String PREF_KEY_USER_LOGGED_IN = "PREF_KEY_USER_LOGGED_IN";
private final SharedPreferences mPrefs;
public AppPreferencesHelper(Context context,
String prefFileName) {
mPrefs = context.getSharedPreferences(prefFileName, Context.MODE_PRIVATE);
}
@Override
public void setLoggedIn() {
mPrefs.edit().putBoolean(PREF_KEY_USER_LOGGED_IN,true).apply();
}
@Override
public void setLoggedOut() {
mPrefs.edit().putBoolean(PREF_KEY_USER_LOGGED_IN,false).apply();
}
@Override
public boolean isLogged() {
return mPrefs.getBoolean(PREF_KEY_USER_LOGGED_IN,false);
}
}
package br.com.evologica.mvp.data.prefs;
/**
* Created by marcussales on 01/03/2017.
*/
public interface PreferencesHelper {
void setLoggedIn();
void setLoggedOut();
boolean isLogged();
}
package br.com.evologica.mvp.ui.base;
import android.content.Context;
import android.support.annotation.StringRes;
import android.support.v7.app.AppCompatActivity;
import uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper;
/**
* Created by marcussales on 01/03/2017.
*/
public class BaseActivity extends AppCompatActivity implements MvpView, BaseFragment.Callback {
@Override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
@Override
public void onFragmentAttached() {
}
@Override
public void onFragmentDetached(String tag) {
}
@Override
public void showLoading() {
}
@Override
public void hideLoading() {
}
@Override
public void onError(@StringRes int resId) {
}
@Override
public void onError(String message) {
}
}
package br.com.evologica.mvp.ui.base;
import android.support.annotation.StringRes;
import android.support.v4.app.Fragment;
/**
* Created by marcussales on 01/03/2017.
*/
public class BaseFragment extends Fragment implements MvpView {
@Override
public void showLoading() {
}
@Override
public void hideLoading() {
}
@Override
public void onError(@StringRes int resId) {
}
@Override
public void onError(String message) {
}
public interface Callback {
void onFragmentAttached();
void onFragmentDetached(String tag);
}
}
package br.com.evologica.mvp.ui.base;
/**
* Created by marcussales on 01/03/2017.
*/
public class BasePresenter<V extends MvpView> implements MvpPresenter<V> {
private V mMvpView;
public V getMvpView() {
return mMvpView;
}
@Override
public void onAttach(V mvpView) {
mMvpView = mvpView;
}
@Override
public void onDetach() {
}
}
package br.com.evologica.mvp.ui.base;
/**
* Created by marcussales on 01/03/2017.
*/
public interface MvpPresenter<V extends MvpView> {
void onAttach(V mvpView);
void onDetach();
}
package br.com.evologica.mvp.ui.base;
import android.support.annotation.StringRes;
public interface MvpView {
void showLoading();
void hideLoading();
void onError(@StringRes int resId);
void onError(String message);
}
package br.com.evologica.mvp.ui.login;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.EditText;
import br.com.evologica.mvp.R;
import br.com.evologica.mvp.ui.base.BaseActivity;
import br.com.evologica.mvp.ui.main.MainActivity;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
/**
* Created by marcussales on 01/03/2017.
*/
public class LoginActivity extends BaseActivity implements LoginMvpView {
private LoginMvpPresenter<LoginMvpView> mPresenter;
@BindView(R.id.et_email)
EditText mEmailEditText;
@BindView(R.id.et_password)
EditText mPasswordEditText;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
mPresenter = new LoginPresenter<LoginMvpView>();
mPresenter.onAttach(LoginActivity.this);
ButterKnife.bind(this);
}
@OnClick(R.id.btn_login)
void onLogin(View v) {
mPresenter.onLogin(mEmailEditText.getText().toString(),
mPasswordEditText.getText().toString());
}
@Override
public void openMainActivity() {
Intent intent = new Intent(this, MainActivity.class);
startActivity(intent);
finish();
}
}
package br.com.evologica.mvp.ui.login;
import br.com.evologica.mvp.ui.base.MvpPresenter;
/**
* Created by marcussales on 01/03/2017.
*/
public interface LoginMvpPresenter<V extends LoginMvpView> extends MvpPresenter<V> {
void onLogin(String email,String password);
}
package br.com.evologica.mvp.ui.login;
import br.com.evologica.mvp.ui.base.MvpView;
/**
* Created by marcussales on 01/03/2017.
*/
public interface LoginMvpView extends MvpView {
void openMainActivity();
}
package br.com.evologica.mvp.ui.login;
import br.com.evologica.mvp.data.AppDataManager;
import br.com.evologica.mvp.ui.base.BasePresenter;
/**
* Created by marcussales on 01/03/2017.
*/
public class LoginPresenter<V extends LoginMvpView> extends BasePresenter<V> implements LoginMvpPresenter<V> {
@Override
public void onLogin(String email, String password){
AppDataManager.getInstance().setLoggedIn();
getMvpView().openMainActivity();
}
}
package br.com.evologica.mvp.ui.main;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Button;
import br.com.evologica.mvp.R;
import br.com.evologica.mvp.ui.base.BaseActivity;
import br.com.evologica.mvp.ui.login.LoginActivity;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
/**
* Created by marcussales on 01/03/2017.
*/
public class MainActivity extends BaseActivity implements MainMvpView {
private MainMvpPresenter<MainMvpView> mPresenter;
@BindView(R.id.logout_button)
Button mLogoutButton;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mPresenter = new MainPresenter<MainMvpView>();
mPresenter.onAttach(MainActivity.this);
ButterKnife.bind(this);
// mLogoutButton.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View v) {
//
// }
// });
}
@OnClick(R.id.logout_button)
void onLogout(View v) {
mPresenter.onLogout();
}
@Override
public void openLoginActivity() {
Intent intent = new Intent(this, LoginActivity.class);
startActivity(intent);
finish();
}
}
package br.com.evologica.mvp.ui.main;
import br.com.evologica.mvp.ui.base.MvpPresenter;
import br.com.evologica.mvp.ui.base.MvpView;
/**
* Created by marcussales on 01/03/2017.
*/
public interface MainMvpPresenter<V extends MvpView> extends MvpPresenter<V> {
void onLogout();
}
package br.com.evologica.mvp.ui.main;
import br.com.evologica.mvp.ui.base.MvpView;
/**
* Created by marcussales on 01/03/2017.
*/
public interface MainMvpView extends MvpView {
void openLoginActivity();
}
package br.com.evologica.mvp.ui.main;
import br.com.evologica.mvp.data.AppDataManager;
import br.com.evologica.mvp.ui.base.BasePresenter;
/**
* Created by marcussales on 01/03/2017.
*/
public class MainPresenter<V extends MainMvpView> extends BasePresenter<V> implements MainMvpPresenter<V> {
@Override
public void onLogout() {
AppDataManager.getInstance().setLoggedOut();
getMvpView().openLoginActivity();
}
}
package br.com.evologica.mvp.ui.splash;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import br.com.evologica.mvp.R;
import br.com.evologica.mvp.ui.base.BaseActivity;
import br.com.evologica.mvp.ui.login.LoginActivity;
import br.com.evologica.mvp.ui.main.MainActivity;
import butterknife.ButterKnife;
/**
* Created by marcussales on 01/03/2017.
*/
public class SplashActivity extends BaseActivity implements SplashMvpView {
private SplashMvpPresenter<SplashMvpView> mPresenter;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
mPresenter = new SplashPresenter<SplashMvpView>();
mPresenter.onAttach(SplashActivity.this);
ButterKnife.bind(this);
}
@Override
public void openLoginActivity() {
Intent intent = new Intent(this, LoginActivity.class);
startActivity(intent);
finish();
}
@Override
public void openMainActivity() {
Intent intent = new Intent(this, MainActivity.class);
startActivity(intent);
finish();
}
}
package br.com.evologica.mvp.ui.splash;
import br.com.evologica.mvp.ui.base.MvpPresenter;
import br.com.evologica.mvp.ui.base.MvpView;
/**
* Created by marcussales on 01/03/2017.
*/
public interface SplashMvpPresenter<V extends MvpView> extends MvpPresenter<V> {
}
package br.com.evologica.mvp.ui.splash;
import br.com.evologica.mvp.ui.base.MvpView;
/**
* Created by marcussales on 01/03/2017.
*/
public interface SplashMvpView extends MvpView {
void openLoginActivity();
void openMainActivity();
}
package br.com.evologica.mvp.ui.splash;
import br.com.evologica.mvp.data.AppDataManager;
import br.com.evologica.mvp.ui.base.BasePresenter;
/**
* Created by marcussales on 01/03/2017.
*/
public class SplashPresenter<V extends SplashMvpView> extends BasePresenter<V> implements SplashMvpPresenter<V> {
@Override
public void onAttach(V mvpView) {
super.onAttach(mvpView);
if (!AppDataManager.getInstance().isLogged()){
getMvpView().openLoginActivity();
}else{
getMvpView().openMainActivity();
}
}
}
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/linear_interpolator">
<alpha
android:duration="500"
android:fromAlpha="0.1"
android:toAlpha="1.0" />
</set>
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/linear_interpolator">
<alpha
android:duration="500"
android:fromAlpha="1.0"
android:toAlpha="0.1" />
</set>
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="800"
android:fromXDelta="200%"
android:toXDelta="0" />
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="800"
android:fromXDelta="0"
android:toXDelta="200%" />
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/shadow">
<item android:drawable="@color/white" />
</ripple>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/shadow">
<item android:drawable="@color/black_effective" />
</ripple>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/shadow">
<item android:drawable="@color/semi_gray" />
</ripple>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:drawable="@drawable/ic_copy_white_24dp">
<target android:name="sheet">
<aapt:attr name="android:animation">
<set xmlns:android="http://schemas.android.com/apk/res/android">
<objectAnimator
android:duration="300"
android:propertyName="translateX"
android:repeatCount="1"
android:repeatMode="reverse"
android:valueFrom="0"
android:valueTo="-4"
android:valueType="floatType" />
<objectAnimator
android:duration="300"
android:propertyName="translateY"
android:repeatCount="1"
android:repeatMode="reverse"
android:valueFrom="0"
android:valueTo="-4"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
</animated-vector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:drawable="@drawable/ic_cut_white_24dp">
<target android:name="first_blade">
<aapt:attr name="android:animation">
<objectAnimator
android:duration="150"
android:propertyName="rotation"
android:repeatCount="3"
android:repeatMode="reverse"
android:valueFrom="0"
android:valueTo="20" />
</aapt:attr>
</target>
<target android:name="second_blade">
<aapt:attr name="android:animation">
<objectAnimator
android:duration="150"
android:propertyName="rotation"
android:repeatCount="3"
android:repeatMode="reverse"
android:valueFrom="0"
android:valueTo="-20" />
</aapt:attr>
</target>
</animated-vector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:drawable="@drawable/ic_delete_white_24dp">
<target android:name="cap">
<aapt:attr name="android:animation">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:ordering="sequentially">
<objectAnimator
android:duration="100"
android:propertyName="translateY"
android:valueFrom="0"
android:valueTo="-1.5"
android:valueType="floatType" />
<objectAnimator
android:duration="10"
android:propertyName="rotation"
android:valueFrom="0"
android:valueTo="15" />
<objectAnimator
android:duration="100"
android:propertyName="rotation"
android:repeatCount="3"
android:repeatMode="reverse"
android:valueFrom="15"
android:valueTo="-15" />
<objectAnimator
android:duration="10"
android:propertyName="rotation"
android:valueFrom="15"
android:valueTo="0" />
<objectAnimator
android:duration="100"
android:propertyName="translateY"
android:valueFrom="-1.5"
android:valueTo="0"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
</animated-vector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:drawable="@drawable/ic_share_white_24px">
<target android:name="top_line">
<aapt:attr name="android:animation">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:ordering="together">
<objectAnimator
android:duration="300"
android:propertyName="scaleX"
android:repeatCount="1"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
<objectAnimator
android:duration="300"
android:propertyName="scaleY"
android:repeatCount="1"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
<target android:name="bottom_line">
<aapt:attr name="android:animation">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:ordering="together">
<objectAnimator
android:duration="300"
android:propertyName="scaleX"
android:repeatCount="1"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
<objectAnimator
android:duration="300"
android:propertyName="scaleY"
android:repeatCount="1"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
</animated-vector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="@color/cyan_light" />
</shape>
</item>
<item android:bottom="300dp">
<rotate
android:fromDegrees="0"
android:pivotX="0%"
android:pivotY="0%"
android:toDegrees="45">
<shape android:shape="rectangle">
<solid android:color="@color/navy_blue_dark" />
</shape>
</rotate>
</item>
<item android:top="150dp">
<rotate
android:fromDegrees="25"
android:pivotX="100%"
android:pivotY="45%"
android:toDegrees="45">
<shape android:shape="rectangle">
<solid android:color="@color/navy_blue" />
</shape>
</rotate>
</item>
<item android:top="100dp">
<rotate
android:fromDegrees="-45"
android:pivotX="60%"
android:pivotY="45%"
android:toDegrees="45">
<shape android:shape="rectangle">
<solid android:color="@color/cyan_dark" />
</shape>
</rotate>
</item>
<item android:top="100dp">
<rotate
android:fromDegrees="-25"
android:pivotX="90%"
android:pivotY="0%"
android:toDegrees="45">
<shape android:shape="rectangle">
<solid android:color="@color/cyan" />
</shape>
</rotate>
</item>
<item android:top="100dp">
<rotate
android:fromDegrees="-25"
android:pivotX="90%"
android:pivotY="0%"
android:toDegrees="45">
<shape android:shape="rectangle">
<solid android:color="@color/cyan" />
</shape>
</rotate>
</item>
<item android:top="200dp">
<rotate
android:fromDegrees="-35"
android:pivotX="90%"
android:pivotY="0%"
android:toDegrees="45">
<shape android:shape="rectangle">
<solid android:color="@color/red_dark2" />
</shape>
</rotate>
</item>
<item android:top="40dp">
<rotate
android:fromDegrees="-45"
android:pivotX="145%"
android:pivotY="0%"
android:toDegrees="45">
<shape android:shape="rectangle">
<solid android:color="@color/red_dark" />
</shape>
</rotate>
</item>
</layer-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="@color/colorPrimaryDark" />
<corners android:radius="1dp" />
</shape>
</item>
<item
android:bottom="1dp"
android:left="-2dp"
android:right="-2dp"
android:top="-2dp">
<shape android:shape="rectangle">
<solid android:color="@color/white" />
<corners android:radius="2dp" />
</shape>
</item>
</layer-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="@color/shadow" />
<corners android:radius="1dp" />
</shape>
</item>
<item
android:bottom="1dp"
android:left="-2dp"
android:right="-2dp"
android:top="-2dp">
<shape android:shape="rectangle">
<solid android:color="@color/white" />
<corners android:radius="2dp" />
</shape>
</item>
</layer-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/light_gray" android:state_pressed="true" />
<item android:drawable="@color/white" android:state_focused="true" />
<item android:drawable="@color/white" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/light_gray" android:state_pressed="true" />
<item android:drawable="@color/black_effective" android:state_focused="true" />
<item android:drawable="@color/black_effective" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/light_gray" android:state_pressed="true" />
<item android:drawable="@color/semi_gray" android:state_focused="true" />
<item android:drawable="@color/semi_gray" />
</selector>
\ No newline at end of file
<!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners
android:bottomLeftRadius="10dp"
android:bottomRightRadius="10dp"
android:topLeftRadius="10dp"
android:topRightRadius="10dp" />
<stroke
android:width="1dp"
android:color="@color/gray" />
<solid android:color="@color/white" />
</shape>
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24"
android:viewportWidth="24">
<path
android:fillColor="#ffffff"
android:pathData="M19 13l-6 0 0 6 -2 0 0 -6 -6 0 0 -2 6 0 0 -6 2 0 0 6 6 0 0 2z" />
</vector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24"
android:viewportWidth="24">
<path
android:fillColor="#ffffff"
android:pathData="M16 1L4 1C2.9 1 2 1.9 2 3L2 17 4 17 4 3 16 3Z" />
<group android:name="sheet">
<path
android:fillColor="#ffffff"
android:pathData="M19 5L8 5C6.9 5 6 5.9000001 6 7.0000001L6 21c0 1.1 0.9 2 2 2l11 0c1.1 0 2 -0.9 2 -2L21 7.0000001C21 5.9000001 20.1 5 19 5Zm0 16l-11 0 0 -13.9999999 11 0z" />
</group>
</vector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24"
android:viewportWidth="24">
<group
android:name="first_blade"
android:pivotX="12"
android:pivotY="12"
android:rotation="0">
<path
android:fillColor="#ffffff"
android:pathData="M10 12L7.64 14.36C7.14 14.13 6.59 14 6 14c-2.21 0 -4 1.79 -4 4 0 2.21 1.79 4 4 4 2.21 0 4 -1.79 4 -4 0 -0.59 -0.13 -1.14 -0.36 -1.64L12 14m-6 6c-1.1 0 -2 -0.89 -2 -2 0 -1.11 0.9 -2 2 -2 1.1 0 2 0.89 2 2 0 1.11 -0.9 2 -2 2zm13 -17l-6 6 2 2 7 -7 0 -1z" />
</group>
<group
android:name="second_blade"
android:pivotX="12"
android:pivotY="12"
android:rotation="0">
<path
android:fillColor="#ffffff"
android:pathData="M12 14l7 7 3 0 0 -1L9.64 7.6400004c0.23 -0.5 0.36 -1.05 0.36 -1.64 0 -2.21 -1.79 -4 -4 -4 -2.2099995 0 -3.9999995 1.79 -3.9999995 4C2.0000005 8.2100004 3.7900005 10 6 10 6.59 10 7.14 9.8700004 7.64 9.6400004L10 12M6 8.0000004c-1.0999995 0 -1.9999995 -0.89 -1.9999995 -2 0 -1.11 0.9 -2 1.9999995 -2 1.1 0 2 0.89 2 2 0 1.11 -0.9 2 -2 2zM12 12.5c-0.28 0 -0.5 -0.22 -0.5 -0.5 0 -0.28 0.22 -0.5 0.5 -0.5 0.28 0 0.5 0.22 0.5 0.5 0 0.28 -0.22 0.5 -0.5 0.5z" />
</group>
</vector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24"
android:viewportWidth="24">
<group
android:name="cap"
android:pivotX="12"
android:pivotY="4.5"
android:rotation="0">
<path
android:fillColor="#ffffff"
android:pathData="M19 4l-3.5 0 -1 -1 -5 0 -1 1L5 4 5 6 19 6Z" />
</group>
<path
android:fillColor="#ffffff"
android:pathData="M6 19c0 1.1 0.9 2 2 2l8 0c1.1 0 2 -0.9 2 -2l0 -11.9999995 -12 0z" />
</vector>
\ No newline at end of file
<!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="408.788"
android:viewportWidth="408.788">
<path
android:fillColor="@color/fb"
android:pathData="M353.7,0H55.1C24.7,0 0,24.7 0,55.1v298.6c0,30.4 24.7,55.1 55.1,55.1h147.3l0.3,-146.1h-38c-4.9,0 -8.9,-4 -9,-8.9l-0.2,-47.1c-0,-5 4,-9 9,-9h37.9v-45.5c0,-52.8 32.2,-81.6 79.3,-81.6h38.7c4.9,0 9,4 9,9v39.7c0,4.9 -4,9 -8.9,9l-23.7,0c-25.6,0 -30.6,12.2 -30.6,30v39.4h56.3c5.4,0 9.5,4.7 8.9,10l-5.6,47.1c-0.5,4.5 -4.4,7.9 -8.9,7.9h-50.5l-0.3,146.1h87.6c30.4,0 55.1,-24.7 55.1,-55.1V55.1C408.8,24.7 384.1,0 353.7,0z" />
</vector>
<!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="486.392"
android:viewportWidth="486.392">
<path
android:fillColor="@color/google"
android:pathData="M395.2,0H91.2C40.8,0 0,40.8 0,91.2v304c0,50.4 40.8,91.2 91.2,91.2h304c50.4,0 91.2,-40.8 91.2,-91.2V91.2C486.4,40.8 445.6,0 395.2,0zM175.3,406.8c-53.8,0 -99.3,-21.9 -99.3,-56.9c0,-35.5 41.4,-69.9 95.3,-69.8l16.8,-0.2c-7.4,-7.1 -13.2,-15.9 -13.2,-26.8c0,-6.4 2.1,-12.6 4.9,-18.1l-9,0.3c-44.2,0 -73.8,-31.5 -73.8,-70.5c0,-38.2 40.9,-71.1 84.4,-71.1h97l-21.8,15.7h-30.7c20.4,7.8 31.3,31.6 31.3,56c0,20.5 -11.3,38.1 -27.4,50.6c-15.7,12.3 -18.6,17.4 -18.6,27.8c0,8.9 16.8,24 25.5,30.2c25.6,18.1 33.9,34.9 33.9,63C270.6,372 236.7,406.8 175.3,406.8zM425.6,213.4h-60.8v60.7h-30.4v-60.7h-60.8v-31h60.8v-60.8h30.4v60.8h60.8V213.4z" />
<path
android:fillColor="@color/google"
android:pathData="M222.3,167.3c-4.3,-32.8 -28.1,-59.1 -53,-59.9c-25,-0.7 -41.7,24.4 -37.4,57.2c4.3,32.8 28.1,60 53,60.7C209.9,226.2 226.7,200.2 222.3,167.3z" />
<path
android:fillColor="@color/google"
android:pathData="M205.8,293c-7.4,-2.4 -15.5,-3.8 -24.1,-3.9c-37.2,-0.4 -70.5,22.7 -70.5,50.4c0,28.3 26.9,51.9 64.1,51.9c52.3,0 70.5,-22.1 70.5,-50.4c0,-3.4 -0.5,-6.7 -1.2,-10C240.5,315 226,307 205.8,293z" />
</vector>
<!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24.0"
android:viewportWidth="24.0">
<path
android:fillColor="#FFFFFF"
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,17h-2v-6h2v6zM13,9h-2L11,7h2v2z" />
</vector>
<!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24.0"
android:viewportWidth="24.0">
<path
android:fillColor="#FFFFFF"
android:pathData="M21,11H6.83l3.58,-3.59L9,6l-6,6 6,6 1.41,-1.41L6.83,13H21z" />
</vector>
<!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24.0"
android:viewportWidth="24.0">
<path
android:fillColor="@color/gray"
android:pathData="M13,3h-2v10h2L13,3zM17.83,5.17l-1.42,1.42C17.99,7.86 19,9.81 19,12c0,3.87 -3.13,7 -7,7s-7,-3.13 -7,-7c0,-2.19 1.01,-4.14 2.58,-5.42L6.17,5.17C4.23,6.82 3,9.26 3,12c0,4.97 4.03,9 9,9s9,-4.03 9,-9c0,-2.74 -1.23,-5.18 -3.17,-6.83z" />
</vector>
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24"
android:viewportWidth="24">
<group
android:name="top_line"
android:pivotX="18"
android:pivotY="5"
android:scaleX="1"
android:scaleY="1">
<path
android:fillColor="#ffffff"
android:pathData="M17.546875 4.2226562l-12 6.9999998 0.90625 1.554688 12 -7.0000002 -0.90625 -1.5546876z"
android:strokeLineCap="butt"
android:strokeLineJoin="miter"
android:strokeMiterLimit="4" />
</group>
<group
android:name="bottom_line"
android:pivotX="6"
android:pivotY="12"
android:scaleX="1"
android:scaleY="1">
<path
android:fillColor="#ffffff"
android:pathData="M6.4492188 11.220703L5.5507812 12.779297 17.550781 19.699219 18.449219 18.140625 6.4492188 11.220703Z"
android:strokeLineCap="butt"
android:strokeLineJoin="miter"
android:strokeMiterLimit="4" />
</group>
<path
android:fillColor="#ffffff"
android:pathData="M21 5A3 3 0 0 1 18 8 3 3 0 0 1 15 5 3 3 0 0 1 18 2 3 3 0 0 1 21 5Z"
android:strokeLineCap="butt"
android:strokeLineJoin="miter"
android:strokeMiterLimit="4" />
<path
android:fillColor="#ffffff"
android:pathData="M9 12A3 3 0 0 1 6 15 3 3 0 0 1 3 12 3 3 0 0 1 6 9 3 3 0 0 1 9 12Z"
android:strokeLineCap="butt"
android:strokeLineJoin="miter"
android:strokeMiterLimit="4" />
<path
android:fillColor="#ffffff"
android:pathData="M21 18.92a3 3 0 0 1 -3 3 3 3 0 0 1 -3 -3 3 3 0 0 1 3 -3 3 3 0 0 1 3 3z"
android:strokeLineCap="butt"
android:strokeLineJoin="miter"
android:strokeMiterLimit="4" />
</vector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/border_dark_color" android:state_pressed="true" />
<item android:drawable="@drawable/border_dark_color" android:state_focused="true" />
<item android:drawable="@drawable/bottom_border_shadow" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:bottom="-10dp"
android:left="-10dp"
android:right="-10dp"
android:top="-10dp">
<shape android:shape="rectangle">
<stroke
android:width="10dp"
android:color="@color/transparent" />
<corners android:radius="10dp" />
</shape>
</item>
</layer-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_design">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="50dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="80dp"
app:cardCornerRadius="7dp"
app:cardElevation="22dp">
<TextView
style="@style/TextStyle.Heading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center|top"
android:layout_marginTop="60dp"
android:text="@string/login_dummy"
android:textAllCaps="true"
android:textSize="20sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="20dp"
android:orientation="vertical">
<EditText
android:id="@+id/et_email"
style="@style/TextStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:background="@drawable/input_border_bottom"
android:cursorVisible="true"
android:gravity="center|left|bottom"
android:hint="@string/email"
android:inputType="textEmailAddress"
android:maxLength="50"
android:paddingBottom="10dp"
android:textColor="@color/black_effective"
android:textColorHint="@color/gray"
android:textSize="18sp" />
<EditText
android:id="@+id/et_password"
style="@style/TextStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="30dp"
android:background="@drawable/input_border_bottom"
android:cursorVisible="true"
android:gravity="center|left|bottom"
android:hint="@string/password"
android:inputType="textPassword"
android:maxLength="50"
android:paddingBottom="10dp"
android:textColor="@color/black_effective"
android:textColorHint="@color/gray"
android:textSize="18sp" />
<Button
android:id="@+id/btn_login"
style="@style/Button.Primary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="15dp"
android:padding="10dp"
android:text="@string/login"
android:textSize="18dp" />
</LinearLayout>
<!--<LinearLayout-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_gravity="bottom|center"-->
<!--android:layout_marginBottom="40dp"-->
<!--android:orientation="horizontal">-->
<!--<ImageButton-->
<!--android:id="@+id/ib_google_login"-->
<!--android:layout_width="40dp"-->
<!--android:layout_height="40dp"-->
<!--android:background="@color/transparent"-->
<!--android:scaleType="centerCrop"-->
<!--app:srcCompat="@drawable/ic_google_plus" />-->
<!--<ImageButton-->
<!--android:id="@+id/ib_fb_login"-->
<!--android:layout_width="40dp"-->
<!--android:layout_height="40dp"-->
<!--android:layout_marginLeft="24dp"-->
<!--android:background="@color/transparent"-->
<!--android:scaleType="centerCrop"-->
<!--app:srcCompat="@drawable/ic_facebook" />-->
<!--</LinearLayout>-->
</android.support.v7.widget.CardView>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_height="match_parent"
android:layout_width="match_parent">
<Button
android:id="@+id/logout_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="LOGOUT"/>
</LinearLayout>
<!--<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"-->
<!--xmlns:app="http://schemas.android.com/apk/res-auto"-->
<!--android:id="@+id/drawer_view"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:fitsSystemWindows="true">-->
<!--<android.support.design.widget.CoordinatorLayout-->
<!--android:id="@+id/cl_root_view"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:clipChildren="false">-->
<!--<LinearLayout-->
<!--android:id="@+id/activity_main"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:orientation="vertical">-->
<!--<android.support.design.widget.AppBarLayout-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="wrap_content"-->
<!--app:elevation="5dp">-->
<!--<android.support.v7.widget.Toolbar-->
<!--android:id="@+id/toolbar"-->
<!--style="@style/Toolbar"-->
<!--app:subtitleTextColor="@color/white"-->
<!--app:title="@string/app_name"-->
<!--app:titleTextAppearance="@style/Toolbar.TitleText"-->
<!--app:titleTextColor="@color/white" />-->
<!--<View-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="1dp"-->
<!--android:background="@color/light_gray" />-->
<!--</android.support.design.widget.AppBarLayout>-->
<!--<com.mindorks.placeholderview.SwipePlaceHolderView-->
<!--android:id="@+id/cards_container"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent" />-->
<!--</LinearLayout>-->
<!--</android.support.design.widget.CoordinatorLayout>-->
<!--&lt;!&ndash;<android.support.design.widget.NavigationView&ndash;&gt;-->
<!--&lt;!&ndash;android:id="@+id/navigation_view"&ndash;&gt;-->
<!--&lt;!&ndash;style="@style/Widget.Design.NavigationView"&ndash;&gt;-->
<!--&lt;!&ndash;android:layout_width="wrap_content"&ndash;&gt;-->
<!--&lt;!&ndash;android:layout_height="match_parent"&ndash;&gt;-->
<!--&lt;!&ndash;android:layout_gravity="start"&ndash;&gt;-->
<!--&lt;!&ndash;android:background="@color/white"&ndash;&gt;-->
<!--&lt;!&ndash;app:headerLayout="@layout/drawer_header"&ndash;&gt;-->
<!--&lt;!&ndash;app:itemBackground="@color/white"&ndash;&gt;-->
<!--&lt;!&ndash;app:itemIconTint="@color/black_effective"&ndash;&gt;-->
<!--&lt;!&ndash;app:itemTextColor="@color/black_effective"&ndash;&gt;-->
<!--&lt;!&ndash;app:menu="@menu/drawer">&ndash;&gt;-->
<!--&lt;!&ndash;<TextView&ndash;&gt;-->
<!--&lt;!&ndash;android:id="@+id/tv_app_version"&ndash;&gt;-->
<!--&lt;!&ndash;style="@style/TextStyle.Title.Sub"&ndash;&gt;-->
<!--&lt;!&ndash;android:layout_width="wrap_content"&ndash;&gt;-->
<!--&lt;!&ndash;android:layout_height="wrap_content"&ndash;&gt;-->
<!--&lt;!&ndash;android:layout_gravity="bottom|end"&ndash;&gt;-->
<!--&lt;!&ndash;android:padding="5dp" />&ndash;&gt;-->
<!--&lt;!&ndash;</android.support.design.widget.NavigationView>&ndash;&gt;-->
<!--</android.support.v4.widget.DrawerLayout>-->
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin">
<ImageView
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_centerInParent="true"
android:src="@mipmap/ic_launcher" />
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<group>
<item
android:id="@+id/nav_item_about"
android:checked="true"
android:icon="@drawable/ic_info_24px"
android:title="@string/about" />
<item
android:id="@+id/nav_item_logout"
android:checked="true"
android:icon="@drawable/ic_power_settings_new_24px"
android:title="@string/logout" />
</group>
</menu>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/action_cut"
android:icon="@drawable/avd_cut"
android:title="@string/cut"
app:showAsAction="always" />
<item
android:id="@+id/action_copy"
android:icon="@drawable/avd_copy"
android:title="@string/copy"
app:showAsAction="always" />
<item
android:id="@+id/action_delete"
android:icon="@drawable/avd_delete"
android:title="@string/delete"
app:showAsAction="always" />
<item
android:id="@+id/action_share"
android:icon="@drawable/avd_share"
android:title="@string/share"
app:showAsAction="always" />
</menu>
\ No newline at end of file
<!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<resources>
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
(such as screen margins) for screens with more than 820dp of available width. This
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
<dimen name="activity_horizontal_margin">64dp</dimen>
</resources>
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<resources>
<color name="colorPrimary">@color/blue_black_light</color>
<color name="colorPrimaryDark">@color/black</color>
<color name="colorAccent">#FF4081</color>
<color name="light_gray">#dbdbdb</color>
<color name="gray">#7e7e7e</color>
<color name="semi_gray">#979797</color>
<color name="dark_gray">#696969</color>
<color name="bg_color">#f7f7f7</color>
<color name="black">#000000</color>
<color name="white">#ffffff</color>
<color name="black_effective">#2a2a2a</color>
<color name="shadow">#d0d8dc</color>
<color name="transparent">#00000000</color>
<color name="translucent_white">#88ffffff</color>
<color name="fb">#3b5998</color>
<color name="google">#d34836</color>
<!--Design colors-->
<color name="red_dark">#F06423</color>
<color name="red_dark2">#D85A1B</color>
<color name="cyan_light">#c9ebee</color>
<color name="cyan">#b5e3e7</color>
<color name="cyan_dark">#70BDC6</color>
<color name="navy_blue">#214258</color>
<color name="navy_blue_dark">#1C3A4E</color>
<color name="light_green">#78DC96</color>
<color name="light_blue">#55C8F0</color>
<color name="blue_black_dark">#13171d</color>
<color name="blue_black_light">#516179</color>
<color name="blue_grey_light">#A5B4C8</color>
<color name="orange">#FFA500</color>
<color name="yellow">#fff44f</color>
</resources>
<!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<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="app_bar_height">0dp</dimen>
</resources>
<!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<resources>
<string name="app_name">MvpApp</string>
<!--Toolbar menus-->
<string name="clear">Clear</string>
<string name="cut">Cut</string>
<string name="copy">Copy</string>
<string name="paste">Paste</string>
<string name="delete">Delete</string>
<string name="share">Share</string>
<!--Drawer-->
<string name="open_drawer">Drawer Open</string>
<string name="close_drawer">Drawer Close</string>
<!--Drawer Menus-->
<string name="about">About</string>
<string name="logout">Logout</string>
<!--App Message-->
<string name="api_retry_error">Please retry!</string>
<string name="api_default_error">Something wrong happened!</string>
<string name="some_error">Some Error Occurred!</string>
<string name="connection_error">Internet connection lost!</string>
<!--Login-->
<string name="login_dummy">Login Dummy</string>
<string name="login">Login</string>
<string name="email">Email</string>
<string name="password">Password</string>
<!--Login Validation-->
<string name="empty_email">Please provide a non empty email.</string>
<string name="invalid_email">Please provide a valid email.</string>
<string name="empty_password">Please provide a non empty password.</string>
<!--about fragment-->
<string name="project_info">This sample app implements MVP architecture using Dagger2, GreenDao, RxJava, FastAndroidNetworking and PlaceholderView</string>
<string name="link_mvp_blog">1. https://blog.mindorks.com</string>
<string name="link_mvp_repo">2. https://github.com/MindorksOpenSource/android-mvp-architecture</string>
<string name="link_mindorks_blog">3. https://blog.mindorks.com</string>
<string name="link_mindorks_repo">4. https://github.com/MindorksOpenSource</string>
<string name="version">"version"</string>
</resources>
<!--
~ Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://mindorks.com/license/apache-v2
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowContentOverlay">@null</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:textColorPrimary">@color/black_effective</item>
<item name="android:textColor">@color/black_effective</item>
<item name="android:windowBackground">@color/bg_color</item>
<item name="android:textAllCaps">false</item>
<item name="android:textSize">16sp</item>
<item name="android:typeface">sans</item>
<item name="drawerArrowStyle">@style/MaterialDrawer.DrawerArrowStyle</item>
<item name="android:textAppearance">@style/TextAppearance.Text.Regular</item>
</style>
<style name="AppThemeFullScreen" parent="AppTheme">
<item name="colorPrimary">@color/white</item>
<item name="colorPrimaryDark">@color/white</item>
<item name="android:windowBackground">@color/white</item>
</style>
<style name="MaterialDrawer.DrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle">
<item name="spinBars">false</item>
<item name="color">@color/white</item>
</style>
<style name="TextAppearance.Text.Regular" parent="android:TextAppearance">
<item name="fontPath">fonts/source-sans-pro/SourceSansPro-Regular.ttf</item>
</style>
<style name="TextAppearance.Text.Bold" parent="android:TextAppearance">
<item name="fontPath">fonts/source-sans-pro/SourceSansPro-Bold.ttf</item>
</style>
<style name="TextAppearance.Text.Light" parent="android:TextAppearance">
<item name="fontPath">fonts/source-sans-pro/SourceSansPro-Light.ttf</item>
</style>
<style name="TextAppearance.Text.Italic" parent="android:TextAppearance">
<item name="fontPath">fonts/source-sans-pro/SourceSansPro-Italic.ttf</item>
</style>
<style name="TextStyle">
<item name="android:layout_marginTop">2dp</item>
<item name="android:layout_marginBottom">2dp</item>
<item name="android:layout_marginLeft">2dp</item>
<item name="android:layout_marginRight">2dp</item>
<item name="android:textColor">@color/black_effective</item>
</style>
<style name="TextStyle.Title" parent="TextStyle">
<item name="android:textAppearance">@style/TextAppearance.Text.Regular</item>
</style>
<style name="TextStyle.Title.Sub" parent="TextStyle.Title">
<item name="android:textAppearance">@style/TextAppearance.Text.Light</item>
<item name="android:textSize">14sp</item>
</style>
<style name="TextStyle.Heading" parent="TextStyle">
<item name="android:textSize">16sp</item>
<item name="android:textAppearance">@style/TextAppearance.Text.Bold</item>
</style>
<style name="TextStyle.Comment" parent="TextStyle">
<item name="android:textSize">16sp</item>
<item name="android:textAppearance">@style/TextAppearance.Text.Italic</item>
</style>
<style name="Toolbar" parent="Base.ThemeOverlay.AppCompat.Dark.ActionBar">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:minHeight">?attr/actionBarSize</item>
</style>
<style name="Toolbar.TitleText" parent="TextStyle.Heading">
<item name="android:textColor">@color/dark_gray</item>
<item name="android:textSize">22sp</item>
</style>
<style name="Button" parent="Widget.AppCompat.Button">
<item name="android:textColor">@color/black_effective</item>
<item name="android:layout_height">48dp</item>
<item name="android:layout_width">match_parent</item>
<item name="android:paddingLeft">8dp</item>
<item name="android:paddingRight">8dp</item>
<item name="android:textAllCaps">false</item>
<item name="android:textSize">16sp</item>
<item name="android:background">@drawable/button_bg</item>
<item name="android:foreground">?selectableItemBackground</item>
</style>
<style name="Button.ImageButton" parent="Widget.AppCompat.ImageButton">
<item name="android:padding">5dp</item>
<item name="android:scaleType">centerInside</item>
<item name="android:background">@null</item>
</style>
<style name="Button.Primary" parent="Button">
<item name="android:textColor">@color/white</item>
<item name="android:background">@drawable/button_primary_bg</item>
</style>
<style name="Button.Secondary" parent="Button">
<item name="android:textColor">@color/white</item>
<item name="android:background">@drawable/button_secondary_bg</item>
</style>
</resources>
package br.com.evologica.mvp;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
}
\ No newline at end of file
// 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.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.jakewharton:butterknife-gradle-plugin:8.5.1'
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// Define versions in a single place
ext {
// Sdk and tools
minSdkVersion = 18
targetSdkVersion = 25
compileSdkVersion = 25
buildToolsVersion = '25.0.2'
// App dependencies
supportLibraryVersion = '25.2.0'
//gsonVersion = '2.8.0'
calligraphyVersion = '2.2.0'
//rx2AndroidNetworking = '0.0.1'
// dagger2Version = '2.8'
//rxjava2Version = '2.0.5'
//rxandroidVersion = '2.0.1'
butterKnifeVersion = '8.5.1'
// greenDaoVersion = '3.2.0'
// placeholderviewVersion = '0.6.1'
// debugDBVersion = '1.0.0'
// timberVersion = '4.5.1'
//
// //Test dependencies
// junitVersion = '4.12'
// espressoVersion = '2.2.2'
// mockitoVersion = '2.7.1'
}
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
#Mon Dec 28 10:00:20 PST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
#!/usr/bin/env bash
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn ( ) {
echo "$*"
}
die ( ) {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
esac
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
function splitJvmOpts() {
JVM_OPTS=("$@")
}
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windowz variants
if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
goto execute
:4NT_args
@rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
include ':app'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment