diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/.gitignore b/Android/Mahesh/AndroidSplashScreenAssignment/.gitignore
new file mode 100644
index 00000000..aa724b77
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/.gitignore
@@ -0,0 +1,15 @@
+*.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
+local.properties
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/.idea/.gitignore b/Android/Mahesh/AndroidSplashScreenAssignment/.idea/.gitignore
new file mode 100644
index 00000000..26d33521
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/.idea/compiler.xml b/Android/Mahesh/AndroidSplashScreenAssignment/.idea/compiler.xml
new file mode 100644
index 00000000..fb7f4a8a
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/.idea/gradle.xml b/Android/Mahesh/AndroidSplashScreenAssignment/.idea/gradle.xml
new file mode 100644
index 00000000..5cd135a0
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/.idea/gradle.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/.idea/jarRepositories.xml b/Android/Mahesh/AndroidSplashScreenAssignment/.idea/jarRepositories.xml
new file mode 100644
index 00000000..0380d8d3
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/.idea/jarRepositories.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/.idea/misc.xml b/Android/Mahesh/AndroidSplashScreenAssignment/.idea/misc.xml
new file mode 100644
index 00000000..6199cc2a
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/.idea/misc.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/.idea/runConfigurations.xml b/Android/Mahesh/AndroidSplashScreenAssignment/.idea/runConfigurations.xml
new file mode 100644
index 00000000..797acea5
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/.idea/runConfigurations.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/.gitignore b/Android/Mahesh/AndroidSplashScreenAssignment/app/.gitignore
new file mode 100644
index 00000000..42afabfd
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/build.gradle b/Android/Mahesh/AndroidSplashScreenAssignment/app/build.gradle
new file mode 100644
index 00000000..1b60c35c
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/build.gradle
@@ -0,0 +1,46 @@
+plugins {
+ id 'com.android.application'
+}
+
+android {
+ compileSdkVersion 30
+ buildToolsVersion "30.0.3"
+
+ defaultConfig {
+ applicationId "com.example.androidsplashscreenassignment"
+ minSdkVersion 23
+ targetSdkVersion 30
+ versionCode 1
+ versionName "1.0"
+
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+ buildFeatures {
+ viewBinding true
+ }
+}
+
+dependencies {
+
+ implementation 'androidx.appcompat:appcompat:1.3.0'
+ implementation 'com.google.android.material:material:1.3.0'
+ implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
+ implementation 'androidx.legacy:legacy-support-v4:1.0.0'
+ implementation 'androidx.navigation:navigation-fragment:2.3.5'
+ implementation 'androidx.navigation:navigation-ui:2.3.5'
+ testImplementation 'junit:junit:4.+'
+ androidTestImplementation 'androidx.test.ext:junit:1.1.2'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
+ implementation "androidx.viewpager2:viewpager2:1.0.0"
+}
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/proguard-rules.pro b/Android/Mahesh/AndroidSplashScreenAssignment/app/proguard-rules.pro
new file mode 100644
index 00000000..481bb434
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/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
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/androidTest/java/com/example/androidsplashscreenassignment/ExampleInstrumentedTest.java b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/androidTest/java/com/example/androidsplashscreenassignment/ExampleInstrumentedTest.java
new file mode 100644
index 00000000..b2480c15
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/androidTest/java/com/example/androidsplashscreenassignment/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.example.androidsplashscreenassignment;
+
+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.androidsplashscreenassignment", appContext.getPackageName());
+ }
+}
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/AndroidManifest.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/AndroidManifest.xml
new file mode 100644
index 00000000..a67384aa
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/AndroidManifest.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/FirstFragment.java b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/FirstFragment.java
new file mode 100644
index 00000000..0cc80ef7
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/FirstFragment.java
@@ -0,0 +1,47 @@
+package com.example.androidsplashscreenassignment;
+
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import androidx.annotation.NonNull;
+import androidx.fragment.app.Fragment;
+import androidx.navigation.fragment.NavHostFragment;
+
+import com.example.androidsplashscreenassignment.databinding.FragmentFirstBinding;
+
+public class FirstFragment extends Fragment {
+
+ private FragmentFirstBinding binding;
+
+ @Override
+ public View onCreateView(
+ LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState
+ ) {
+
+ binding = FragmentFirstBinding.inflate(inflater, container, false);
+ return binding.getRoot();
+
+ }
+
+ public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
+ super.onViewCreated(view, savedInstanceState);
+
+ binding.buttonFirst.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ NavHostFragment.findNavController(FirstFragment.this)
+ .navigate(R.id.action_FirstFragment_to_SecondFragment);
+ }
+ });
+ }
+
+ @Override
+ public void onDestroyView() {
+ super.onDestroyView();
+ binding = null;
+ }
+
+}
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/HomeScreen.java b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/HomeScreen.java
new file mode 100644
index 00000000..8f3db2fb
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/HomeScreen.java
@@ -0,0 +1,51 @@
+package com.example.androidsplashscreenassignment;
+
+import android.os.Bundle;
+
+import com.google.android.material.snackbar.Snackbar;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+import android.view.View;
+
+import androidx.navigation.NavController;
+import androidx.navigation.Navigation;
+import androidx.navigation.ui.AppBarConfiguration;
+import androidx.navigation.ui.NavigationUI;
+
+import com.example.androidsplashscreenassignment.databinding.ActivityHomeScreenBinding;
+
+public class HomeScreen extends AppCompatActivity {
+
+ private AppBarConfiguration appBarConfiguration;
+ private ActivityHomeScreenBinding binding;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ binding = ActivityHomeScreenBinding.inflate(getLayoutInflater());
+ setContentView(binding.getRoot());
+
+ setSupportActionBar(binding.toolbar);
+
+ NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment_content_home_screen);
+ appBarConfiguration = new AppBarConfiguration.Builder(navController.getGraph()).build();
+ NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration);
+
+ binding.fab.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
+ .setAction("Action", null).show();
+ }
+ });
+ }
+
+ @Override
+ public boolean onSupportNavigateUp() {
+ NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment_content_home_screen);
+ return NavigationUI.navigateUp(navController, appBarConfiguration)
+ || super.onSupportNavigateUp();
+ }
+}
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/ScreenSlidePagerActivity.java b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/ScreenSlidePagerActivity.java
new file mode 100644
index 00000000..77239f1c
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/ScreenSlidePagerActivity.java
@@ -0,0 +1,101 @@
+package com.example.androidsplashscreenassignment;
+
+import androidx.fragment.app.Fragment;
+import androidx.fragment.app.FragmentActivity;
+import androidx.viewpager2.adapter.FragmentStateAdapter;
+import androidx.viewpager2.widget.ViewPager2;
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.View;
+
+public class ScreenSlidePagerActivity extends FragmentActivity {
+ /**
+ * The number of pages (wizard steps) to show in this demo.
+ */
+ private static final int NUM_PAGES = 3;
+
+ /**
+ * The pager widget, which handles animation and allows swiping horizontally to access previous
+ * and next wizard steps.
+ */
+ private ViewPager2 viewPager;
+
+ /**
+ * The pager adapter, which provides the pages to the view pager widget.
+ */
+ private FragmentStateAdapter pagerAdapter;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_screen_slide);
+
+ // Instantiate a ViewPager2 and a PagerAdapter.
+ viewPager = findViewById(R.id.pager);
+ pagerAdapter = new ScreenSlidePagerAdapter(this);
+ viewPager.setAdapter(pagerAdapter);
+ }
+
+ @Override
+ public void onBackPressed() {
+ if (viewPager.getCurrentItem() == 0) {
+ // If the user is currently looking at the first step, allow the system to handle the
+ // Back button. This calls finish() on this activity and pops the back stack.
+ super.onBackPressed();
+ } else {
+ // Otherwise, select the previous step.
+ viewPager.setCurrentItem(viewPager.getCurrentItem() - 1);
+ }
+ }
+
+ /**
+ * A simple pager adapter that represents 3 ScreenSlidePageFragment objects, in
+ * sequence.
+ */
+ private class ScreenSlidePagerAdapter extends FragmentStateAdapter {
+ public ScreenSlidePagerAdapter(FragmentActivity fa) {
+ super(fa);
+ }
+
+ @Override
+ public Fragment createFragment(int position) {
+ return new SplashScreenFragment(position);
+ }
+
+ @Override
+ public int getItemCount() {
+ return NUM_PAGES;
+ }
+ }
+
+ /* Button OnClick Methods */
+ public void onClickNext(View view)
+ {
+ int currentItem = viewPager.getCurrentItem();
+ // Next button will go to the next page, except in the last page case
+ if (currentItem < NUM_PAGES - 1)
+ {
+ viewPager.setCurrentItem(viewPager.getCurrentItem() + 1);
+ }
+ // Otherwise, the process continues
+ else
+ {
+ goToFirstActivity();
+ }
+ }
+ public void onClickBack(View view)
+ {
+ onBackPressed();
+ }
+ public void onClickSkip(View view)
+ {
+ // The Activity is skipped, so the first activity after splash screen is called
+ goToFirstActivity();
+ }
+ private void goToFirstActivity()
+ {
+ Intent goToNextActivity = new Intent(getApplicationContext(), HomeScreen.class);
+ startActivity(goToNextActivity);
+ }
+}
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/SecondFragment.java b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/SecondFragment.java
new file mode 100644
index 00000000..ffa452d9
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/SecondFragment.java
@@ -0,0 +1,47 @@
+package com.example.androidsplashscreenassignment;
+
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import androidx.annotation.NonNull;
+import androidx.fragment.app.Fragment;
+import androidx.navigation.fragment.NavHostFragment;
+
+import com.example.androidsplashscreenassignment.databinding.FragmentSecondBinding;
+
+public class SecondFragment extends Fragment {
+
+ private FragmentSecondBinding binding;
+
+ @Override
+ public View onCreateView(
+ LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState
+ ) {
+
+ binding = FragmentSecondBinding.inflate(inflater, container, false);
+ return binding.getRoot();
+
+ }
+
+ public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
+ super.onViewCreated(view, savedInstanceState);
+
+ binding.buttonSecond.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ NavHostFragment.findNavController(SecondFragment.this)
+ .navigate(R.id.action_SecondFragment_to_FirstFragment);
+ }
+ });
+ }
+
+ @Override
+ public void onDestroyView() {
+ super.onDestroyView();
+ binding = null;
+ }
+
+}
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/SplashScreenData.java b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/SplashScreenData.java
new file mode 100644
index 00000000..ff9c287e
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/SplashScreenData.java
@@ -0,0 +1,37 @@
+package com.example.androidsplashscreenassignment;
+
+import java.util.HashMap;
+
+public class SplashScreenData {
+
+ static String splashTitle1 = "Hello.";
+ static String splashTitle2 = "Easy to Use.";
+ static String splashTitle3 = "Get Started Today.";
+
+ static String splashTextPage1 = "Welcome to LeafScan, an indispensable scanning service to suit your botanical requirements.";
+ static String splashTextPage2 = "Quickly identify and locate any and all plant species with a few taps.";
+ static String splashTextPage3 = "Take the first step of your green journey today.";
+
+ /*
+ In the future, should change implementation of splash text to more sophisticated structure
+ */
+ public static String GetSplashTitle(int position)
+ {
+ switch (position){
+ case 0: return splashTitle1;
+ case 1: return splashTitle2;
+ case 2: return splashTitle3;
+ default: return "";
+ }
+ }
+ public static String GetSplashText(int position)
+ {
+ switch (position){
+ case 0: return splashTextPage1;
+ case 1: return splashTextPage2;
+ case 2: return splashTextPage3;
+ default: return "";
+ }
+ }
+
+}
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/SplashScreenFragment.java b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/SplashScreenFragment.java
new file mode 100644
index 00000000..319a3532
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/java/com/example/androidsplashscreenassignment/SplashScreenFragment.java
@@ -0,0 +1,40 @@
+package com.example.androidsplashscreenassignment;
+
+import android.os.Bundle;
+
+import androidx.fragment.app.Fragment;
+
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.TextView;
+
+import java.util.Locale;
+
+public class SplashScreenFragment extends Fragment {
+
+ private final int splashPosition;
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ View splashPageView = inflater.inflate(R.layout.activity_launch, container, false);
+
+ setSplashTextContent(splashPageView);
+
+ return splashPageView;
+
+ }
+
+ private void setSplashTextContent(View splashPageView) {
+ TextView splashText1 = (TextView) splashPageView.findViewById(R.id.splashText1);
+ splashText1.setText(SplashScreenData.GetSplashText(splashPosition));
+
+ TextView splashTitle = (TextView) splashPageView.findViewById(R.id.splashTitle);
+ splashTitle.setText(SplashScreenData.GetSplashTitle(splashPosition));
+ }
+
+ public SplashScreenFragment(int position)
+ {
+ splashPosition = position;
+ }
+}
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 00000000..2b068d11
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/drawable/ic_launcher_background.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 00000000..07d5da9c
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/drawable/ic_leaf_vector_asset.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/drawable/ic_leaf_vector_asset.xml
new file mode 100644
index 00000000..76941e98
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/drawable/ic_leaf_vector_asset.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/drawable/splash_screen_gradient.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/drawable/splash_screen_gradient.xml
new file mode 100644
index 00000000..bb690964
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/drawable/splash_screen_gradient.xml
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/activity_home_screen.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/activity_home_screen.xml
new file mode 100644
index 00000000..b28ad30f
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/activity_home_screen.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/activity_launch.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/activity_launch.xml
new file mode 100644
index 00000000..fad1cf92
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/activity_launch.xml
@@ -0,0 +1,97 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/activity_screen_slide.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/activity_screen_slide.xml
new file mode 100644
index 00000000..9ee6a6aa
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/activity_screen_slide.xml
@@ -0,0 +1,6 @@
+
+
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/content_home_screen.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/content_home_screen.xml
new file mode 100644
index 00000000..da0a4a92
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/content_home_screen.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/fragment_first.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/fragment_first.xml
new file mode 100644
index 00000000..0194fa1a
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/fragment_first.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/fragment_second.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/fragment_second.xml
new file mode 100644
index 00000000..77eedbb3
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/layout/fragment_second.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 00000000..eca70cfe
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 00000000..eca70cfe
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-hdpi/ic_launcher.png b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 00000000..a571e600
Binary files /dev/null and b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 00000000..61da551c
Binary files /dev/null and b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-mdpi/ic_launcher.png b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 00000000..c41dd285
Binary files /dev/null and b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 00000000..db5080a7
Binary files /dev/null and b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 00000000..6dba46da
Binary files /dev/null and b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..da31a871
Binary files /dev/null and b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 00000000..15ac6817
Binary files /dev/null and b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..b216f2d3
Binary files /dev/null and b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 00000000..f25a4197
Binary files /dev/null and b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..e96783cc
Binary files /dev/null and b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/navigation/nav_graph.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/navigation/nav_graph.xml
new file mode 100644
index 00000000..e42be02f
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/navigation/nav_graph.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/values-night/themes.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/values-night/themes.xml
new file mode 100644
index 00000000..3cf898ae
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/values-night/themes.xml
@@ -0,0 +1,16 @@
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/values/colors.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/values/colors.xml
new file mode 100644
index 00000000..f8c6127d
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/values/colors.xml
@@ -0,0 +1,10 @@
+
+
+ #FFBB86FC
+ #FF6200EE
+ #FF3700B3
+ #FF03DAC5
+ #FF018786
+ #FF000000
+ #FFFFFFFF
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/values/dimens.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/values/dimens.xml
new file mode 100644
index 00000000..125df871
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/values/dimens.xml
@@ -0,0 +1,3 @@
+
+ 16dp
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/values/strings.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/values/strings.xml
new file mode 100644
index 00000000..9c564f38
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/values/strings.xml
@@ -0,0 +1,15 @@
+
+ AndroidSplashScreenAssignment
+
+ Hello blank fragment
+ Lorem ipsum
+ HomeScreen
+
+ First Fragment
+ Second Fragment
+ Next
+ Previous
+
+ Hello first fragment
+ Hello second fragment. Arg: %1$s
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/values/themes.xml b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/values/themes.xml
new file mode 100644
index 00000000..f3555160
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/main/res/values/themes.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/app/src/test/java/com/example/androidsplashscreenassignment/ExampleUnitTest.java b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/test/java/com/example/androidsplashscreenassignment/ExampleUnitTest.java
new file mode 100644
index 00000000..5f9e4ff6
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/app/src/test/java/com/example/androidsplashscreenassignment/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.example.androidsplashscreenassignment;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/build.gradle b/Android/Mahesh/AndroidSplashScreenAssignment/build.gradle
new file mode 100644
index 00000000..9ade2a75
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/build.gradle
@@ -0,0 +1,25 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+buildscript {
+ repositories {
+ google()
+ mavenCentral()
+ }
+ dependencies {
+ classpath "com.android.tools.build:gradle:4.2.1"
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ jcenter() // Warning: this repository is going to shut down soon
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/gradle.properties b/Android/Mahesh/AndroidSplashScreenAssignment/gradle.properties
new file mode 100644
index 00000000..6826e61b
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/gradle.properties
@@ -0,0 +1,17 @@
+# 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=-Xmx2048m -Dfile.encoding=UTF-8
+# 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
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app"s APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
\ No newline at end of file
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/gradle/wrapper/gradle-wrapper.jar b/Android/Mahesh/AndroidSplashScreenAssignment/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..f6b961fd
Binary files /dev/null and b/Android/Mahesh/AndroidSplashScreenAssignment/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/gradle/wrapper/gradle-wrapper.properties b/Android/Mahesh/AndroidSplashScreenAssignment/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..54e09a59
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Fri May 28 19:15:08 IST 2021
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/gradlew b/Android/Mahesh/AndroidSplashScreenAssignment/gradlew
new file mode 100644
index 00000000..cccdd3d5
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/gradlew
@@ -0,0 +1,172 @@
+#!/usr/bin/env sh
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# 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
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+# 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
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+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" -a "$nonstop" = "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
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=$(save "$@")
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
+if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
+ cd "$(dirname "$0")"
+fi
+
+exec "$JAVACMD" "$@"
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/gradlew.bat b/Android/Mahesh/AndroidSplashScreenAssignment/gradlew.bat
new file mode 100644
index 00000000..f9553162
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/gradlew.bat
@@ -0,0 +1,84 @@
+@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
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@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=
+
+@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 Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_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=%*
+
+: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
diff --git a/Android/Mahesh/AndroidSplashScreenAssignment/settings.gradle b/Android/Mahesh/AndroidSplashScreenAssignment/settings.gradle
new file mode 100644
index 00000000..7b29356a
--- /dev/null
+++ b/Android/Mahesh/AndroidSplashScreenAssignment/settings.gradle
@@ -0,0 +1,2 @@
+rootProject.name = "AndroidSplashScreenAssignment"
+include ':app'
diff --git a/Android/Mahesh/NewsFeedAssignment/.gitignore b/Android/Mahesh/NewsFeedAssignment/.gitignore
new file mode 100644
index 00000000..aa724b77
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/.gitignore
@@ -0,0 +1,15 @@
+*.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
+local.properties
diff --git a/Android/Mahesh/NewsFeedAssignment/.idea/.gitignore b/Android/Mahesh/NewsFeedAssignment/.idea/.gitignore
new file mode 100644
index 00000000..26d33521
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/Android/Mahesh/NewsFeedAssignment/.idea/compiler.xml b/Android/Mahesh/NewsFeedAssignment/.idea/compiler.xml
new file mode 100644
index 00000000..fb7f4a8a
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/.idea/gradle.xml b/Android/Mahesh/NewsFeedAssignment/.idea/gradle.xml
new file mode 100644
index 00000000..5cd135a0
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/.idea/gradle.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/.idea/jarRepositories.xml b/Android/Mahesh/NewsFeedAssignment/.idea/jarRepositories.xml
new file mode 100644
index 00000000..0380d8d3
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/.idea/jarRepositories.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/.idea/misc.xml b/Android/Mahesh/NewsFeedAssignment/.idea/misc.xml
new file mode 100644
index 00000000..3935b731
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/.idea/misc.xml
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/.idea/runConfigurations.xml b/Android/Mahesh/NewsFeedAssignment/.idea/runConfigurations.xml
new file mode 100644
index 00000000..797acea5
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/.idea/runConfigurations.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/.gitignore b/Android/Mahesh/NewsFeedAssignment/app/.gitignore
new file mode 100644
index 00000000..42afabfd
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/build.gradle b/Android/Mahesh/NewsFeedAssignment/app/build.gradle
new file mode 100644
index 00000000..d7dd43b0
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/build.gradle
@@ -0,0 +1,46 @@
+plugins {
+ id 'com.android.application'
+}
+
+android {
+ compileSdkVersion 30
+ buildToolsVersion "30.0.3"
+
+ defaultConfig {
+ applicationId "com.example.newsfeedassignment"
+ minSdkVersion 28
+ targetSdkVersion 30
+ versionCode 1
+ versionName "1.0"
+
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+}
+
+dependencies {
+
+ implementation 'androidx.appcompat:appcompat:1.3.0'
+ implementation 'com.google.android.material:material:1.3.0'
+ implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
+ implementation 'androidx.viewpager:viewpager:1.0.0'
+ testImplementation 'junit:junit:4.+'
+ androidTestImplementation 'androidx.test.ext:junit:1.1.2'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
+
+ implementation 'com.koushikdutta.ion:ion:3.1.0'
+ implementation 'com.google.code.gson:gson:2.8.6'
+ implementation 'com.koushikdutta.async:androidasync:2.2.1'
+ implementation 'com.squareup.picasso:picasso:2.71828'
+
+}
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/proguard-rules.pro b/Android/Mahesh/NewsFeedAssignment/app/proguard-rules.pro
new file mode 100644
index 00000000..481bb434
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/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
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.java b/Android/Mahesh/NewsFeedAssignment/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.java
new file mode 100644
index 00000000..45a3da7d
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.example.newsfeedassignment;
+
+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.myapplication", appContext.getPackageName());
+ }
+}
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/AndroidManifest.xml b/Android/Mahesh/NewsFeedAssignment/app/src/main/AndroidManifest.xml
new file mode 100644
index 00000000..469c9a59
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/AndroidManifest.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/DetailsActivity.java b/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/DetailsActivity.java
new file mode 100644
index 00000000..0e08ec2c
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/DetailsActivity.java
@@ -0,0 +1,48 @@
+package com.example.newsfeedassignment;
+
+import androidx.appcompat.app.ActionBar;
+import androidx.appcompat.app.AppCompatActivity;
+
+import android.content.Intent;
+import android.graphics.Color;
+import android.graphics.drawable.ColorDrawable;
+import android.os.Bundle;
+import android.view.MenuItem;
+import android.webkit.WebView;
+import android.webkit.WebViewClient;
+
+public class DetailsActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_details);
+
+ WebView editWeb = findViewById(R.id.web);
+
+ // To override url redirect
+ editWeb.setWebViewClient(new WebViewClient());
+
+ Intent intent = getIntent();
+
+ String url = intent.getStringExtra("url");
+ editWeb.loadUrl(url);
+
+ ActionBar bar = getSupportActionBar();
+ bar.setTitle("Detailed News");
+ bar.setBackgroundDrawable(new ColorDrawable(Color.parseColor("blue")));
+
+ bar.setDisplayHomeAsUpEnabled(true);
+ bar.setDisplayShowHomeEnabled(true);
+
+ }
+
+ public boolean onOptionsItemSelected(MenuItem item) {
+ if(item.getItemId() == android.R.id.home)
+ {
+ finish();
+ }
+
+ return super.onOptionsItemSelected(item);
+ }
+}
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/ItemAdapter.java b/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/ItemAdapter.java
new file mode 100644
index 00000000..f8147d4c
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/ItemAdapter.java
@@ -0,0 +1,118 @@
+package com.example.newsfeedassignment;
+
+import android.content.Context;
+import android.content.Intent;
+import android.util.Log;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.Button;
+import android.widget.ImageView;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+
+import androidx.annotation.NonNull;
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.example.newsfeedassignment.Model.ModelData;
+import com.squareup.picasso.Picasso;
+
+import java.util.ArrayList;
+
+public class ItemAdapter extends RecyclerView.Adapter {
+ Context context;
+
+ private final ArrayList newsItemList;
+
+ public ItemAdapter(Context context, ArrayList newsItemList) {
+ this.context = context;
+ this.newsItemList = newsItemList;
+
+ }
+
+ @NonNull
+ @Override
+ public AdapterViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {
+ LayoutInflater inflater = LayoutInflater.from(this.context);
+ LinearLayout layout = (LinearLayout) inflater.inflate(R.layout.layout_news_item, null);
+
+ return new AdapterViewHolder(layout);
+ }
+
+ @Override
+ public void onBindViewHolder(@NonNull AdapterViewHolder holder, final int i) {
+ final ModelData item = newsItemList.get(i);
+
+ String title = item.getTitle();
+ String author = item.getAuthor();
+ String date = item.getDate();
+ String urlToImage = item.getUrlToImage();
+ String description = item.getDescription();
+ final String url = item.getUrl();
+
+ if(title!=null)
+ holder.titleText.setText(title);
+ // If the author name wasn't provided, the author item will not display on the news fragment
+ if(author!=null && !author.equals("null"))
+ holder.authorText.setText("Author "+author);
+ if(date!=null)
+ holder.dateText.setText("published at: "+date);
+ if(urlToImage!=null && isValidImgUrl(urlToImage))
+ {Log.d("ITEMADAPTER", "Attempting to load img url: " + urlToImage);
+ Picasso.get().load(urlToImage).into(holder.newsItemImageView);}
+ else holder.newsItemImageView.setVisibility(View.GONE);
+ if (description != null && !description.equals("null")){
+ holder.descriptionText.setText(description);
+ }
+
+ holder.detailsButton.setOnClickListener(new View.OnClickListener() {
+
+ @Override
+ public void onClick(View v) {
+ // Method will create the activity that shows the news article in detail
+ Intent intent = new Intent(context,DetailsActivity.class);
+ intent.putExtra("url",url);
+ context.startActivity(intent);
+ }
+ });
+
+ }
+
+ private boolean isValidImgUrl(String urlToImage) {
+ boolean outBool = true;
+ if (urlToImage.isEmpty() || urlToImage.equals("null"))
+ outBool = false;
+ else{
+ if (!urlToImage.startsWith("http"))
+ outBool = false;
+ }
+ return outBool;
+ }
+
+
+ @Override
+ public int getItemCount() {
+ return newsItemList.size();
+ }
+
+ class AdapterViewHolder extends RecyclerView.ViewHolder {
+
+ TextView titleText;
+ TextView authorText;
+ TextView dateText;
+ TextView descriptionText;
+ ImageView newsItemImageView;
+ Button detailsButton;
+ AdapterViewHolder(@NonNull LinearLayout itemView) {
+ super(itemView);
+
+ titleText = itemView.findViewById(R.id.newsItemTitle);
+ newsItemImageView = itemView.findViewById(R.id.newsItemImageView);
+ authorText = itemView.findViewById(R.id.newsItemAuthor);
+ dateText = itemView.findViewById(R.id.newsItemDate);
+ detailsButton = itemView.findViewById(R.id.detailsButton);
+ descriptionText = itemView.findViewById(R.id.newsItemDesc);
+ }
+
+ }
+}
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/MainActivity.java b/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/MainActivity.java
new file mode 100644
index 00000000..1477b57e
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/MainActivity.java
@@ -0,0 +1,40 @@
+package com.example.newsfeedassignment;
+
+import androidx.appcompat.app.ActionBar;
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.viewpager.widget.ViewPager;
+
+import android.graphics.Color;
+import android.graphics.drawable.ColorDrawable;
+import android.os.Bundle;
+
+import com.google.android.material.tabs.TabLayout;
+
+public class MainActivity extends AppCompatActivity {
+
+ private com.google.android.material.tabs.TabLayout tabLayout;
+ private ViewPager viewPager;
+ private NewsPageAdapter adapter;
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+ viewPager = findViewById(R.id.viewPager);
+ tabLayout = findViewById(R.id.tabLayout);
+
+ adapter = new NewsPageAdapter(getSupportFragmentManager());
+ viewPager.setAdapter(adapter);
+
+ tabLayout.setTabsFromPagerAdapter(adapter);
+
+ tabLayout.setupWithViewPager(viewPager);
+ viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tabLayout));
+
+ ActionBar bar = getSupportActionBar();
+ bar.setTitle("News list");
+ bar.setBackgroundDrawable(new ColorDrawable(Color.parseColor("blue")));
+
+ }
+
+}
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/Model/ModelData.java b/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/Model/ModelData.java
new file mode 100644
index 00000000..8cfde8b8
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/Model/ModelData.java
@@ -0,0 +1,33 @@
+package com.example.newsfeedassignment.Model;
+
+public class ModelData {
+
+ String title;
+ String author;
+ String date;
+ String urlToImage;
+ String url;
+ String description;
+
+ public ModelData(String title, String author, String date, String urlToImage, String url, String description) {
+ this.title = title;
+ this.author = author;
+ this.date = date;
+ this.urlToImage = urlToImage;
+ this.url = url;
+ this.description = description;}
+
+ public String getTitle() {return title; }
+ public void setTitle(String title) {this.title = title; }
+ public String getAuthor() {return author;}
+ public void setAuthor(String author) {this.author = author;}
+ public String getDate() {return date;}
+ public void setDate(String date) {this.date = date;}
+ public String getUrlToImage() {return urlToImage;}
+ public void setUrlToImage(String urlToImage) {this.urlToImage = urlToImage;}
+ public String getUrl() {return url;}
+ public void setUrl(String url) {this.url = url;}
+ public String getDescription() {return description; }
+ public void setDescription(String description) {this.description = description;}
+
+}
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/NewsFragment.java b/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/NewsFragment.java
new file mode 100644
index 00000000..afee7c42
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/NewsFragment.java
@@ -0,0 +1,158 @@
+package com.example.newsfeedassignment;
+
+import android.content.Context;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.fragment.app.Fragment;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.example.newsfeedassignment.Model.ModelData;
+import com.google.gson.JsonArray;
+import com.google.gson.JsonObject;
+import com.koushikdutta.async.future.FutureCallback;
+import com.koushikdutta.ion.Ion;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+
+public class NewsFragment extends Fragment {
+
+ private static final String myAPIKey = "9f123e448c9bc0cda31d72b63e2b389f";
+ private static final String apiBaseUrl = "http://api.mediastack.com/v1/news";
+ private static final HashMap newsSiteNames;
+ private static final int NEWS_SITE_COUNT;
+ private static final String TAG = "NEWSAPICALLS";
+
+ static {
+ newsSiteNames = new HashMap();
+ newsSiteNames.put(0,"bbc");
+ newsSiteNames.put(1,"cnn");
+ NEWS_SITE_COUNT = newsSiteNames.size();
+ }
+
+ ArrayList newsItems = new ArrayList <>();
+ ItemAdapter adapter;
+
+ Context context;
+ int tabPosition;
+ public NewsFragment() {
+ this.tabPosition = 0;
+ }
+
+ public NewsFragment(int i) {
+ this.tabPosition = i;
+ }
+
+
+ @Nullable
+ @Override
+ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+
+ return inflater.inflate(R.layout.layout_news_recyclerview, container, false);
+
+ }
+
+
+ @Override
+ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
+ super.onViewCreated(view, savedInstanceState);
+
+ final RecyclerView recyclerView = getView().findViewById(R.id.recyclerView);
+
+ String newsSiteName="";
+ if (tabPosition >= 0 && tabPosition < NEWS_SITE_COUNT - 1)
+ {
+ newsSiteName = newsSiteNames.get(tabPosition);
+ }
+ else
+ {
+ newsSiteName = newsSiteNames.get(NEWS_SITE_COUNT - 1);
+ }
+
+ String newsRequestUrl = apiBaseUrl + "?access_key=" + myAPIKey + "&sources=" + newsSiteName;
+
+ String finalNewsSiteName = newsSiteName;
+ Ion.with(this).load("GET", newsRequestUrl).asJsonObject().setCallback(new FutureCallback() {
+ @Override
+ public void onCompleted(Exception e, JsonObject result) {
+ if (result != null)
+ Log.d(TAG, "API Request Loaded Object with keys: " + result.keySet());
+ else
+ Log.e(TAG, "API Request resulted in null JSON file. Exception: " + e.getMessage());
+
+ if (result.keySet().contains("data")) {
+
+ JsonArray dataArray = result.get("data").getAsJsonArray();
+
+ for (int i = 0; i < dataArray.size(); i++) {
+ JsonObject dataObject = dataArray.get(i).getAsJsonObject();
+
+ String author = dataObject.get("author").toString();
+
+ String title = dataObject.get("title").toString();
+ title = title.substring(1, title.length() - 1);
+
+ String url = dataObject.get("url").toString();
+ url = retrievedUrlFixer(url, finalNewsSiteName);
+
+ String urlToImage = dataObject.get("image").toString();
+ urlToImage = urlToImage.substring(1, urlToImage.length() - 1);
+
+ String date = dataObject.get("published_at").toString();
+ String desc = dataObject.get("description").toString();
+ desc = desc.substring(1, desc.length() - 1);
+ desc = shortenDescription(desc);
+
+ newsItems.add(new ModelData(title, author, date, urlToImage, url, desc));
+
+
+ }
+
+ adapter = new ItemAdapter(getActivity(), newsItems);
+ recyclerView.setAdapter(adapter);
+
+ LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity());
+ recyclerView.setLayoutManager(layoutManager);
+
+
+ Log.d(TAG, "Successfully retrieved news item.");
+ } else {
+ Log.e(TAG, "Error in retrieving news item from API call " + newsRequestUrl);
+ }
+ }
+ });
+
+ }
+
+ private String retrievedUrlFixer(String url, String newsSite)
+ {
+ String outUrl;
+ outUrl = url.substring(1, url.length() - 1);
+ return outUrl;
+ }
+
+ private String shortenDescription(String description)
+ {
+ String outDesc = "";
+ if (description == null)
+ {
+ return outDesc;
+ }
+ else{
+ if (description.length() > 100)
+ {
+ outDesc = description.substring(0, 100);
+ outDesc += "...";
+ }
+ }
+ return outDesc;
+ }
+
+}
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/NewsPageAdapter.java b/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/NewsPageAdapter.java
new file mode 100644
index 00000000..69506a0b
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/java/com/example/newsfeedassignment/NewsPageAdapter.java
@@ -0,0 +1,56 @@
+package com.example.newsfeedassignment;
+
+import androidx.annotation.Nullable;
+import androidx.fragment.app.Fragment;
+import androidx.fragment.app.FragmentManager;
+import androidx.fragment.app.FragmentStatePagerAdapter;
+
+import java.util.HashMap;
+
+public class NewsPageAdapter extends FragmentStatePagerAdapter {
+
+ public static final int NEWS_SITE_COUNT;
+ private static final HashMap newsSiteNames;
+
+ static {
+ newsSiteNames = new HashMap();
+ newsSiteNames.put(0,"bbc");
+ newsSiteNames.put(1,"cnn");
+ NEWS_SITE_COUNT = newsSiteNames.size();
+ }
+
+ public NewsPageAdapter(FragmentManager fm) {
+
+ super(fm);
+
+ }
+
+
+ @Override
+ public Fragment getItem(int i) {
+
+ return new NewsFragment(i);
+ }
+
+ @Override
+ public int getCount() {
+ return NEWS_SITE_COUNT;
+ }
+
+ @Nullable
+ @Override
+ public CharSequence getPageTitle(int position) {
+
+ String newsSiteName;
+ if (position >= 0 && position < NEWS_SITE_COUNT - 1)
+ {
+ newsSiteName = newsSiteNames.get(position);
+ }
+ else
+ {
+ newsSiteName = newsSiteNames.get(NEWS_SITE_COUNT - 1);
+ }
+
+ return newsSiteName;
+ }
+}
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 00000000..2b068d11
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/drawable/ic_launcher_background.xml b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 00000000..07d5da9c
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/layout/activity_details.xml b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/layout/activity_details.xml
new file mode 100644
index 00000000..db05a501
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/layout/activity_details.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/layout/activity_main.xml b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 00000000..c62604eb
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/layout/layout_news_item.xml b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/layout/layout_news_item.xml
new file mode 100644
index 00000000..bb40cce4
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/layout/layout_news_item.xml
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/layout/layout_news_recyclerview.xml b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/layout/layout_news_recyclerview.xml
new file mode 100644
index 00000000..2631823e
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/layout/layout_news_recyclerview.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 00000000..eca70cfe
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 00000000..eca70cfe
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-hdpi/ic_launcher.png b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 00000000..a571e600
Binary files /dev/null and b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 00000000..61da551c
Binary files /dev/null and b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-mdpi/ic_launcher.png b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 00000000..c41dd285
Binary files /dev/null and b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 00000000..db5080a7
Binary files /dev/null and b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 00000000..6dba46da
Binary files /dev/null and b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..da31a871
Binary files /dev/null and b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 00000000..15ac6817
Binary files /dev/null and b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..b216f2d3
Binary files /dev/null and b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 00000000..f25a4197
Binary files /dev/null and b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..e96783cc
Binary files /dev/null and b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/values-night/themes.xml b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/values-night/themes.xml
new file mode 100644
index 00000000..203e2191
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/values-night/themes.xml
@@ -0,0 +1,16 @@
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/values/colors.xml b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/values/colors.xml
new file mode 100644
index 00000000..f8c6127d
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/values/colors.xml
@@ -0,0 +1,10 @@
+
+
+ #FFBB86FC
+ #FF6200EE
+ #FF3700B3
+ #FF03DAC5
+ #FF018786
+ #FF000000
+ #FFFFFFFF
+
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/values/strings.xml b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/values/strings.xml
new file mode 100644
index 00000000..d7ae999c
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/values/strings.xml
@@ -0,0 +1,5 @@
+
+ NewsFeedAssignment
+ Image relevant to corresponding news article.
+ Read in detail
+
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/values/themes.xml b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/values/themes.xml
new file mode 100644
index 00000000..eebc2d04
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/values/themes.xml
@@ -0,0 +1,16 @@
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/main/res/xml/network_security_config.xml b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/xml/network_security_config.xml
new file mode 100644
index 00000000..d7b4192e
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/main/res/xml/network_security_config.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
diff --git a/Android/Mahesh/NewsFeedAssignment/app/src/test/java/com/example/myapplication/ExampleUnitTest.java b/Android/Mahesh/NewsFeedAssignment/app/src/test/java/com/example/myapplication/ExampleUnitTest.java
new file mode 100644
index 00000000..4a02d577
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/app/src/test/java/com/example/myapplication/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.example.newsfeedassignment;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/build.gradle b/Android/Mahesh/NewsFeedAssignment/build.gradle
new file mode 100644
index 00000000..9ade2a75
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/build.gradle
@@ -0,0 +1,25 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+buildscript {
+ repositories {
+ google()
+ mavenCentral()
+ }
+ dependencies {
+ classpath "com.android.tools.build:gradle:4.2.1"
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ jcenter() // Warning: this repository is going to shut down soon
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/gradle.properties b/Android/Mahesh/NewsFeedAssignment/gradle.properties
new file mode 100644
index 00000000..6826e61b
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/gradle.properties
@@ -0,0 +1,17 @@
+# 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=-Xmx2048m -Dfile.encoding=UTF-8
+# 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
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app"s APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
\ No newline at end of file
diff --git a/Android/Mahesh/NewsFeedAssignment/gradle/wrapper/gradle-wrapper.jar b/Android/Mahesh/NewsFeedAssignment/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..f6b961fd
Binary files /dev/null and b/Android/Mahesh/NewsFeedAssignment/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/Android/Mahesh/NewsFeedAssignment/gradle/wrapper/gradle-wrapper.properties b/Android/Mahesh/NewsFeedAssignment/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..3eca686a
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Sat May 29 23:42:23 IST 2021
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/Android/Mahesh/NewsFeedAssignment/gradlew b/Android/Mahesh/NewsFeedAssignment/gradlew
new file mode 100644
index 00000000..cccdd3d5
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/gradlew
@@ -0,0 +1,172 @@
+#!/usr/bin/env sh
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# 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
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+# 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
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+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" -a "$nonstop" = "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
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=$(save "$@")
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
+if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
+ cd "$(dirname "$0")"
+fi
+
+exec "$JAVACMD" "$@"
diff --git a/Android/Mahesh/NewsFeedAssignment/gradlew.bat b/Android/Mahesh/NewsFeedAssignment/gradlew.bat
new file mode 100644
index 00000000..f9553162
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/gradlew.bat
@@ -0,0 +1,84 @@
+@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
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@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=
+
+@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 Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_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=%*
+
+: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
diff --git a/Android/Mahesh/NewsFeedAssignment/settings.gradle b/Android/Mahesh/NewsFeedAssignment/settings.gradle
new file mode 100644
index 00000000..362984b1
--- /dev/null
+++ b/Android/Mahesh/NewsFeedAssignment/settings.gradle
@@ -0,0 +1,2 @@
+rootProject.name = "NewsFeedAssignment"
+include ':app'
diff --git a/Android/Mahesh/ToDoListAssignment/.gitignore b/Android/Mahesh/ToDoListAssignment/.gitignore
new file mode 100644
index 00000000..aa724b77
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/.gitignore
@@ -0,0 +1,15 @@
+*.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
+local.properties
diff --git a/Android/Mahesh/ToDoListAssignment/.idea/.gitignore b/Android/Mahesh/ToDoListAssignment/.idea/.gitignore
new file mode 100644
index 00000000..26d33521
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/Android/Mahesh/ToDoListAssignment/.idea/compiler.xml b/Android/Mahesh/ToDoListAssignment/.idea/compiler.xml
new file mode 100644
index 00000000..fb7f4a8a
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/.idea/gradle.xml b/Android/Mahesh/ToDoListAssignment/.idea/gradle.xml
new file mode 100644
index 00000000..5cd135a0
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/.idea/gradle.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/.idea/jarRepositories.xml b/Android/Mahesh/ToDoListAssignment/.idea/jarRepositories.xml
new file mode 100644
index 00000000..0380d8d3
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/.idea/jarRepositories.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/.idea/misc.xml b/Android/Mahesh/ToDoListAssignment/.idea/misc.xml
new file mode 100644
index 00000000..6199cc2a
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/.idea/misc.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/.idea/runConfigurations.xml b/Android/Mahesh/ToDoListAssignment/.idea/runConfigurations.xml
new file mode 100644
index 00000000..797acea5
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/.idea/runConfigurations.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/.gitignore b/Android/Mahesh/ToDoListAssignment/app/.gitignore
new file mode 100644
index 00000000..42afabfd
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/build.gradle b/Android/Mahesh/ToDoListAssignment/app/build.gradle
new file mode 100644
index 00000000..f2fc5612
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/build.gradle
@@ -0,0 +1,45 @@
+plugins {
+ id 'com.android.application'
+}
+apply plugin: 'com.google.gms.google-services'
+android {
+ compileSdkVersion 30
+ buildToolsVersion "30.0.3"
+
+ defaultConfig {
+ applicationId "com.example.todolistassignment"
+ minSdkVersion 28
+ targetSdkVersion 30
+ versionCode 1
+ versionName "1.0"
+
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+}
+
+dependencies {
+
+ implementation 'androidx.appcompat:appcompat:1.3.0'
+ implementation 'com.google.android.material:material:1.3.0'
+ implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
+ testImplementation 'junit:junit:4.+'
+ androidTestImplementation 'androidx.test.ext:junit:1.1.2'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
+ implementation 'androidx.recyclerview:recyclerview:1.1.0'
+ implementation 'com.google.android.material:material:1.1.0'
+ implementation platform('com.google.firebase:firebase-bom:28.0.1')
+ implementation 'com.google.firebase:firebase-analytics'
+ implementation 'com.google.firebase:firebase-firestore'
+
+}
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/google-services.json b/Android/Mahesh/ToDoListAssignment/app/google-services.json
new file mode 100644
index 00000000..5930cd4f
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/google-services.json
@@ -0,0 +1,39 @@
+{
+ "project_info": {
+ "project_number": "859911752850",
+ "project_id": "todolistassignment-852e3",
+ "storage_bucket": "todolistassignment-852e3.appspot.com"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:859911752850:android:975bcba94ec79cffa3ea4b",
+ "android_client_info": {
+ "package_name": "com.example.todolistassignment"
+ }
+ },
+ "oauth_client": [
+ {
+ "client_id": "859911752850-rhg0sl9vsdlr02mvon86fvb522s11r4q.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ],
+ "api_key": [
+ {
+ "current_key": "AIzaSyDGB6QxEc8vDwS0um1vy7P40YqJtf1mac8"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": [
+ {
+ "client_id": "859911752850-rhg0sl9vsdlr02mvon86fvb522s11r4q.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/proguard-rules.pro b/Android/Mahesh/ToDoListAssignment/app/proguard-rules.pro
new file mode 100644
index 00000000..481bb434
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/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
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/androidTest/java/com/example/todolistassignment/ExampleInstrumentedTest.java b/Android/Mahesh/ToDoListAssignment/app/src/androidTest/java/com/example/todolistassignment/ExampleInstrumentedTest.java
new file mode 100644
index 00000000..1b4d0e09
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/androidTest/java/com/example/todolistassignment/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.example.todolistassignment;
+
+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.todolistassignment", appContext.getPackageName());
+ }
+}
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/AndroidManifest.xml b/Android/Mahesh/ToDoListAssignment/app/src/main/AndroidManifest.xml
new file mode 100644
index 00000000..28e165c8
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/AndroidManifest.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/Adapter/ToDoAdapter.java b/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/Adapter/ToDoAdapter.java
new file mode 100644
index 00000000..2c7a6158
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/Adapter/ToDoAdapter.java
@@ -0,0 +1,104 @@
+package com.example.todolistassignment.Adapter;
+
+import android.content.Context;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.CheckBox;
+import android.widget.CompoundButton;
+
+import androidx.annotation.NonNull;
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.example.todolistassignment.AddNewTask;
+import com.example.todolistassignment.MainActivity;
+import com.example.todolistassignment.Model.ToDoModel;
+import com.example.todolistassignment.R;
+import com.example.todolistassignment.Utils.DatabaseHandler;
+
+import java.util.List;
+
+public class ToDoAdapter extends RecyclerView.Adapter {
+
+ private List todoList;
+ private MainActivity activity;
+ private DatabaseHandler db;
+
+ public ToDoAdapter(DatabaseHandler db, MainActivity activity){
+ this.db = db;
+ this.activity = activity;
+ }
+
+ public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)
+ {
+ View itemview = LayoutInflater.from(parent.getContext())
+ .inflate(R.layout.task_layout, parent, false);
+ return new ViewHolder(itemview);
+ }
+
+ @Override
+ public void onBindViewHolder(@NonNull final ViewHolder holder, int position) {
+
+ final ToDoModel item = todoList.get(position);
+ holder.task.setText(item.getTask());
+ holder.task.setChecked(toBoolean(item.getStatus()));
+ holder.task.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
+ @Override
+ public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
+ if(isChecked){
+ db.updateStatus(item.getFireId(),1);
+ }
+ else{
+ db.updateStatus(item.getFireId(),0);
+ }
+ }
+ });
+ }
+
+ private boolean toBoolean(int n) {
+ return n != 0;
+ }
+
+ @Override
+ public int getItemCount() {
+ return todoList.size();
+ }
+
+ public Context getContext(){
+ return activity;
+ }
+
+ public void setTasks(List todoList){
+ this.todoList = todoList;
+ notifyDataSetChanged();
+ }
+
+ public void deleteItem(int position){
+ ToDoModel item = todoList.get(position);
+ db.deleteTask(item.getFireId());
+ todoList.remove(position);
+ notifyItemRemoved(position);
+ }
+
+ public void editItem(int position){
+ ToDoModel item = todoList.get(position);
+ Bundle bundle = new Bundle();
+ bundle.putString("fireId", item.getFireId());
+ bundle.putString("task", item.getTask());
+ AddNewTask fragment = new AddNewTask();
+ fragment.setArguments(bundle);
+ fragment.show(activity.getSupportFragmentManager(), AddNewTask.TAG);
+ }
+
+ public static class ViewHolder extends RecyclerView.ViewHolder {
+ CheckBox task;
+
+ ViewHolder(View view) {
+ super(view);
+ task = view.findViewById(R.id.todoCheckBox);
+ }
+ }
+
+}
+
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/AddNewTask.java b/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/AddNewTask.java
new file mode 100644
index 00000000..7c7b5b76
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/AddNewTask.java
@@ -0,0 +1,118 @@
+package com.example.todolistassignment;
+
+import android.app.Activity;
+import android.content.DialogInterface;
+import android.graphics.Color;
+import android.os.Bundle;
+import android.text.Editable;
+import android.text.TextWatcher;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.view.WindowManager;
+import android.widget.Button;
+import android.widget.EditText;
+
+import androidx.core.content.ContextCompat;
+
+import com.example.todolistassignment.Model.ToDoModel;
+import com.example.todolistassignment.Utils.DatabaseHandler;
+import com.google.android.material.bottomsheet.BottomSheetDialogFragment;
+
+public class AddNewTask extends BottomSheetDialogFragment {
+
+ public static final String TAG = "ActionBottomDialog";
+
+ private EditText newTaskText;
+ private Button newTaskSaveButton;
+ private DatabaseHandler db;
+
+ public static AddNewTask newInstance(){
+ return new AddNewTask();
+ }
+
+ @Override
+ public void onCreate(Bundle savedInstanceState){
+ super.onCreate(savedInstanceState);
+ setStyle(STYLE_NORMAL, R.style.DialogStyle);
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){
+ View view = inflater.inflate(R.layout.new_task, container, false);
+ getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
+ return view;
+ }
+
+ @Override
+ public void onViewCreated(View view, Bundle savedInstanceState){
+ super.onViewCreated(view, savedInstanceState);
+ newTaskText = getView().findViewById(R.id.newTaskText);
+ newTaskSaveButton = getView().findViewById(R.id.newTaskButton);
+
+ db = new DatabaseHandler(getActivity());
+
+ boolean isUpdate = false;
+ final Bundle bundle = getArguments();
+ if (bundle != null)
+ {
+ isUpdate = true;
+ String task = bundle.getString("task");
+ newTaskText.setText(task);
+ if(task.length()>0)
+ {
+ newTaskSaveButton.setTextColor(ContextCompat.getColor(getContext(),R.color.colorPrimaryDark));
+ }
+ }
+
+ newTaskText.addTextChangedListener(new TextWatcher() {
+ @Override
+ public void beforeTextChanged(CharSequence s, int start, int count, int after) {
+
+ }
+
+ @Override
+ public void onTextChanged(CharSequence s, int start, int before, int count) {
+ if(s.toString().equals("")){
+ newTaskSaveButton.setEnabled(false);
+ newTaskSaveButton.setTextColor(Color.GRAY);
+ }
+ else{
+ newTaskSaveButton.setEnabled(true);
+ newTaskSaveButton.setTextColor(ContextCompat.getColor(getContext(),R.color.colorPrimaryDark));
+ }
+ }
+
+ @Override
+ public void afterTextChanged(Editable s) {
+
+ }
+ });
+
+ boolean finalIsUpdate = isUpdate;
+ newTaskSaveButton.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ String text = newTaskText.getText().toString();
+ if (finalIsUpdate){
+ db.updateTask(bundle.getString("fireId"),text);
+ }
+ else{
+ ToDoModel task = new ToDoModel();
+ task.setTask(text);
+ task.setStatus(0);
+ db.insertTask(task);
+ }
+ dismiss();
+ }
+ });
+ }
+
+ @Override
+ public void onDismiss(DialogInterface dialog){
+ Activity activity = getActivity();
+ if (activity instanceof DialogCloseListener){
+ ((DialogCloseListener)activity).handleDialogClose(dialog);
+ }
+ }
+}
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/DialogCloseListener.java b/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/DialogCloseListener.java
new file mode 100644
index 00000000..c37add28
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/DialogCloseListener.java
@@ -0,0 +1,7 @@
+package com.example.todolistassignment;
+
+import android.content.DialogInterface;
+
+public interface DialogCloseListener {
+ public void handleDialogClose(DialogInterface dialog);
+}
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/MainActivity.java b/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/MainActivity.java
new file mode 100644
index 00000000..975be586
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/MainActivity.java
@@ -0,0 +1,68 @@
+package com.example.todolistassignment;
+
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.recyclerview.widget.ItemTouchHelper;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+
+import android.content.DialogInterface;
+import android.os.Bundle;
+import android.view.View;
+
+import com.example.todolistassignment.Adapter.ToDoAdapter;
+import com.example.todolistassignment.Model.ToDoModel;
+import com.example.todolistassignment.Utils.DatabaseHandler;
+import com.google.android.material.floatingactionbutton.FloatingActionButton;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+public class MainActivity extends AppCompatActivity implements DialogCloseListener {
+
+ private RecyclerView tasksRecyclerView;
+ private ToDoAdapter tasksAdapter;
+ private FloatingActionButton fab;
+
+ private List taskList;
+ private DatabaseHandler db;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+ getSupportActionBar().hide();
+
+ db = new DatabaseHandler(this);
+
+ taskList = new ArrayList<>();
+
+ tasksRecyclerView = findViewById(R.id.tasksRecyclerView);
+ tasksRecyclerView.setLayoutManager(new LinearLayoutManager(this));
+ tasksAdapter = new ToDoAdapter(db,this);
+ tasksRecyclerView.setAdapter(tasksAdapter);
+
+ fab = findViewById(R.id.fab);
+
+ ItemTouchHelper itemTouchHelper = new ItemTouchHelper(new RecyclerItemTouchHelper(tasksAdapter));
+ itemTouchHelper.attachToRecyclerView(tasksRecyclerView);
+
+ taskList = db.getAllTasks();
+ Collections.reverse(taskList);
+ tasksAdapter.setTasks(taskList);
+
+ fab.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ AddNewTask.newInstance().show(getSupportFragmentManager(), AddNewTask.TAG);
+ }
+ });
+ }
+ @Override
+ public void handleDialogClose(DialogInterface dialog){
+ taskList = db.getAllTasks();
+ Collections.reverse(taskList);
+ tasksAdapter.setTasks(taskList);
+ tasksAdapter.notifyDataSetChanged();
+ }
+}
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/Model/ToDoModel.java b/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/Model/ToDoModel.java
new file mode 100644
index 00000000..6002ddcd
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/Model/ToDoModel.java
@@ -0,0 +1,28 @@
+package com.example.todolistassignment.Model;
+
+public class ToDoModel {
+ private int status;
+ private String task;
+ private String fireId;
+
+ public int getStatus() {
+ return status;
+ }
+
+ public void setStatus(int status) {
+ this.status = status;
+ }
+
+ public String getTask() {
+ return task;
+ }
+
+ public void setTask(String task) {
+ this.task = task;
+ }
+
+ public String getFireId() {return fireId; }
+
+ public void setFireId(String fireId) { this.fireId = fireId; }
+
+}
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/RecyclerItemTouchHelper.java b/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/RecyclerItemTouchHelper.java
new file mode 100644
index 00000000..ac3407bb
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/RecyclerItemTouchHelper.java
@@ -0,0 +1,100 @@
+package com.example.todolistassignment;
+
+import android.app.AlertDialog;
+import android.content.DialogInterface;
+import android.graphics.Canvas;
+import android.graphics.Color;
+import android.graphics.drawable.ColorDrawable;
+import android.graphics.drawable.Drawable;
+import android.view.View;
+
+import androidx.core.content.ContextCompat;
+import androidx.recyclerview.widget.ItemTouchHelper;
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.example.todolistassignment.Adapter.ToDoAdapter;
+
+public class RecyclerItemTouchHelper extends ItemTouchHelper.SimpleCallback {
+
+ private ToDoAdapter adapter;
+
+ public RecyclerItemTouchHelper(ToDoAdapter adapter) {
+ super(0, ItemTouchHelper.LEFT | ItemTouchHelper.RIGHT);
+ this.adapter = adapter;
+ }
+
+ @Override
+ public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target){
+ return false;
+ }
+
+ @Override
+ public void onSwiped(final RecyclerView.ViewHolder viewHolder, int direction){
+ final int position = viewHolder.getAdapterPosition();
+ if (direction == ItemTouchHelper.LEFT){
+ AlertDialog.Builder builder = new AlertDialog.Builder(adapter.getContext());
+ builder.setTitle("Delete Task");
+ builder.setMessage("Are you sure you want to delete this Task?");
+ builder.setPositiveButton("Confirm",
+ new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ adapter.deleteItem(position);
+ }
+ });
+ builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ adapter.notifyItemChanged(viewHolder.getAdapterPosition());
+ }
+ });
+ AlertDialog dialog = builder.create();
+ dialog.show();
+ }
+ else{
+ adapter.editItem(position);
+ }
+ }
+ @Override
+ public void onChildDraw(Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive){
+ super.onChildDraw(c, recyclerView, viewHolder, dX, dY, actionState, isCurrentlyActive);
+
+ Drawable icon;
+ ColorDrawable background;
+
+ View itemView = viewHolder.itemView;
+ int backgroundCornerOffset = 20;
+ if (dX > 0){
+ icon = ContextCompat.getDrawable(adapter.getContext(), R.drawable.ic_baseline_edit);
+ background = new ColorDrawable(ContextCompat.getColor(adapter.getContext(), R.color.colorPrimaryDark));
+ } else{
+ icon = ContextCompat.getDrawable(adapter.getContext(), R.drawable.ic_baseline_delete);
+ background = new ColorDrawable(Color.RED);
+ }
+
+ int iconMargin = (itemView.getHeight() - icon.getIntrinsicHeight()) / 2;
+ int iconTop = itemView.getTop() + (itemView.getHeight() - icon.getIntrinsicHeight()) / 2;
+ int iconBottom = iconTop + icon.getIntrinsicHeight();
+
+ if (dX > 0) { // Swiping to the right
+ int iconLeft = itemView.getLeft() + iconMargin;
+ int iconRight = itemView.getLeft() + iconMargin + icon.getIntrinsicWidth();
+ icon.setBounds(iconLeft, iconTop, iconRight, iconBottom);
+
+ background.setBounds(itemView.getLeft(), itemView.getTop(),
+ itemView.getLeft() + ((int) dX) + backgroundCornerOffset, itemView.getBottom());
+ } else if (dX < 0) { // Swiping to the left
+ int iconLeft = itemView.getRight() - iconMargin - icon.getIntrinsicWidth();
+ int iconRight = itemView.getRight() - iconMargin;
+ icon.setBounds(iconLeft, iconTop, iconRight, iconBottom);
+
+ background.setBounds(itemView.getRight() + ((int) dX) - backgroundCornerOffset,
+ itemView.getTop(), itemView.getRight(), itemView.getBottom());
+ } else { // view is unSwiped
+ background.setBounds(0, 0, 0, 0);
+ }
+
+ background.draw(c);
+ icon.draw(c);
+ }
+}
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/SplashActivity.java b/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/SplashActivity.java
new file mode 100644
index 00000000..b75048ff
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/SplashActivity.java
@@ -0,0 +1,26 @@
+package com.example.todolistassignment;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.os.Handler;
+
+public class SplashActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_splash);
+ getSupportActionBar().hide();
+
+ final Intent i = new Intent(SplashActivity.this, MainActivity.class);
+ new Handler().postDelayed(new Runnable() {
+ @Override
+ public void run() {
+ startActivity(i);
+ finish();
+ }
+ }, 6000);
+ }
+}
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/Utils/DatabaseHandler.java b/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/Utils/DatabaseHandler.java
new file mode 100644
index 00000000..db26e839
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/java/com/example/todolistassignment/Utils/DatabaseHandler.java
@@ -0,0 +1,95 @@
+package com.example.todolistassignment.Utils;
+
+import android.content.ContentValues;
+import android.content.Context;
+import android.database.Cursor;
+import android.database.sqlite.SQLiteDatabase;
+import android.database.sqlite.SQLiteOpenHelper;
+import android.util.Log;
+
+import androidx.annotation.NonNull;
+
+import com.example.todolistassignment.Model.ToDoModel;
+import com.google.android.gms.tasks.OnCompleteListener;
+import com.google.android.gms.tasks.OnFailureListener;
+import com.google.android.gms.tasks.OnSuccessListener;
+import com.google.android.gms.tasks.Task;
+import com.google.firebase.firestore.CollectionReference;
+import com.google.firebase.firestore.DocumentReference;
+import com.google.firebase.firestore.DocumentSnapshot;
+import com.google.firebase.firestore.FirebaseFirestore;
+import com.google.firebase.firestore.QueryDocumentSnapshot;
+import com.google.firebase.firestore.QuerySnapshot;
+
+import java.lang.reflect.Array;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+public class DatabaseHandler {
+ private static final String TAG = "ToDoListCRUD";
+
+ private FirebaseFirestore fireDb;
+
+ public DatabaseHandler(Context context){
+ fireDb = FirebaseFirestore.getInstance();
+ }
+
+ public void insertTask(ToDoModel taskData){
+ DocumentReference newTaskRef = fireDb.collection("notes").document();
+ taskData.setFireId(newTaskRef.getId());
+ newTaskRef.set(taskData);
+ }
+
+ public List getAllTasks()
+ {
+ List taskList = new ArrayList<>();
+ CollectionReference allTasksReference = fireDb.collection("notes");
+ allTasksReference
+ .get()
+ .addOnCompleteListener(new OnCompleteListener() {
+ @Override
+ public void onComplete(@NonNull Task task) {
+ if (task.isSuccessful()) {
+ for (QueryDocumentSnapshot document : task.getResult()) {
+ Map mappedData = document.getData();
+ ToDoModel newTask = new ToDoModel();
+ newTask.setFireId(document.getId());
+ newTask.setStatus(((Long) mappedData.get("status")).intValue());
+ newTask.setTask((String) mappedData.get("task"));
+ taskList.add(newTask);
+ Log.d(TAG, "Found a Task in Database! Total Found: " + taskList.size());
+ }
+ } else {
+ Log.d(TAG, "Error getting documents: ", task.getException());
+ }
+ }
+ });
+
+ return taskList;
+ }
+
+ public void updateStatus(String fireId, int status){
+ fireDb.collection("notes").document(fireId).update("status", status);
+ }
+
+ public void updateTask(String fireId, String task){
+ fireDb.collection("notes").document(fireId).update("task", task);
+ }
+
+ public void deleteTask(String fireId){
+ fireDb.collection("notes").document(fireId).delete()
+ .addOnSuccessListener(new OnSuccessListener() {
+ @Override
+ public void onSuccess(Void aVoid) {
+ Log.d(TAG, "DocumentSnapshot successfully deleted!");
+ }
+ })
+ .addOnFailureListener(new OnFailureListener() {
+ @Override
+ public void onFailure(@NonNull Exception e) {
+ Log.w(TAG, "Error deleting document", e);
+ }
+ });
+ }
+}
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 00000000..2b068d11
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable/ic_baseline_add_24.xml b/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable/ic_baseline_add_24.xml
new file mode 100644
index 00000000..f8f03473
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable/ic_baseline_add_24.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable/ic_baseline_delete.xml b/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable/ic_baseline_delete.xml
new file mode 100644
index 00000000..282594cd
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable/ic_baseline_delete.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable/ic_baseline_edit.xml b/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable/ic_baseline_edit.xml
new file mode 100644
index 00000000..faddfce4
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable/ic_baseline_edit.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable/ic_launcher_background.xml b/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 00000000..07d5da9c
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable/ic_logo.xml b/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable/ic_logo.xml
new file mode 100644
index 00000000..25d57020
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/res/drawable/ic_logo.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/layout/activity_main.xml b/Android/Mahesh/ToDoListAssignment/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 00000000..68cc98e4
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/layout/activity_splash.xml b/Android/Mahesh/ToDoListAssignment/app/src/main/res/layout/activity_splash.xml
new file mode 100644
index 00000000..99a1a490
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/res/layout/activity_splash.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/layout/new_task.xml b/Android/Mahesh/ToDoListAssignment/app/src/main/res/layout/new_task.xml
new file mode 100644
index 00000000..c84f8106
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/res/layout/new_task.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/layout/task_layout.xml b/Android/Mahesh/ToDoListAssignment/app/src/main/res/layout/task_layout.xml
new file mode 100644
index 00000000..4e6d3ac0
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/res/layout/task_layout.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 00000000..eca70cfe
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 00000000..eca70cfe
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-hdpi/ic_launcher.png b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 00000000..a571e600
Binary files /dev/null and b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 00000000..61da551c
Binary files /dev/null and b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-mdpi/ic_launcher.png b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 00000000..c41dd285
Binary files /dev/null and b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 00000000..db5080a7
Binary files /dev/null and b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 00000000..6dba46da
Binary files /dev/null and b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..da31a871
Binary files /dev/null and b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 00000000..15ac6817
Binary files /dev/null and b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..b216f2d3
Binary files /dev/null and b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 00000000..f25a4197
Binary files /dev/null and b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..e96783cc
Binary files /dev/null and b/Android/Mahesh/ToDoListAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/values-night/themes.xml b/Android/Mahesh/ToDoListAssignment/app/src/main/res/values-night/themes.xml
new file mode 100644
index 00000000..32c35204
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/res/values-night/themes.xml
@@ -0,0 +1,16 @@
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/values/colors.xml b/Android/Mahesh/ToDoListAssignment/app/src/main/res/values/colors.xml
new file mode 100644
index 00000000..1327b16d
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/res/values/colors.xml
@@ -0,0 +1,13 @@
+
+
+ #FFBB86FC
+ #FF6200EE
+ #FF3700B3
+ #FF03DAC5
+ #FF018786
+ #FF000000
+ #FFFFFFFF
+ #FFFFFF
+ @android:color/holo_green_dark
+ #000000
+
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/values/strings.xml b/Android/Mahesh/ToDoListAssignment/app/src/main/res/values/strings.xml
new file mode 100644
index 00000000..b4cb389e
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ ToDoListAssignment
+
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/main/res/values/themes.xml b/Android/Mahesh/ToDoListAssignment/app/src/main/res/values/themes.xml
new file mode 100644
index 00000000..ce0bd14f
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/main/res/values/themes.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/app/src/test/java/com/example/todolistassignment/ExampleUnitTest.java b/Android/Mahesh/ToDoListAssignment/app/src/test/java/com/example/todolistassignment/ExampleUnitTest.java
new file mode 100644
index 00000000..7a6be1a6
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/app/src/test/java/com/example/todolistassignment/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.example.todolistassignment;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/build.gradle b/Android/Mahesh/ToDoListAssignment/build.gradle
new file mode 100644
index 00000000..c2547127
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/build.gradle
@@ -0,0 +1,25 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+buildscript {
+ repositories {
+ google()
+ mavenCentral()
+ }
+ dependencies {
+ classpath "com.android.tools.build:gradle:4.2.1"
+ classpath 'com.google.gms:google-services:4.3.8'
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ jcenter() // Warning: this repository is going to shut down soon
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/gradle.properties b/Android/Mahesh/ToDoListAssignment/gradle.properties
new file mode 100644
index 00000000..6826e61b
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/gradle.properties
@@ -0,0 +1,17 @@
+# 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=-Xmx2048m -Dfile.encoding=UTF-8
+# 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
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app"s APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
\ No newline at end of file
diff --git a/Android/Mahesh/ToDoListAssignment/gradle/wrapper/gradle-wrapper.jar b/Android/Mahesh/ToDoListAssignment/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..f6b961fd
Binary files /dev/null and b/Android/Mahesh/ToDoListAssignment/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/Android/Mahesh/ToDoListAssignment/gradle/wrapper/gradle-wrapper.properties b/Android/Mahesh/ToDoListAssignment/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..5e221e8c
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Sat May 29 10:46:48 IST 2021
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/Android/Mahesh/ToDoListAssignment/gradlew b/Android/Mahesh/ToDoListAssignment/gradlew
new file mode 100644
index 00000000..cccdd3d5
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/gradlew
@@ -0,0 +1,172 @@
+#!/usr/bin/env sh
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# 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
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+# 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
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+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" -a "$nonstop" = "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
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=$(save "$@")
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
+if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
+ cd "$(dirname "$0")"
+fi
+
+exec "$JAVACMD" "$@"
diff --git a/Android/Mahesh/ToDoListAssignment/gradlew.bat b/Android/Mahesh/ToDoListAssignment/gradlew.bat
new file mode 100644
index 00000000..f9553162
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/gradlew.bat
@@ -0,0 +1,84 @@
+@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
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@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=
+
+@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 Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_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=%*
+
+: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
diff --git a/Android/Mahesh/ToDoListAssignment/settings.gradle b/Android/Mahesh/ToDoListAssignment/settings.gradle
new file mode 100644
index 00000000..f7e1b1c4
--- /dev/null
+++ b/Android/Mahesh/ToDoListAssignment/settings.gradle
@@ -0,0 +1,2 @@
+rootProject.name = "ToDoListAssignment"
+include ':app'
diff --git a/AndroidLibrary/Mahesh/README.md b/AndroidLibrary/Mahesh/README.md
new file mode 100644
index 00000000..cab2cd7d
--- /dev/null
+++ b/AndroidLibrary/Mahesh/README.md
@@ -0,0 +1,22 @@
+# Top Libraries Assignment
+The Application TopLibrariesAssignment was made by using two of the top 10 open-source libraries: Picasso and Retrofit.
+The Application is a mockup of a toursim app that displays interesting places to visit in cities. Its features are:
+* Browse through multiple cities through tabs made for each city.
+* Scroll through multiple locations to visit inside each city.
+* Location data is fetched from online Json documents through Rest API calls using Retrofit.
+* An associated image of the location (URL fetched through API) is displayed using Picasso and ImageView.
+* In the absence of a dedicated location API, a mock API was created and hosted in Github pages: https://elaitenstile.github.io/touristapi-test/
+
+Screenshots of functionality:
+
+
+
+This screenshot shows the first screen of the Application, where the user can browse through cities and different locations inside the city.
+
+
+
+This screenshot shows the second screen of the Application, where detailed information is given about a location.
+
+
+
+This screenshot shows the API endpoint from which some information was retrieved. As it is hosted on Github pages for testing, no API key or security is added.
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/.gitignore b/AndroidLibrary/Mahesh/TopLibrariesAssignment/.gitignore
new file mode 100644
index 00000000..aa724b77
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/.gitignore
@@ -0,0 +1,15 @@
+*.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
+local.properties
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/.gitignore b/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/.gitignore
new file mode 100644
index 00000000..26d33521
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/compiler.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/compiler.xml
new file mode 100644
index 00000000..fb7f4a8a
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/gradle.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/gradle.xml
new file mode 100644
index 00000000..5cd135a0
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/gradle.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/jarRepositories.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/jarRepositories.xml
new file mode 100644
index 00000000..0380d8d3
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/jarRepositories.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/misc.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/misc.xml
new file mode 100644
index 00000000..6199cc2a
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/misc.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/runConfigurations.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/runConfigurations.xml
new file mode 100644
index 00000000..797acea5
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/.idea/runConfigurations.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/.gitignore b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/.gitignore
new file mode 100644
index 00000000..42afabfd
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/build.gradle b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/build.gradle
new file mode 100644
index 00000000..f1e0d55d
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/build.gradle
@@ -0,0 +1,44 @@
+plugins {
+ id 'com.android.application'
+}
+
+android {
+ compileSdkVersion 30
+ buildToolsVersion "30.0.3"
+
+ defaultConfig {
+ applicationId "com.example.toplibrariesassignment"
+ minSdkVersion 28
+ targetSdkVersion 30
+ versionCode 1
+ versionName "1.0"
+
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+}
+
+dependencies {
+
+ implementation 'androidx.appcompat:appcompat:1.3.0'
+ implementation 'com.google.android.material:material:1.3.0'
+ testImplementation 'junit:junit:4.13.2'
+ androidTestImplementation 'androidx.test.ext:junit:1.1.2'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
+
+ implementation 'com.squareup.retrofit2:retrofit:2.0.2'
+ implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
+ implementation 'com.google.code.gson:gson:2.8.6'
+ implementation 'com.koushikdutta.async:androidasync:2.2.1'
+ implementation 'com.squareup.picasso:picasso:2.71828'
+}
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/proguard-rules.pro b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/proguard-rules.pro
new file mode 100644
index 00000000..481bb434
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/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
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/androidTest/java/com/example/toplibrariesassignment/ExampleInstrumentedTest.java b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/androidTest/java/com/example/toplibrariesassignment/ExampleInstrumentedTest.java
new file mode 100644
index 00000000..b4fbcac0
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/androidTest/java/com/example/toplibrariesassignment/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.example.toplibrariesassignment;
+
+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.toplibrariesassignment", appContext.getPackageName());
+ }
+}
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/AndroidManifest.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/AndroidManifest.xml
new file mode 100644
index 00000000..2eef08b0
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/AndroidManifest.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/DetailsActivity.java b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/DetailsActivity.java
new file mode 100644
index 00000000..76627faf
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/DetailsActivity.java
@@ -0,0 +1,69 @@
+package com.example.toplibrariesassignment;
+
+import androidx.appcompat.app.ActionBar;
+import androidx.appcompat.app.AppCompatActivity;
+
+import android.content.Context;
+import android.content.Intent;
+import android.graphics.Color;
+import android.graphics.drawable.ColorDrawable;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.LayoutInflater;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.FrameLayout;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import com.example.toplibrariesassignment.Model.ModelData;
+import com.example.toplibrariesassignment.Model.VisitorComment;
+import com.squareup.picasso.Picasso;
+
+import java.util.ArrayList;
+
+public class DetailsActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_details);
+
+ Intent intent = getIntent();
+
+ String title = intent.getStringExtra("title");
+ String img_url = intent.getStringExtra("img_url");
+ String details = intent.getStringExtra("details");
+ ArrayList visitorComments = intent.getParcelableExtra("comments");
+
+ TextView titleText = findViewById(R.id.detailsPageTitle);
+ TextView detailsText = findViewById(R.id.detailsPageDetails);
+ ImageView imageView = findViewById(R.id.detailsPageImageView);
+
+ if (title != null)
+ titleText.setText(title);
+ if (details != null)
+ detailsText.setText(details);
+ if (img_url != null)
+ Picasso.get().load(img_url).into(imageView);
+ ActionBar bar = getSupportActionBar();
+
+ if (bar != null){
+ bar.setTitle("Detailed News");
+ bar.setBackgroundDrawable(new ColorDrawable(Color.parseColor("blue")));
+
+ bar.setDisplayHomeAsUpEnabled(true);
+ bar.setDisplayShowHomeEnabled(true);
+ }
+
+ }
+
+ public boolean onOptionsItemSelected(MenuItem item) {
+ if(item.getItemId() == android.R.id.home)
+ {
+ finish();
+ }
+
+ return super.onOptionsItemSelected(item);
+ }
+}
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/ItemAdapter.java b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/ItemAdapter.java
new file mode 100644
index 00000000..b3de594c
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/ItemAdapter.java
@@ -0,0 +1,125 @@
+package com.example.toplibrariesassignment;
+
+import android.content.Context;
+import android.content.Intent;
+import android.util.Log;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.Button;
+import android.widget.ImageView;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+
+import androidx.annotation.NonNull;
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.example.toplibrariesassignment.Model.ModelData;
+import com.example.toplibrariesassignment.Model.VisitorComment;
+import com.squareup.picasso.Picasso;
+
+import java.util.ArrayList;
+
+public class ItemAdapter extends RecyclerView.Adapter {
+ Context context;
+
+ private final ArrayList locationItemsList;
+
+ public ItemAdapter(Context context, ArrayList locationItemsList) {
+ this.context = context;
+ this.locationItemsList = locationItemsList;
+
+ }
+
+ @NonNull
+ @Override
+ public AdapterViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {
+ LayoutInflater inflater = LayoutInflater.from(this.context);
+ LinearLayout layout = (LinearLayout) inflater.inflate(R.layout.layout_location_item, null);
+
+ return new AdapterViewHolder(layout);
+ }
+
+ @Override
+ public void onBindViewHolder(@NonNull AdapterViewHolder holder, final int i) {
+ final ModelData item = locationItemsList.get(i);
+
+ String title = item.getName();
+ String rating = String.valueOf(item.getRating());
+ String reviews = String.valueOf(item.getReviews());
+ String urlToImage = item.getImg_url();
+ String description = item.getDescription();
+ String details = item.getDetails();
+ ArrayList visitorComment = item.getVisitor_comments();
+ if (visitorComment == null)
+ {
+ Log.d("LOCAPI", "Visitor comments null");
+ }
+ final String url = item.getWiki_url();
+
+ if(title!=null)
+ holder.titleText.setText(title);
+ // If the author name wasn't provided, the author item will not display on the news fragment
+ holder.ratingText.setText(rating);
+ holder.reviewsText.setText("Reviews: " + reviews);
+ if(urlToImage!=null && isValidImgUrl(urlToImage))
+ Picasso.get().load(urlToImage).into(holder.newsItemImageView);
+ else holder.newsItemImageView.setVisibility(View.GONE);
+ if (description != null && !description.equals("null")){
+ holder.descriptionText.setText(description);
+ }
+
+ holder.detailsButton.setOnClickListener(new View.OnClickListener() {
+
+ @Override
+ public void onClick(View v) {
+ // Method will create the activity that shows the news article in detail
+ Intent intent = new Intent(context,DetailsActivity.class);
+ intent.putExtra("title",title);
+ intent.putExtra("img_url",urlToImage);
+ intent.putExtra("details", details);
+ intent.putExtra("comments", visitorComment);
+ context.startActivity(intent);
+ }
+ });
+
+ }
+
+ private boolean isValidImgUrl(String urlToImage) {
+ boolean outBool = true;
+ if (urlToImage.isEmpty() || urlToImage.equals("null"))
+ outBool = false;
+ else{
+ if (!urlToImage.startsWith("http"))
+ outBool = false;
+ }
+ return outBool;
+ }
+
+
+ @Override
+ public int getItemCount() {
+ return locationItemsList.size();
+ }
+
+ class AdapterViewHolder extends RecyclerView.ViewHolder {
+
+ TextView titleText;
+ TextView ratingText;
+ TextView reviewsText;
+ TextView descriptionText;
+ ImageView newsItemImageView;
+ Button detailsButton;
+ AdapterViewHolder(@NonNull LinearLayout itemView) {
+ super(itemView);
+
+ titleText = itemView.findViewById(R.id.newsItemTitle);
+ newsItemImageView = itemView.findViewById(R.id.newsItemImageView);
+ ratingText = itemView.findViewById(R.id.newsItemRating);
+ reviewsText = itemView.findViewById(R.id.newsItemReviews);
+ detailsButton = itemView.findViewById(R.id.detailsButton);
+ descriptionText = itemView.findViewById(R.id.newsItemDesc);
+ }
+
+ }
+}
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/LocationApi.java b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/LocationApi.java
new file mode 100644
index 00000000..ea7b2467
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/LocationApi.java
@@ -0,0 +1,13 @@
+package com.example.toplibrariesassignment;
+
+import com.example.toplibrariesassignment.Model.LocationApiResponse;
+
+import retrofit2.Call;
+import retrofit2.http.GET;
+import retrofit2.http.Path;
+
+public interface LocationApi {
+ String BASE_URL = "https://elaitenstile.github.io/touristapi-test/";
+ @GET("{LocationName}.json")
+ Call getLocationDetailsAt(@Path("LocationName") String cityName);
+}
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/LocationPageAdapter.java b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/LocationPageAdapter.java
new file mode 100644
index 00000000..034f9f35
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/LocationPageAdapter.java
@@ -0,0 +1,39 @@
+package com.example.toplibrariesassignment;
+
+import androidx.fragment.app.Fragment;
+import androidx.fragment.app.FragmentActivity;
+import androidx.viewpager2.adapter.FragmentStateAdapter;
+
+import java.util.HashMap;
+
+public class LocationPageAdapter extends FragmentStateAdapter {
+
+ public static final int CITIES_COUNT;
+ private static final HashMap cityName;
+
+ static {
+ cityName = new HashMap();
+ cityName.put(0,"kochi");
+ cityName.put(1,"chennai");
+ CITIES_COUNT = cityName.size();
+ }
+
+ public LocationPageAdapter(FragmentActivity activity) {
+
+ super(activity);
+
+ }
+
+
+ @Override
+ public Fragment createFragment(int i) {
+
+ return new LocationsFragment(i);
+ }
+
+ @Override
+ public int getItemCount() {
+ return CITIES_COUNT;
+ }
+
+}
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/LocationsFragment.java b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/LocationsFragment.java
new file mode 100644
index 00000000..ad107dc9
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/LocationsFragment.java
@@ -0,0 +1,109 @@
+package com.example.toplibrariesassignment;
+
+import android.content.Context;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.fragment.app.Fragment;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.example.toplibrariesassignment.Model.LocationApiResponse;
+import com.example.toplibrariesassignment.Model.ModelData;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+
+import retrofit2.Call;
+import retrofit2.Callback;
+import retrofit2.Response;
+
+public class LocationsFragment extends Fragment {
+
+ private static final HashMap cityNames;
+ private static final int CITIES_COUNT;
+ private static final String TAG = "LOCAPI";
+
+ static {
+ cityNames = new HashMap();
+ cityNames.put(0,"kochi");
+ cityNames.put(1,"chennai");
+ CITIES_COUNT = cityNames.size();
+ }
+
+ ArrayList locationItems = new ArrayList ();
+ ItemAdapter adapter;
+
+ Context context;
+ int tabPosition;
+ public LocationsFragment() {
+ this.tabPosition = 0;
+ }
+
+ public LocationsFragment(int i) {
+ this.tabPosition = i;
+ }
+
+
+ @Nullable
+ @Override
+ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+ return inflater.inflate(R.layout.layout_cities_recyclerview, container, false);
+ }
+
+
+ @Override
+ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
+ super.onViewCreated(view, savedInstanceState);
+ String newsSiteName = getCityName();
+ final RecyclerView recyclerView = getView().findViewById(R.id.recyclerView);
+
+ Call locationRequest = RetrofitClient.getInstance().getLocationApi().getLocationDetailsAt(newsSiteName);
+ locationRequest.enqueue(new Callback() {
+ @Override
+ public void onResponse(Call call, Response response) {
+ LocationApiResponse responseObject = response.body();
+ if (responseObject == null)
+ Log.e("APIREQUEST", "Retrieved null object: " + response.message());
+ else {
+ Log.d("APIREQUEST", "Api request obtained response with status: " + responseObject.status);
+
+ locationItems = responseObject.modelDataList;
+
+ adapter = new ItemAdapter(getActivity(), locationItems);
+ recyclerView.setAdapter(adapter);
+
+ LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity());
+ recyclerView.setLayoutManager(layoutManager);
+ }
+ }
+ @Override
+ public void onFailure(Call call, Throwable t) {
+ //handle error or failure cases here
+ Log.e("APIREQUEST", "Api request failed to obtain successful response. Exception:" + t.getMessage());
+ }
+ });
+ }
+
+ private String getCityName() {
+ return getCityName(tabPosition);
+ }
+
+ public static String getCityName(int position) {
+ String newsSiteName="";
+ if (position >= 0 && position < CITIES_COUNT - 1)
+ {
+ newsSiteName = cityNames.get(position);
+ }
+ else
+ {
+ newsSiteName = cityNames.get(CITIES_COUNT - 1);
+ }
+ return newsSiteName;
+ }
+}
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/MainActivity.java b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/MainActivity.java
new file mode 100644
index 00000000..9e364b6e
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/MainActivity.java
@@ -0,0 +1,40 @@
+package com.example.toplibrariesassignment;
+
+import androidx.appcompat.app.ActionBar;
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.viewpager2.widget.ViewPager2;
+
+import android.graphics.Color;
+import android.graphics.drawable.ColorDrawable;
+import android.os.Bundle;
+
+import com.google.android.material.tabs.TabLayout;
+import com.google.android.material.tabs.TabLayoutMediator;
+
+public class MainActivity extends AppCompatActivity {
+
+ private TabLayout tabLayout;
+ private ViewPager2 viewPager;
+ private LocationPageAdapter adapter;
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+ viewPager = findViewById(R.id.viewPager);
+ tabLayout = findViewById(R.id.tabLayout);
+
+ adapter = new LocationPageAdapter(this);
+ viewPager.setAdapter(adapter);
+
+ new TabLayoutMediator(tabLayout, viewPager,
+ (tab, position) -> tab.setText(LocationsFragment.getCityName(position))
+ ).attach();
+
+ ActionBar bar = getSupportActionBar();
+ bar.setTitle("Cities List");
+ bar.setBackgroundDrawable(new ColorDrawable(Color.parseColor("blue")));
+
+ }
+
+}
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/Model/LocationApiResponse.java b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/Model/LocationApiResponse.java
new file mode 100644
index 00000000..bdad2863
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/Model/LocationApiResponse.java
@@ -0,0 +1,12 @@
+package com.example.toplibrariesassignment.Model;
+
+import com.example.toplibrariesassignment.Model.ModelData;
+import com.google.gson.annotations.SerializedName;
+
+import java.util.ArrayList;
+
+public class LocationApiResponse {
+ public String status;
+ @SerializedName("items")
+ public ArrayList modelDataList;
+}
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/Model/ModelData.java b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/Model/ModelData.java
new file mode 100644
index 00000000..d39f1f7c
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/Model/ModelData.java
@@ -0,0 +1,62 @@
+package com.example.toplibrariesassignment.Model;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+
+public class ModelData {
+ private final String name;
+ private final String description;
+ private final float rating;
+ private final int reviews;
+ @SerializedName("visitor_comments")
+ public ArrayList visitor_comments;
+ private final String details;
+ private final String wiki_url;
+ private final String img_url;
+
+ public ModelData(String name, String description, float rating, int reviews, ArrayList visitor_comments, String details, String wiki_url, String img_url) {
+ this.name = name;
+ this.description = description;
+ this.rating = rating;
+ this.reviews = reviews;
+ this.visitor_comments = visitor_comments;
+ this.details = details;
+ this.wiki_url = wiki_url;
+ this.img_url = img_url;
+ }
+
+ public ArrayList getVisitor_comments() {
+ return visitor_comments;
+ }
+
+ public int getReviews() {
+ return reviews;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public String getDetails() {
+ return details;
+ }
+
+ public String getImg_url() {
+ return img_url;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public String getWiki_url() {
+ return wiki_url;
+ }
+
+ public float getRating() {
+ return rating;
+ }
+
+}
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/Model/VisitorComment.java b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/Model/VisitorComment.java
new file mode 100644
index 00000000..168ecece
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/Model/VisitorComment.java
@@ -0,0 +1,14 @@
+package com.example.toplibrariesassignment.Model;
+
+import java.io.Serializable;
+
+public class VisitorComment implements Serializable {
+ String comment;
+ public VisitorComment(String comment)
+ {
+ this.comment = comment;
+ }
+ public String getComment() {
+ return comment;
+ }
+}
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/RetrofitClient.java b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/RetrofitClient.java
new file mode 100644
index 00000000..be06be20
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/java/com/example/toplibrariesassignment/RetrofitClient.java
@@ -0,0 +1,27 @@
+package com.example.toplibrariesassignment;
+
+import retrofit2.Retrofit;
+import retrofit2.converter.gson.GsonConverterFactory;
+
+public class RetrofitClient {
+ private static RetrofitClient instance = null;
+ private LocationApi locationApi;
+
+ private RetrofitClient() {
+ Retrofit retrofit = new Retrofit.Builder().baseUrl(LocationApi.BASE_URL)
+ .addConverterFactory(GsonConverterFactory.create())
+ .build();
+ locationApi = retrofit.create(LocationApi.class);
+ }
+
+ public static synchronized RetrofitClient getInstance() {
+ if (instance == null) {
+ instance = new RetrofitClient();
+ }
+ return instance;
+ }
+
+ public LocationApi getLocationApi() {
+ return locationApi;
+ }
+}
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 00000000..2b068d11
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/drawable/ic_launcher_background.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 00000000..07d5da9c
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/layout/activity_details.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/layout/activity_details.xml
new file mode 100644
index 00000000..585083c7
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/layout/activity_details.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/layout/activity_main.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 00000000..1ea6e81c
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/layout/layout_cities_recyclerview.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/layout/layout_cities_recyclerview.xml
new file mode 100644
index 00000000..2631823e
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/layout/layout_cities_recyclerview.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/layout/layout_location_item.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/layout/layout_location_item.xml
new file mode 100644
index 00000000..a7236b92
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/layout/layout_location_item.xml
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 00000000..eca70cfe
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 00000000..eca70cfe
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-hdpi/ic_launcher.png b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 00000000..a571e600
Binary files /dev/null and b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 00000000..61da551c
Binary files /dev/null and b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-mdpi/ic_launcher.png b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 00000000..c41dd285
Binary files /dev/null and b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 00000000..db5080a7
Binary files /dev/null and b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 00000000..6dba46da
Binary files /dev/null and b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..da31a871
Binary files /dev/null and b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 00000000..15ac6817
Binary files /dev/null and b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..b216f2d3
Binary files /dev/null and b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 00000000..f25a4197
Binary files /dev/null and b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..e96783cc
Binary files /dev/null and b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/values-night/themes.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/values-night/themes.xml
new file mode 100644
index 00000000..0fa919f3
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/values-night/themes.xml
@@ -0,0 +1,16 @@
+
+
+
+
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/values/colors.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/values/colors.xml
new file mode 100644
index 00000000..f8c6127d
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/values/colors.xml
@@ -0,0 +1,10 @@
+
+
+ #FFBB86FC
+ #FF6200EE
+ #FF3700B3
+ #FF03DAC5
+ #FF018786
+ #FF000000
+ #FFFFFFFF
+
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/values/strings.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/values/strings.xml
new file mode 100644
index 00000000..dc48fa7a
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ TopLibrariesAssignment
+
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/values/themes.xml b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/values/themes.xml
new file mode 100644
index 00000000..daa240e2
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/main/res/values/themes.xml
@@ -0,0 +1,16 @@
+
+
+
+
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/test/java/com/example/toplibrariesassignment/ExampleUnitTest.java b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/test/java/com/example/toplibrariesassignment/ExampleUnitTest.java
new file mode 100644
index 00000000..1bf5fb7f
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/app/src/test/java/com/example/toplibrariesassignment/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.example.toplibrariesassignment;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/build.gradle b/AndroidLibrary/Mahesh/TopLibrariesAssignment/build.gradle
new file mode 100644
index 00000000..9ade2a75
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/build.gradle
@@ -0,0 +1,25 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+buildscript {
+ repositories {
+ google()
+ mavenCentral()
+ }
+ dependencies {
+ classpath "com.android.tools.build:gradle:4.2.1"
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ jcenter() // Warning: this repository is going to shut down soon
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/gradle.properties b/AndroidLibrary/Mahesh/TopLibrariesAssignment/gradle.properties
new file mode 100644
index 00000000..6826e61b
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/gradle.properties
@@ -0,0 +1,17 @@
+# 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=-Xmx2048m -Dfile.encoding=UTF-8
+# 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
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app"s APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
\ No newline at end of file
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/gradle/wrapper/gradle-wrapper.jar b/AndroidLibrary/Mahesh/TopLibrariesAssignment/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..f6b961fd
Binary files /dev/null and b/AndroidLibrary/Mahesh/TopLibrariesAssignment/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/gradle/wrapper/gradle-wrapper.properties b/AndroidLibrary/Mahesh/TopLibrariesAssignment/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..8a1c1786
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Mon May 31 11:50:03 IST 2021
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/gradlew b/AndroidLibrary/Mahesh/TopLibrariesAssignment/gradlew
new file mode 100644
index 00000000..cccdd3d5
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/gradlew
@@ -0,0 +1,172 @@
+#!/usr/bin/env sh
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# 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
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+# 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
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+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" -a "$nonstop" = "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
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=$(save "$@")
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
+if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
+ cd "$(dirname "$0")"
+fi
+
+exec "$JAVACMD" "$@"
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/gradlew.bat b/AndroidLibrary/Mahesh/TopLibrariesAssignment/gradlew.bat
new file mode 100644
index 00000000..f9553162
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/gradlew.bat
@@ -0,0 +1,84 @@
+@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
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@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=
+
+@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 Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_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=%*
+
+: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
diff --git a/AndroidLibrary/Mahesh/TopLibrariesAssignment/settings.gradle b/AndroidLibrary/Mahesh/TopLibrariesAssignment/settings.gradle
new file mode 100644
index 00000000..9def98a1
--- /dev/null
+++ b/AndroidLibrary/Mahesh/TopLibrariesAssignment/settings.gradle
@@ -0,0 +1,2 @@
+rootProject.name = "TopLibrariesAssignment"
+include ':app'
diff --git a/AndroidLibrary/Mahesh/images/screen1.png b/AndroidLibrary/Mahesh/images/screen1.png
new file mode 100644
index 00000000..272b5baf
Binary files /dev/null and b/AndroidLibrary/Mahesh/images/screen1.png differ
diff --git a/AndroidLibrary/Mahesh/images/screen2.png b/AndroidLibrary/Mahesh/images/screen2.png
new file mode 100644
index 00000000..a11fc063
Binary files /dev/null and b/AndroidLibrary/Mahesh/images/screen2.png differ
diff --git a/AndroidLibrary/Mahesh/images/screen3.png b/AndroidLibrary/Mahesh/images/screen3.png
new file mode 100644
index 00000000..8f988d9d
Binary files /dev/null and b/AndroidLibrary/Mahesh/images/screen3.png differ