diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..603b140 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +*.iml +.gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store +/build +/captures +.externalNativeBuild +.cxx diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..8527c39 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +DNI scammer \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..681f41a --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,116 @@ + + + + + + + +
+ + + + xmlns:android + + ^$ + + + +
+
+ + + + xmlns:.* + + ^$ + + + BY_NAME + +
+
+ + + + .*:id + + http://schemas.android.com/apk/res/android + + + +
+
+ + + + .*:name + + http://schemas.android.com/apk/res/android + + + +
+
+ + + + name + + ^$ + + + +
+
+ + + + style + + ^$ + + + +
+
+ + + + .* + + ^$ + + + BY_NAME + +
+
+ + + + .* + + http://schemas.android.com/apk/res/android + + + ANDROID_ATTRIBUTE_ORDER + +
+
+ + + + .* + + .* + + + BY_NAME + +
+
+
+
+
+
\ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..5cd135a --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,20 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..37a7509 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 0000000..7f68460 --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000..f29d5ca --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,41 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 29 + buildToolsVersion "29.0.3" + + defaultConfig { + applicationId "com.example.dniscammer" + minSdkVersion 14 + targetSdkVersion 29 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + +} + +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar']) + + implementation 'androidx.appcompat:appcompat:1.1.0' + implementation 'androidx.legacy:legacy-support-v4:1.0.0' + implementation 'com.google.android.material:material:1.1.0' + implementation 'androidx.constraintlayout:constraintlayout:1.1.3' + implementation 'androidx.navigation:navigation-fragment:2.2.1' + implementation 'androidx.navigation:navigation-ui:2.2.1' + implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' + implementation 'androidx.viewpager:viewpager:1.0.0' + testImplementation 'junit:junit:4.12' + androidTestImplementation 'androidx.test.ext:junit:1.1.1' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' + implementation 'com.android.support:support-v4:28.0.0' +} diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..f1b4245 --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# 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 *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/app/src/androidTest/java/com/example/dniscammer/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/example/dniscammer/ExampleInstrumentedTest.java new file mode 100644 index 0000000..7306e29 --- /dev/null +++ b/app/src/androidTest/java/com/example/dniscammer/ExampleInstrumentedTest.java @@ -0,0 +1,27 @@ +package com.example.dniscammer; + +import android.content.Context; + +import androidx.test.platform.app.InstrumentationRegistry; +import androidx.test.ext.junit.runners.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); + + assertEquals("com.example.dniscammer", appContext.getPackageName()); + } +} diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..93a2e7b --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/example/dniscammer/Activity2.java b/app/src/main/java/com/example/dniscammer/Activity2.java new file mode 100644 index 0000000..eac6cf7 --- /dev/null +++ b/app/src/main/java/com/example/dniscammer/Activity2.java @@ -0,0 +1,27 @@ +package com.example.dniscammer; + +import android.app.Activity; +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; + +public class Activity2 extends Activity { + + /** + * Called when the activity is first created. + */ + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.fragment_billetera); + + final Button buttonHome = findViewById(R.id.dniNext); + buttonHome.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent myIntent = new Intent(view.getContext(), ActivityPIN.class); + startActivityForResult(myIntent, 0); + } + }); + } +} \ No newline at end of file diff --git a/app/src/main/java/com/example/dniscammer/ActivityDNI.java b/app/src/main/java/com/example/dniscammer/ActivityDNI.java new file mode 100644 index 0000000..35aced3 --- /dev/null +++ b/app/src/main/java/com/example/dniscammer/ActivityDNI.java @@ -0,0 +1,32 @@ +package com.example.dniscammer; + +import android.app.Activity; +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; + +import androidx.viewpager.widget.ViewPager; + +public class ActivityDNI extends Activity { + + /** + * Called when the activity is first created. + */ + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.fragment_dni); + + final Button buttonHome = findViewById(R.id.dniNext); + buttonHome.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent myIntent = new Intent(view.getContext(), ActivityDNIDetail.class); + startActivityForResult(myIntent, 0); + } + }); + + ViewPager viewPager = (ViewPager) findViewById(R.id.viewPager); + viewPager.setAdapter(new CustomPagerAdapter(this)); + } +} \ No newline at end of file diff --git a/app/src/main/java/com/example/dniscammer/ActivityDNI2.java b/app/src/main/java/com/example/dniscammer/ActivityDNI2.java new file mode 100644 index 0000000..d71dfc6 --- /dev/null +++ b/app/src/main/java/com/example/dniscammer/ActivityDNI2.java @@ -0,0 +1,27 @@ +package com.example.dniscammer; + +import android.app.Activity; +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; + +public class ActivityDNI2 extends Activity { + + /** + * Called when the activity is first created. + */ + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.fragment_dni2); + + final Button buttonHome = findViewById(R.id.dniNext); + buttonHome.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent myIntent = new Intent(view.getContext(), ActivityDNIDetail.class); + startActivityForResult(myIntent, 0); + } + }); + } +} \ No newline at end of file diff --git a/app/src/main/java/com/example/dniscammer/ActivityDNIDetail.java b/app/src/main/java/com/example/dniscammer/ActivityDNIDetail.java new file mode 100644 index 0000000..d2a209a --- /dev/null +++ b/app/src/main/java/com/example/dniscammer/ActivityDNIDetail.java @@ -0,0 +1,18 @@ +package com.example.dniscammer; + +import android.app.Activity; +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; + +public class ActivityDNIDetail extends Activity { + + /** + * Called when the activity is first created. + */ + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.fragment_detail); + } +} \ No newline at end of file diff --git a/app/src/main/java/com/example/dniscammer/ActivityPIN.java b/app/src/main/java/com/example/dniscammer/ActivityPIN.java new file mode 100644 index 0000000..c6d31dd --- /dev/null +++ b/app/src/main/java/com/example/dniscammer/ActivityPIN.java @@ -0,0 +1,27 @@ +package com.example.dniscammer; + +import android.app.Activity; +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; + +public class ActivityPIN extends Activity { + + /** + * Called when the activity is first created. + */ + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.fragment_pin); + + final Button buttonHome = findViewById(R.id.dniNext); + buttonHome.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent myIntent = new Intent(view.getContext(), ActivityDNI.class); + startActivityForResult(myIntent, 0); + } + }); + } +} \ No newline at end of file diff --git a/app/src/main/java/com/example/dniscammer/CustomPagerAdapter.java b/app/src/main/java/com/example/dniscammer/CustomPagerAdapter.java new file mode 100644 index 0000000..c9bdeae --- /dev/null +++ b/app/src/main/java/com/example/dniscammer/CustomPagerAdapter.java @@ -0,0 +1,47 @@ +package com.example.dniscammer; + +import android.content.Context; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +import androidx.viewpager.widget.PagerAdapter; + +public class CustomPagerAdapter extends PagerAdapter { + private Context mContext; + + public CustomPagerAdapter(Context context) { + mContext = context; + } + + @Override + public Object instantiateItem(ViewGroup collection, int position) { + ModelObject modelObject = ModelObject.values()[position]; + LayoutInflater inflater = LayoutInflater.from(mContext); + ViewGroup layout = (ViewGroup) inflater.inflate(modelObject.getLayoutResId(), collection, false); + collection.addView(layout); + return layout; + } + + @Override + public void destroyItem(ViewGroup collection, int position, Object view) { + collection.removeView((View) view); + } + + @Override + public int getCount() { + return ModelObject.values().length; + } + + @Override + public boolean isViewFromObject(View view, Object object) { + return view == object; + } + + @Override + public CharSequence getPageTitle(int position) { + ModelObject customPagerEnum = ModelObject.values()[position]; + return mContext.getString(customPagerEnum.getTitleResId()); + } + +} diff --git a/app/src/main/java/com/example/dniscammer/MainActivity.java b/app/src/main/java/com/example/dniscammer/MainActivity.java new file mode 100644 index 0000000..60ecc0e --- /dev/null +++ b/app/src/main/java/com/example/dniscammer/MainActivity.java @@ -0,0 +1,57 @@ +package com.example.dniscammer; + +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.view.Menu; +import android.widget.Button; + +import com.google.android.material.floatingactionbutton.FloatingActionButton; +import com.google.android.material.snackbar.Snackbar; +import com.google.android.material.navigation.NavigationView; +import androidx.navigation.NavController; +import androidx.navigation.Navigation; +import androidx.navigation.ui.AppBarConfiguration; +import androidx.navigation.ui.NavigationUI; +import androidx.drawerlayout.widget.DrawerLayout; +import androidx.appcompat.app.AppCompatActivity; +import androidx.appcompat.widget.Toolbar; + +public class MainActivity extends AppCompatActivity { + + private AppBarConfiguration mAppBarConfiguration; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + Toolbar toolbar = findViewById(R.id.toolbar); + setSupportActionBar(toolbar); + + DrawerLayout drawer = findViewById(R.id.drawer_layout); + NavigationView navigationView = findViewById(R.id.nav_view); + // Passing each menu ID as a set of Ids because each + // menu should be considered as top level destinations. + mAppBarConfiguration = new AppBarConfiguration.Builder( + R.id.nav_home, R.id.nav_gallery, R.id.nav_slideshow) + .setDrawerLayout(drawer) + .build(); + NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment); + NavigationUI.setupActionBarWithNavController(this, navController, mAppBarConfiguration); + NavigationUI.setupWithNavController(navigationView, navController); + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + // Inflate the menu; this adds items to the action bar if it is present. + getMenuInflater().inflate(R.menu.main, menu); + return true; + } + + @Override + public boolean onSupportNavigateUp() { + NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment); + return NavigationUI.navigateUp(navController, mAppBarConfiguration) + || super.onSupportNavigateUp(); + } +} diff --git a/app/src/main/java/com/example/dniscammer/ModelObject.java b/app/src/main/java/com/example/dniscammer/ModelObject.java new file mode 100644 index 0000000..b7ebf35 --- /dev/null +++ b/app/src/main/java/com/example/dniscammer/ModelObject.java @@ -0,0 +1,24 @@ +package com.example.dniscammer; + +public enum ModelObject { + + FRONT(R.string.front, R.layout.dnifront), + BACK(R.string.back, R.layout.dniback); + + private int mTitleResId; + private int mLayoutResId; + + ModelObject(int titleResId, int layoutResId) { + mTitleResId = titleResId; + mLayoutResId = layoutResId; + } + + public int getTitleResId() { + return mTitleResId; + } + + public int getLayoutResId() { + return mLayoutResId; + } + +} \ No newline at end of file diff --git a/app/src/main/java/com/example/dniscammer/ui/billetera/BilleteraFragment.java b/app/src/main/java/com/example/dniscammer/ui/billetera/BilleteraFragment.java new file mode 100644 index 0000000..dcc0050 --- /dev/null +++ b/app/src/main/java/com/example/dniscammer/ui/billetera/BilleteraFragment.java @@ -0,0 +1,35 @@ +package com.example.dniscammer.ui.billetera; + +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.Button; + +import androidx.annotation.NonNull; +import androidx.fragment.app.Fragment; +import androidx.lifecycle.ViewModelProviders; + +import com.example.dniscammer.R; + +public class BilleteraFragment extends Fragment { + + private BilleteraViewModel billeteraViewModel; + + public View onCreateView(@NonNull LayoutInflater inflater, + ViewGroup container, Bundle savedInstanceState) { + billeteraViewModel = + ViewModelProviders.of(this).get(BilleteraViewModel.class); + View root = inflater.inflate(R.layout.fragment_billetera, container, false); + + final Button buttonHome = (Button)root.findViewById(R.id.buttonHome); + buttonHome.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + System.out.println("hehehehehe"); + } + }); + + return root; + } +} diff --git a/app/src/main/java/com/example/dniscammer/ui/billetera/BilleteraViewModel.java b/app/src/main/java/com/example/dniscammer/ui/billetera/BilleteraViewModel.java new file mode 100644 index 0000000..a4648f3 --- /dev/null +++ b/app/src/main/java/com/example/dniscammer/ui/billetera/BilleteraViewModel.java @@ -0,0 +1,19 @@ +package com.example.dniscammer.ui.billetera; + +import androidx.lifecycle.LiveData; +import androidx.lifecycle.MutableLiveData; +import androidx.lifecycle.ViewModel; + +public class BilleteraViewModel extends ViewModel { + + private MutableLiveData mText; + + public BilleteraViewModel() { + mText = new MutableLiveData<>(); + mText.setValue("This is home fragment"); + } + + public LiveData getText() { + return mText; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/example/dniscammer/ui/gallery/GalleryFragment.java b/app/src/main/java/com/example/dniscammer/ui/gallery/GalleryFragment.java new file mode 100644 index 0000000..ea745c2 --- /dev/null +++ b/app/src/main/java/com/example/dniscammer/ui/gallery/GalleryFragment.java @@ -0,0 +1,33 @@ +package com.example.dniscammer.ui.gallery; + +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.fragment.app.Fragment; +import androidx.lifecycle.Observer; +import androidx.lifecycle.ViewModelProviders; +import com.example.dniscammer.R; + +public class GalleryFragment extends Fragment { + + private GalleryViewModel galleryViewModel; + + public View onCreateView(@NonNull LayoutInflater inflater, + ViewGroup container, Bundle savedInstanceState) { + galleryViewModel = + ViewModelProviders.of(this).get(GalleryViewModel.class); + View root = inflater.inflate(R.layout.fragment_gallery, container, false); + final TextView textView = root.findViewById(R.id.text_gallery); + galleryViewModel.getText().observe(getViewLifecycleOwner(), new Observer() { + @Override + public void onChanged(@Nullable String s) { + textView.setText(s); + } + }); + return root; + } +} diff --git a/app/src/main/java/com/example/dniscammer/ui/gallery/GalleryViewModel.java b/app/src/main/java/com/example/dniscammer/ui/gallery/GalleryViewModel.java new file mode 100644 index 0000000..7c61524 --- /dev/null +++ b/app/src/main/java/com/example/dniscammer/ui/gallery/GalleryViewModel.java @@ -0,0 +1,19 @@ +package com.example.dniscammer.ui.gallery; + +import androidx.lifecycle.LiveData; +import androidx.lifecycle.MutableLiveData; +import androidx.lifecycle.ViewModel; + +public class GalleryViewModel extends ViewModel { + + private MutableLiveData mText; + + public GalleryViewModel() { + mText = new MutableLiveData<>(); + mText.setValue("This is gallery fragment"); + } + + public LiveData getText() { + return mText; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/example/dniscammer/ui/home/HomeFragment.java b/app/src/main/java/com/example/dniscammer/ui/home/HomeFragment.java new file mode 100644 index 0000000..089fa5d --- /dev/null +++ b/app/src/main/java/com/example/dniscammer/ui/home/HomeFragment.java @@ -0,0 +1,39 @@ +package com.example.dniscammer.ui.home; + +import android.content.Intent; +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.Button; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.fragment.app.Fragment; +import androidx.lifecycle.Observer; +import androidx.lifecycle.ViewModelProviders; + +import com.example.dniscammer.Activity2; +import com.example.dniscammer.R; + +public class HomeFragment extends Fragment { + + private HomeViewModel homeViewModel; + + public View onCreateView(@NonNull LayoutInflater inflater, + ViewGroup container, Bundle savedInstanceState) { + homeViewModel = + ViewModelProviders.of(this).get(HomeViewModel.class); + View root = inflater.inflate(R.layout.fragment_home, container, false); + + final Button buttonHome = (Button)root.findViewById(R.id.buttonHome); + buttonHome.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent myIntent = new Intent(view.getContext(), Activity2.class); + startActivityForResult(myIntent, 0); + } + }); + return root; + } +} diff --git a/app/src/main/java/com/example/dniscammer/ui/home/HomeViewModel.java b/app/src/main/java/com/example/dniscammer/ui/home/HomeViewModel.java new file mode 100644 index 0000000..83647f4 --- /dev/null +++ b/app/src/main/java/com/example/dniscammer/ui/home/HomeViewModel.java @@ -0,0 +1,19 @@ +package com.example.dniscammer.ui.home; + +import androidx.lifecycle.LiveData; +import androidx.lifecycle.MutableLiveData; +import androidx.lifecycle.ViewModel; + +public class HomeViewModel extends ViewModel { + + private MutableLiveData mText; + + public HomeViewModel() { + mText = new MutableLiveData<>(); + mText.setValue("This is home fragment"); + } + + public LiveData getText() { + return mText; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/example/dniscammer/ui/slideshow/SlideshowFragment.java b/app/src/main/java/com/example/dniscammer/ui/slideshow/SlideshowFragment.java new file mode 100644 index 0000000..39745c7 --- /dev/null +++ b/app/src/main/java/com/example/dniscammer/ui/slideshow/SlideshowFragment.java @@ -0,0 +1,26 @@ +package com.example.dniscammer.ui.slideshow; + +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.fragment.app.Fragment; +import androidx.lifecycle.Observer; +import androidx.lifecycle.ViewModelProviders; +import com.example.dniscammer.R; + +public class SlideshowFragment extends Fragment { + + private SlideshowViewModel slideshowViewModel; + + public View onCreateView(@NonNull LayoutInflater inflater, + ViewGroup container, Bundle savedInstanceState) { + slideshowViewModel = + ViewModelProviders.of(this).get(SlideshowViewModel.class); + View root = inflater.inflate(R.layout.fragment_slideshow, container, false); + return root; + } +} diff --git a/app/src/main/java/com/example/dniscammer/ui/slideshow/SlideshowViewModel.java b/app/src/main/java/com/example/dniscammer/ui/slideshow/SlideshowViewModel.java new file mode 100644 index 0000000..d373579 --- /dev/null +++ b/app/src/main/java/com/example/dniscammer/ui/slideshow/SlideshowViewModel.java @@ -0,0 +1,19 @@ +package com.example.dniscammer.ui.slideshow; + +import androidx.lifecycle.LiveData; +import androidx.lifecycle.MutableLiveData; +import androidx.lifecycle.ViewModel; + +public class SlideshowViewModel extends ViewModel { + + private MutableLiveData mText; + + public SlideshowViewModel() { + mText = new MutableLiveData<>(); + mText.setValue("This is slideshow fragment"); + } + + public LiveData getText() { + return mText; + } +} \ No newline at end of file diff --git a/app/src/main/res/drawable-v21/back.png b/app/src/main/res/drawable-v21/back.png new file mode 100644 index 0000000..525236d Binary files /dev/null and b/app/src/main/res/drawable-v21/back.png differ diff --git a/app/src/main/res/drawable-v21/billetera.png b/app/src/main/res/drawable-v21/billetera.png new file mode 100644 index 0000000..1b86df1 Binary files /dev/null and b/app/src/main/res/drawable-v21/billetera.png differ diff --git a/app/src/main/res/drawable-v21/billetera2.png b/app/src/main/res/drawable-v21/billetera2.png new file mode 100644 index 0000000..2e8de88 Binary files /dev/null and b/app/src/main/res/drawable-v21/billetera2.png differ diff --git a/app/src/main/res/drawable-v21/billetera3.png b/app/src/main/res/drawable-v21/billetera3.png new file mode 100644 index 0000000..3a339c9 Binary files /dev/null and b/app/src/main/res/drawable-v21/billetera3.png differ diff --git a/app/src/main/res/drawable-v21/dni1.png b/app/src/main/res/drawable-v21/dni1.png new file mode 100644 index 0000000..bdaf7de Binary files /dev/null and b/app/src/main/res/drawable-v21/dni1.png differ diff --git a/app/src/main/res/drawable-v21/dni2.png b/app/src/main/res/drawable-v21/dni2.png new file mode 100644 index 0000000..8a798ff Binary files /dev/null and b/app/src/main/res/drawable-v21/dni2.png differ diff --git a/app/src/main/res/drawable-v21/dnidetail.png b/app/src/main/res/drawable-v21/dnidetail.png new file mode 100644 index 0000000..c84e55f Binary files /dev/null and b/app/src/main/res/drawable-v21/dnidetail.png differ diff --git a/app/src/main/res/drawable-v21/drawer.png b/app/src/main/res/drawable-v21/drawer.png new file mode 100644 index 0000000..5976295 Binary files /dev/null and b/app/src/main/res/drawable-v21/drawer.png differ diff --git a/app/src/main/res/drawable-v21/front.png b/app/src/main/res/drawable-v21/front.png new file mode 100644 index 0000000..1bf9296 Binary files /dev/null and b/app/src/main/res/drawable-v21/front.png differ diff --git a/app/src/main/res/drawable-v21/home.png b/app/src/main/res/drawable-v21/home.png new file mode 100644 index 0000000..b3a4957 Binary files /dev/null and b/app/src/main/res/drawable-v21/home.png differ diff --git a/app/src/main/res/drawable-v21/ic_menu_camera.xml b/app/src/main/res/drawable-v21/ic_menu_camera.xml new file mode 100644 index 0000000..0a54e80 --- /dev/null +++ b/app/src/main/res/drawable-v21/ic_menu_camera.xml @@ -0,0 +1,12 @@ + + + + diff --git a/app/src/main/res/drawable-v21/ic_menu_gallery.xml b/app/src/main/res/drawable-v21/ic_menu_gallery.xml new file mode 100644 index 0000000..dc44a72 --- /dev/null +++ b/app/src/main/res/drawable-v21/ic_menu_gallery.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-v21/ic_menu_slideshow.xml b/app/src/main/res/drawable-v21/ic_menu_slideshow.xml new file mode 100644 index 0000000..a306e81 --- /dev/null +++ b/app/src/main/res/drawable-v21/ic_menu_slideshow.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-v21/pin.png b/app/src/main/res/drawable-v21/pin.png new file mode 100644 index 0000000..4fc861c Binary files /dev/null and b/app/src/main/res/drawable-v21/pin.png differ diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/ic_person_black_24dp.xml b/app/src/main/res/drawable/ic_person_black_24dp.xml new file mode 100644 index 0000000..d7366bd --- /dev/null +++ b/app/src/main/res/drawable/ic_person_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/drawable/side_nav_bar.xml b/app/src/main/res/drawable/side_nav_bar.xml new file mode 100644 index 0000000..6d81870 --- /dev/null +++ b/app/src/main/res/drawable/side_nav_bar.xml @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..b0a74ec --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,26 @@ + + + + + + + + diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xml new file mode 100644 index 0000000..aca9a6f --- /dev/null +++ b/app/src/main/res/layout/app_bar_main.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/content_main.xml b/app/src/main/res/layout/content_main.xml new file mode 100644 index 0000000..1c2a13d --- /dev/null +++ b/app/src/main/res/layout/content_main.xml @@ -0,0 +1,22 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/dniback.xml b/app/src/main/res/layout/dniback.xml new file mode 100644 index 0000000..6533428 --- /dev/null +++ b/app/src/main/res/layout/dniback.xml @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/app/src/main/res/layout/dnifront.xml b/app/src/main/res/layout/dnifront.xml new file mode 100644 index 0000000..0dbe993 --- /dev/null +++ b/app/src/main/res/layout/dnifront.xml @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_billetera.xml b/app/src/main/res/layout/fragment_billetera.xml new file mode 100644 index 0000000..1f7aa9e --- /dev/null +++ b/app/src/main/res/layout/fragment_billetera.xml @@ -0,0 +1,30 @@ + + + +