diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..5edb4ee
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,10 @@
+*.iml
+.gradle
+/local.properties
+/.idea/libraries
+/.idea/modules.xml
+/.idea/workspace.xml
+.DS_Store
+/build
+/captures
+.externalNativeBuild
diff --git a/.idea/assetWizardSettings.xml b/.idea/assetWizardSettings.xml
new file mode 100644
index 0000000..bd81cb0
--- /dev/null
+++ b/.idea/assetWizardSettings.xml
@@ -0,0 +1,47 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser
new file mode 100644
index 0000000..2a4c5c2
Binary files /dev/null and b/.idea/caches/build_file_checksums.ser differ
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
new file mode 100644
index 0000000..30aa626
--- /dev/null
+++ b/.idea/codeStyles/Project.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
new file mode 100644
index 0000000..7ac24c7
--- /dev/null
+++ b/.idea/gradle.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..99202cc
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
new file mode 100644
index 0000000..7f68460
--- /dev/null
+++ b/.idea/runConfigurations.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/.gitignore b/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/app/build.gradle b/app/build.gradle
new file mode 100644
index 0000000..3d7364b
--- /dev/null
+++ b/app/build.gradle
@@ -0,0 +1,35 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 27
+ defaultConfig {
+ applicationId "id.onestep.hydron"
+ minSdkVersion 16
+ targetSdkVersion 27
+ versionCode 1
+ versionName "1.0"
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
+ implementation 'com.android.support:appcompat-v7:27.1.1'
+ implementation 'com.android.support.constraint:constraint-layout:1.1.0'
+ implementation 'com.android.support:design:27.1.1'
+ implementation 'com.android.support:support-v4:27.1.1'
+ testImplementation 'junit:junit:4.12'
+ androidTestImplementation 'com.android.support.test:runner:1.0.2'
+ androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
+ implementation 'com.airbnb.android:lottie:2.5.4'
+ implementation 'com.miguelcatalan:materialsearchview:1.4.0'
+ implementation 'com.android.support:cardview-v7:27.1.1'
+ implementation 'com.android.support:recyclerview-v7:27.1.1'
+ implementation 'com.xyz.step:step:1.0.4'
+}
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
new file mode 100644
index 0000000..f1b4245
--- /dev/null
+++ b/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/app/src/androidTest/java/id/onestep/hydron/ExampleInstrumentedTest.java b/app/src/androidTest/java/id/onestep/hydron/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..8cf9a83
--- /dev/null
+++ b/app/src/androidTest/java/id/onestep/hydron/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package id.onestep.hydron;
+
+import android.content.Context;
+import android.support.test.InstrumentationRegistry;
+import android.support.test.runner.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * 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.getTargetContext();
+
+ assertEquals("id.onestep.hydron", appContext.getPackageName());
+ }
+}
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..7919706
--- /dev/null
+++ b/app/src/main/AndroidManifest.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/ic_launcher-web.png b/app/src/main/ic_launcher-web.png
new file mode 100644
index 0000000..dec96fd
Binary files /dev/null and b/app/src/main/ic_launcher-web.png differ
diff --git a/app/src/main/java/id/onestep/hydron/Adapter/home_adapter.java b/app/src/main/java/id/onestep/hydron/Adapter/home_adapter.java
new file mode 100644
index 0000000..838420a
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/Adapter/home_adapter.java
@@ -0,0 +1,54 @@
+package id.onestep.hydron.Adapter;
+
+import android.app.Activity;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.BaseAdapter;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import org.w3c.dom.Text;
+
+import java.util.List;
+import java.util.zip.Inflater;
+
+import id.onestep.hydron.Model.m_home;
+import id.onestep.hydron.R;
+
+public class home_adapter extends BaseAdapter{
+ private Activity activity;
+ private Inflater inflater;
+ private List list;
+
+ public home_adapter(Activity activity, List list) {
+ this.activity = activity;
+ this.list = list;
+ }
+
+ @Override
+ public int getCount() {
+ return list.size();
+ }
+
+ @Override
+ public Object getItem(int position) {
+ return list.get(position);
+ }
+
+ @Override
+ public long getItemId(int position) {
+ return position;
+ }
+
+ @Override
+ public View getView(int position, View convertView, ViewGroup parent) {
+ View view = View.inflate(activity, R.layout.list_home,null);
+ m_home m = list.get(position);
+ TextView simulateTitle = (TextView) view.findViewById(R.id.simulateTitle);
+ simulateTitle.setText(m.getSimulateTitle());
+ TextView simulatePrice = (TextView) view.findViewById(R.id.simulatePrice);
+ simulatePrice.setText(m.getSimulatePrice());
+ view.setTag(m.getId());
+ return view;
+ }
+}
diff --git a/app/src/main/java/id/onestep/hydron/Adapter/schedule_adapter.java b/app/src/main/java/id/onestep/hydron/Adapter/schedule_adapter.java
new file mode 100644
index 0000000..4c70ceb
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/Adapter/schedule_adapter.java
@@ -0,0 +1,51 @@
+package id.onestep.hydron.Adapter;
+
+import android.app.Activity;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.BaseAdapter;
+import android.widget.TextView;
+
+import java.util.List;
+import java.util.zip.Inflater;
+
+import id.onestep.hydron.Model.m_schedule;
+import id.onestep.hydron.R;
+
+public class schedule_adapter extends BaseAdapter {
+ private Activity activity;
+ private Inflater inflater;
+ private List list;
+
+ public schedule_adapter(Activity activity, List list) {
+ this.activity = activity;
+ this.list = list;
+ }
+
+ @Override
+ public int getCount() {
+ return list.size();
+ }
+
+ @Override
+ public Object getItem(int position) {
+ return list.get(position);
+ }
+
+ @Override
+ public long getItemId(int position) {
+ return position;
+ }
+
+ @Override
+ public View getView(int position, View convertView, ViewGroup parent) {
+ View view = View.inflate(activity, R.layout.list_schedule,null);
+ m_schedule m = list.get(position);
+ TextView scheduleTitle = (TextView) view.findViewById(R.id.scheduleTitle);
+ scheduleTitle.setText(m.getScheduleTitle());
+ TextView scheduleStatus = (TextView) view.findViewById(R.id.scheduleStatus);
+ scheduleStatus.setText(m.getScheduleStatus());
+ view.setTag(m.getId());
+ return view;
+ }
+}
diff --git a/app/src/main/java/id/onestep/hydron/Adapter/shop_all_adapter.java b/app/src/main/java/id/onestep/hydron/Adapter/shop_all_adapter.java
new file mode 100644
index 0000000..b2e53f9
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/Adapter/shop_all_adapter.java
@@ -0,0 +1,56 @@
+package id.onestep.hydron.Adapter;
+
+import android.app.Activity;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.BaseAdapter;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import java.util.List;
+
+import id.onestep.hydron.Model.m_shop_all;
+import id.onestep.hydron.R;
+
+public class shop_all_adapter extends BaseAdapter {
+ private Activity activity;
+ private LayoutInflater inflater;
+ private List list;
+
+ public shop_all_adapter(Activity activity, List list) {
+ this.activity = activity;
+ this.list = list;
+ }
+
+ @Override
+ public int getCount() {
+ return list.size();
+ }
+
+ @Override
+ public Object getItem(int position) {
+ return list.get(position);
+ }
+
+ @Override
+ public long getItemId(int position) {
+ return position;
+ }
+
+ @Override
+ public View getView(int position, View convertView, ViewGroup parent) {
+ View view = View.inflate(activity, R.layout.grid_shop_all, null);
+ m_shop_all m = list.get(position);
+ ImageView image = (ImageView) view.findViewById(R.id.image);
+ image.setImageResource(m.getImage());
+ TextView title = (TextView) view.findViewById(R.id.title);
+ title.setText(m.getTitle());
+ TextView other = (TextView) view.findViewById(R.id.price);
+ other.setText(m.getPrice());
+ TextView stok = (TextView)view.findViewById(R.id.stok);
+ stok.setText(m.getStok());
+ view.setTag(m.getId());
+ return view;
+ }
+}
diff --git a/app/src/main/java/id/onestep/hydron/Model/m_home.java b/app/src/main/java/id/onestep/hydron/Model/m_home.java
new file mode 100644
index 0000000..7c5bb3c
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/Model/m_home.java
@@ -0,0 +1,36 @@
+package id.onestep.hydron.Model;
+
+public class m_home {
+ private int id;
+ private String simulateTitle, simulatePrice;
+
+ public m_home(int id, String simulateTitle, String simulatePrice) {
+ this.id = id;
+ this.simulateTitle = simulateTitle;
+ this.simulatePrice = simulatePrice;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public String getSimulateTitle() {
+ return simulateTitle;
+ }
+
+ public void setSimulateTitle(String simulateTitle) {
+ this.simulateTitle = simulateTitle;
+ }
+
+ public String getSimulatePrice() {
+ return simulatePrice;
+ }
+
+ public void setSimulatePrice(String simulatePrice) {
+ this.simulatePrice = simulatePrice;
+ }
+}
diff --git a/app/src/main/java/id/onestep/hydron/Model/m_schedule.java b/app/src/main/java/id/onestep/hydron/Model/m_schedule.java
new file mode 100644
index 0000000..ac34307
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/Model/m_schedule.java
@@ -0,0 +1,36 @@
+package id.onestep.hydron.Model;
+
+public class m_schedule {
+ private int id;
+ private String scheduleTitle, scheduleStatus;
+
+ public m_schedule(int id, String scheduleTitle, String scheduleStatus) {
+ this.id = id;
+ this.scheduleTitle = scheduleTitle;
+ this.scheduleStatus = scheduleStatus;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public String getScheduleTitle() {
+ return scheduleTitle;
+ }
+
+ public void setScheduleTitle(String scheduleTitle) {
+ this.scheduleTitle = scheduleTitle;
+ }
+
+ public String getScheduleStatus() {
+ return scheduleStatus;
+ }
+
+ public void setScheduleStatus(String scheduleStatus) {
+ this.scheduleStatus = scheduleStatus;
+ }
+}
diff --git a/app/src/main/java/id/onestep/hydron/Model/m_shop_all.java b/app/src/main/java/id/onestep/hydron/Model/m_shop_all.java
new file mode 100644
index 0000000..026c2d9
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/Model/m_shop_all.java
@@ -0,0 +1,54 @@
+package id.onestep.hydron.Model;
+
+public class m_shop_all {
+ private int id, image;
+ private String title,price,stok;
+
+ public m_shop_all(int id, int image, String title, String price, String stok) {
+ this.id = id;
+ this.image = image;
+ this.title = title;
+ this.price = price;
+ this.stok = stok;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public int getImage() {
+ return image;
+ }
+
+ public void setImage(int image) {
+ this.image = image;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public String getPrice() {
+ return price;
+ }
+
+ public void setPrice(String price) {
+ this.price = price;
+ }
+
+ public String getStok() {
+ return stok;
+ }
+
+ public void setStok(String stok) {
+ this.stok = stok;
+ }
+}
diff --git a/app/src/main/java/id/onestep/hydron/View/AddSchedule.java b/app/src/main/java/id/onestep/hydron/View/AddSchedule.java
new file mode 100644
index 0000000..7ecad51
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/View/AddSchedule.java
@@ -0,0 +1,30 @@
+package id.onestep.hydron.View;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.support.v7.widget.Toolbar;
+import android.view.View;
+
+import id.onestep.hydron.R;
+
+public class AddSchedule extends AppCompatActivity {
+ private Toolbar toolbar;
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_add_schedule);
+ toolbar = (Toolbar) findViewById(R.id.toolbar);
+ setSupportActionBar(toolbar);
+ getSupportActionBar().setDisplayHomeAsUpEnabled(true);
+ if (getSupportActionBar() != null) {
+ getSupportActionBar().setDisplayHomeAsUpEnabled(true);
+ toolbar.setNavigationOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ onBackPressed();
+ finish();
+ }
+ });
+ }
+ }
+}
diff --git a/app/src/main/java/id/onestep/hydron/View/HomeFragment.java b/app/src/main/java/id/onestep/hydron/View/HomeFragment.java
new file mode 100644
index 0000000..2814c56
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/View/HomeFragment.java
@@ -0,0 +1,61 @@
+package id.onestep.hydron.View;
+
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.support.v4.app.Fragment;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.Button;
+import android.widget.ListView;
+
+import com.airbnb.lottie.L;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import id.onestep.hydron.Adapter.home_adapter;
+import id.onestep.hydron.Model.m_home;
+import id.onestep.hydron.R;
+
+
+/**
+ * A simple {@link Fragment} subclass.
+ */
+public class HomeFragment extends Fragment {
+ private ListView listView;
+ private home_adapter adapter;
+ private List mList;
+ private Button btnSimulate;
+
+ public HomeFragment() {
+ // Required empty public constructor
+ }
+
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ // Inflate the layout for this fragment
+ View view = inflater.inflate(R.layout.fragment_home, container, false);
+ listView = (ListView) view.findViewById(R.id.list_simulate);
+ listView.setVisibility(View.GONE);
+ btnSimulate = (Button) view.findViewById(R.id.btnSimulate);
+ btnSimulate.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ listView.setVisibility(View.VISIBLE);
+ }
+ });
+ mList = new ArrayList<>();
+
+ mList.add(new m_home(1, "Bibit Sawi","10.000"));
+ mList.add(new m_home(2, "Pipa 3m", "50.000"));
+ mList.add(new m_home(3,"Pompa Air","40.000"));
+ adapter = new home_adapter(getActivity(),mList);
+ listView.setAdapter(adapter);
+ return view;
+ }
+
+}
diff --git a/app/src/main/java/id/onestep/hydron/View/Index.java b/app/src/main/java/id/onestep/hydron/View/Index.java
new file mode 100644
index 0000000..f23664b
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/View/Index.java
@@ -0,0 +1,53 @@
+package id.onestep.hydron.View;
+
+import android.content.Intent;
+import android.os.Build;
+import android.os.Handler;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.transition.Transition;
+import android.view.View;
+import android.widget.Button;
+import android.widget.RelativeLayout;
+import android.widget.TextView;
+
+import id.onestep.hydron.R;
+
+public class Index extends AppCompatActivity {
+ private Button login, signup;
+ private RelativeLayout rellay1;
+ private TextView title;
+ Handler handler = new Handler();
+ Runnable runnable = new Runnable() {
+ @Override
+ public void run() {
+ rellay1.setVisibility(View.VISIBLE);
+ title.setVisibility(View.GONE);
+ }
+ };
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_index);
+ rellay1 = (RelativeLayout) findViewById(R.id.rellay1);
+ title = (TextView) findViewById(R.id.onestep);
+ handler.postDelayed(runnable, 2000);
+ login = (Button) findViewById(R.id.btnLogin);
+ login.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent i = new Intent(Index.this, Login.class);
+ startActivity(i);
+ }
+ });
+ signup = (Button) findViewById(R.id.btnSignUp);
+ signup.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent i = new Intent(Index.this, SignUp.class);
+ startActivity(i);
+ }
+ });
+ }
+}
diff --git a/app/src/main/java/id/onestep/hydron/View/Login.java b/app/src/main/java/id/onestep/hydron/View/Login.java
new file mode 100644
index 0000000..0668b4b
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/View/Login.java
@@ -0,0 +1,36 @@
+package id.onestep.hydron.View;
+
+import android.content.Intent;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+
+import id.onestep.hydron.R;
+
+public class Login extends AppCompatActivity {
+ private Button login, signup;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_login);
+ login = (Button) findViewById(R.id.btnLogin);
+ login.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent i = new Intent(Login.this, MainActivity.class);
+ startActivity(i);
+ finish();
+ }
+ });
+ signup = (Button) findViewById(R.id.btnSignUp);
+ signup.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent i= new Intent(Login.this,SignUp.class);
+ startActivity(i);
+ }
+ });
+ }
+}
diff --git a/app/src/main/java/id/onestep/hydron/View/MainActivity.java b/app/src/main/java/id/onestep/hydron/View/MainActivity.java
new file mode 100644
index 0000000..04ec7e8
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/View/MainActivity.java
@@ -0,0 +1,114 @@
+package id.onestep.hydron.View;
+
+import android.support.design.widget.NavigationView;
+import android.support.v4.view.GravityCompat;
+import android.support.v4.widget.DrawerLayout;
+import android.support.v7.app.ActionBarDrawerToggle;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.support.v7.widget.Toolbar;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.widget.Button;
+
+import com.miguelcatalan.materialsearchview.MaterialSearchView;
+
+import id.onestep.hydron.R;
+
+public class MainActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener {
+ private Toolbar toolbar;
+ private MaterialSearchView searchView;
+ private Button title;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+ toolbar = (Toolbar) findViewById(R.id.toolbar);
+ setSupportActionBar(toolbar);
+ searchView = (MaterialSearchView) findViewById(R.id.searchView);
+ searchView.setVoiceSearch(true);
+ title = (Button) findViewById(R.id.titleMain);
+ title.setText("SCHEDULE");
+ ScheduleFragment scheduleFragment = new ScheduleFragment();
+ android.support.v4.app.FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
+ fragmentTransaction.replace(R.id.fragment, scheduleFragment);
+ fragmentTransaction.commit();
+ DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
+ ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
+ this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
+ drawer.addDrawerListener(toggle);
+ toggle.syncState();
+
+ NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
+ navigationView.setNavigationItemSelectedListener(this);
+ }
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.main, menu);
+
+ MenuItem item = menu.findItem(R.id.action_search);
+ searchView.setMenuItem(item);
+ return true;
+ }
+
+ @Override
+ public void onBackPressed() {
+ DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
+ if (drawer.isDrawerOpen(GravityCompat.START)) {
+ drawer.closeDrawer(GravityCompat.START);
+ } else {
+ super.onBackPressed();
+ }
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ // Handle action bar item clicks here. The action bar will
+ // automatically handle clicks on the Home/Up button, so long
+ // as you specify a parent activity in AndroidManifest.xml.
+ int id = item.getItemId();
+
+ //noinspection SimplifiableIfStatement
+ if (id == R.id.action_search) {
+ return true;
+ }
+
+ return super.onOptionsItemSelected(item);
+ }
+
+ @Override
+ public boolean onNavigationItemSelected(MenuItem item) {
+ int id = item.getItemId();
+ if (id == R.id.schedule) {
+ title.setText("SCHEDULE");
+ ScheduleFragment scheduleFragment = new ScheduleFragment();
+ android.support.v4.app.FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
+ fragmentTransaction.replace(R.id.fragment, scheduleFragment);
+ fragmentTransaction.commit();
+ } else if (id == R.id.simulation) {
+ title.setText("SIMULATION");
+ HomeFragment homeFragment = new HomeFragment();
+ android.support.v4.app.FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
+ fragmentTransaction.replace(R.id.fragment, homeFragment);
+ fragmentTransaction.commit();
+ } else if (id == R.id.note) {
+ title.setText("NOTE");
+ NoteFragment noteFragment = new NoteFragment();
+ android.support.v4.app.FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
+ fragmentTransaction.replace(R.id.fragment, noteFragment);
+ fragmentTransaction.commit();
+ } else if (id == R.id.shop) {
+ title.setText("HYMART");
+ ShopFragment shopFragment = new ShopFragment();
+ android.support.v4.app.FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
+ fragmentTransaction.replace(R.id.fragment, shopFragment);
+ fragmentTransaction.commit();
+ }
+ DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
+ drawer.closeDrawer(GravityCompat.START);
+ return true;
+ }
+}
diff --git a/app/src/main/java/id/onestep/hydron/View/NoteFragment.java b/app/src/main/java/id/onestep/hydron/View/NoteFragment.java
new file mode 100644
index 0000000..c1162bd
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/View/NoteFragment.java
@@ -0,0 +1,42 @@
+package id.onestep.hydron.View;
+
+
+import android.os.Bundle;
+import android.support.v4.app.Fragment;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import com.xyz.step.FlowViewVertical;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import id.onestep.hydron.R;
+
+
+/**
+ * A simple {@link Fragment} subclass.
+ */
+public class NoteFragment extends Fragment {
+
+ private FlowViewVertical vflow;
+ public NoteFragment() {
+ // Required empty public constructor
+ }
+
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ // Inflate the layout for this fragment
+ View view = inflater.inflate(R.layout.fragment_note, container, false);
+ vflow = (FlowViewVertical) view.findViewById(R.id.vflow);
+ vflow.setProgress(4,4, new String[]{"Penjualan sawi\nRp.100.000","Penjualan pipa\nRp. 50.000","Penjualan sawi\nRp.100.000","Penjualan pipa\nRp. 50.000"}, null);
+ Map map = new HashMap();
+ map.put("#ABCB89","#ABCB89");
+ vflow.setKeyColor(map);
+ return view;
+ }
+
+}
diff --git a/app/src/main/java/id/onestep/hydron/View/ScheduleFragment.java b/app/src/main/java/id/onestep/hydron/View/ScheduleFragment.java
new file mode 100644
index 0000000..71b893d
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/View/ScheduleFragment.java
@@ -0,0 +1,60 @@
+package id.onestep.hydron.View;
+
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.support.design.widget.FloatingActionButton;
+import android.support.v4.app.Fragment;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ListView;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import id.onestep.hydron.Adapter.schedule_adapter;
+import id.onestep.hydron.Model.m_schedule;
+import id.onestep.hydron.R;
+
+
+/**
+ * A simple {@link Fragment} subclass.
+ */
+public class ScheduleFragment extends Fragment {
+ private ListView listView;
+ private schedule_adapter adapter;
+ private List mList;
+ private FloatingActionButton fab;
+
+ public ScheduleFragment() {
+ // Required empty public constructor
+ }
+
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ // Inflate the layout for this fragment
+ View view = inflater.inflate(R.layout.fragment_schedule, container, false);
+ listView = (ListView) view.findViewById(R.id.list_schedule);
+ mList = new ArrayList<>();
+
+ mList.add(new m_schedule(1,"Sawi","Panen"));
+ mList.add(new m_schedule(1,"Kangkung","Bibit"));
+ mList.add(new m_schedule(1,"Bayam","Tanam"));
+
+ adapter = new schedule_adapter(getActivity(),mList);
+ listView.setAdapter(adapter);
+ fab = (FloatingActionButton) view.findViewById(R.id.fabschedule);
+ fab.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent i = new Intent(getActivity(), AddSchedule.class);
+ startActivity(i);
+ }
+ });
+ return view;
+ }
+
+}
diff --git a/app/src/main/java/id/onestep/hydron/View/ShopAllFragment.java b/app/src/main/java/id/onestep/hydron/View/ShopAllFragment.java
new file mode 100644
index 0000000..213eb81
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/View/ShopAllFragment.java
@@ -0,0 +1,47 @@
+package id.onestep.hydron.View;
+
+
+import android.os.Bundle;
+import android.support.v4.app.Fragment;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.GridView;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import id.onestep.hydron.Adapter.shop_all_adapter;
+import id.onestep.hydron.Model.m_shop_all;
+import id.onestep.hydron.R;
+
+
+/**
+ * A simple {@link Fragment} subclass.
+ */
+public class ShopAllFragment extends Fragment {
+ private GridView gridView;
+ private List mGrid = new ArrayList();;
+ private shop_all_adapter adapter;
+
+ public ShopAllFragment() {
+ // Required empty public constructor
+ }
+
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ // Inflate the layout for this fragment
+ View view = inflater.inflate(R.layout.fragment_shop_all, container, false);
+ mGrid.add(new m_shop_all(1, R.mipmap.logo_hydron1, "Produk 1", "Rp. 30,000","3 stok"));
+ mGrid.add(new m_shop_all(2, R.mipmap.logo_hydron1, "Produk 2", "Rp. 50,000","4 stok"));
+ ArrayList grid = new ArrayList<>();
+
+ this.gridView = (GridView) view.findViewById(R.id.grid);
+ this.adapter = new shop_all_adapter(getActivity(), mGrid);
+ this.gridView.setAdapter(adapter);
+ return view;
+ }
+
+}
diff --git a/app/src/main/java/id/onestep/hydron/View/ShopFragment.java b/app/src/main/java/id/onestep/hydron/View/ShopFragment.java
new file mode 100644
index 0000000..4b75657
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/View/ShopFragment.java
@@ -0,0 +1,83 @@
+package id.onestep.hydron.View;
+
+
+import android.os.Bundle;
+import android.support.design.widget.TabLayout;
+import android.support.v4.app.Fragment;
+import android.support.v4.app.FragmentManager;
+import android.support.v4.app.FragmentPagerAdapter;
+import android.support.v4.view.ViewPager;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import id.onestep.hydron.R;
+
+
+/**
+ * A simple {@link Fragment} subclass.
+ */
+public class ShopFragment extends Fragment {
+ private TabLayout tabLayout;
+ private ViewPager mViewPager;
+
+
+ public ShopFragment() {
+ // Required empty public constructor
+ }
+
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ // Inflate the layout for this fragment
+ View view = inflater.inflate(R.layout.fragment_shop, container, false);
+ mViewPager = (ViewPager) view.findViewById(R.id.container);
+ setupViewPager(mViewPager);
+
+ TabLayout tabLayout = (TabLayout) view.findViewById(R.id.tabs);
+ tabLayout.setupWithViewPager(mViewPager);
+ return view;
+ }
+
+ private void setupViewPager(ViewPager viewPager) {
+ ViewPagerAdapter adapter = new ViewPagerAdapter(getFragmentManager());
+ adapter.addFragment(new ShopAllFragment(),"Semua");
+ adapter.addFragment(new ShopToolsFragment(),"Bibit");
+ adapter.addFragment(new ShopToolsFragment(),"Sayur");
+ adapter.addFragment(new ShopToolsFragment(),"Peralatan");
+ viewPager.setAdapter(adapter);
+ }
+
+ class ViewPagerAdapter extends FragmentPagerAdapter {
+ private final List mFragmentsList = new ArrayList<>();
+ private final List mFragmentTitleList = new ArrayList<>();
+
+ public ViewPagerAdapter(FragmentManager manager) {
+ super(manager);
+ }
+
+ @Override
+ public Fragment getItem(int position) {
+ return mFragmentsList.get(position);
+ }
+
+ @Override
+ public int getCount() {
+ return mFragmentsList.size();
+ }
+
+ public void addFragment(Fragment fragment, String title) {
+ mFragmentsList.add(fragment);
+ mFragmentTitleList.add(title);
+ }
+
+ public CharSequence getPageTitle(int position) {
+ return mFragmentTitleList.get(position);
+ }
+
+ }
+}
diff --git a/app/src/main/java/id/onestep/hydron/View/ShopToolsFragment.java b/app/src/main/java/id/onestep/hydron/View/ShopToolsFragment.java
new file mode 100644
index 0000000..4b5caa4
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/View/ShopToolsFragment.java
@@ -0,0 +1,32 @@
+package id.onestep.hydron.View;
+
+
+import android.os.Bundle;
+import android.support.v4.app.Fragment;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import id.onestep.hydron.R;
+
+
+/**
+ * A simple {@link Fragment} subclass.
+ */
+public class ShopToolsFragment extends Fragment {
+
+
+ public ShopToolsFragment() {
+ // Required empty public constructor
+ }
+
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ // Inflate the layout for this fragment
+ View view = inflater.inflate(R.layout.fragment_shop_tools, container, false);
+ return view;
+ }
+
+}
diff --git a/app/src/main/java/id/onestep/hydron/View/SignUp.java b/app/src/main/java/id/onestep/hydron/View/SignUp.java
new file mode 100644
index 0000000..650df82
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/View/SignUp.java
@@ -0,0 +1,27 @@
+package id.onestep.hydron.View;
+
+import android.content.Intent;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+
+import id.onestep.hydron.R;
+
+public class SignUp extends AppCompatActivity {
+ private Button signup;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_sign_up);
+ signup = (Button) findViewById(R.id.btnSignUp);
+ signup.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent i = new Intent(SignUp.this, Login.class);
+ startActivity(i);
+ }
+ });
+ }
+}
diff --git a/app/src/main/java/id/onestep/hydron/View/SplashScreen.java b/app/src/main/java/id/onestep/hydron/View/SplashScreen.java
new file mode 100644
index 0000000..319fc13
--- /dev/null
+++ b/app/src/main/java/id/onestep/hydron/View/SplashScreen.java
@@ -0,0 +1,39 @@
+package id.onestep.hydron.View;
+
+import android.content.Intent;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.util.JsonReader;
+
+import com.airbnb.lottie.LottieAnimationView;
+
+import java.io.StringReader;
+
+import id.onestep.hydron.R;
+
+public class SplashScreen extends AppCompatActivity {
+// private LottieAnimationView animationView;
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_splash_screen);
+// animationView = (LottieAnimationView) findViewById(R.id.animationView);
+// JsonReader jsonReader = new JsonReader(new StringReader(animationView.toString()));
+// animationView.setAnimation(jsonReader);
+// animationView.playAnimation();
+// Thread splash = new Thread(){
+// public void run(){
+// try {
+// sleep(2000);
+// } catch (InterruptedException a){
+// a.printStackTrace();
+// } finally {
+// startActivity(new Intent(SplashScreen.this, Index.class));
+// finish();
+// }
+// }
+// };
+// splash.start();
+
+ }
+}
diff --git a/app/src/main/res/drawable/bg_signup.xml b/app/src/main/res/drawable/bg_signup.xml
new file mode 100644
index 0000000..7e18c01
--- /dev/null
+++ b/app/src/main/res/drawable/bg_signup.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/btn_signup.xml b/app/src/main/res/drawable/btn_signup.xml
new file mode 100644
index 0000000..6488aad
--- /dev/null
+++ b/app/src/main/res/drawable/btn_signup.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/button_index.xml b/app/src/main/res/drawable/button_index.xml
new file mode 100644
index 0000000..8cef6cb
--- /dev/null
+++ b/app/src/main/res/drawable/button_index.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/circle.xml b/app/src/main/res/drawable/circle.xml
new file mode 100644
index 0000000..965d042
--- /dev/null
+++ b/app/src/main/res/drawable/circle.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/edit_text.xml b/app/src/main/res/drawable/edit_text.xml
new file mode 100644
index 0000000..0dd2a3f
--- /dev/null
+++ b/app/src/main/res/drawable/edit_text.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/facebook_button.xml b/app/src/main/res/drawable/facebook_button.xml
new file mode 100644
index 0000000..b6df6bb
--- /dev/null
+++ b/app/src/main/res/drawable/facebook_button.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/google_button.xml b/app/src/main/res/drawable/google_button.xml
new file mode 100644
index 0000000..d7f8587
--- /dev/null
+++ b/app/src/main/res/drawable/google_button.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/green_button.xml b/app/src/main/res/drawable/green_button.xml
new file mode 100644
index 0000000..afc2e98
--- /dev/null
+++ b/app/src/main/res/drawable/green_button.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_add_black_24dp.xml b/app/src/main/res/drawable/ic_add_black_24dp.xml
new file mode 100644
index 0000000..e3979cd
--- /dev/null
+++ b/app/src/main/res/drawable/ic_add_black_24dp.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_arrow_back_black_24dp.xml b/app/src/main/res/drawable/ic_arrow_back_black_24dp.xml
new file mode 100644
index 0000000..a7d06ca
--- /dev/null
+++ b/app/src/main/res/drawable/ic_arrow_back_black_24dp.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_device_hub_black_24dp.xml b/app/src/main/res/drawable/ic_device_hub_black_24dp.xml
new file mode 100644
index 0000000..f96cf7b
--- /dev/null
+++ b/app/src/main/res/drawable/ic_device_hub_black_24dp.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_facebook_logo.xml b/app/src/main/res/drawable/ic_facebook_logo.xml
new file mode 100644
index 0000000..1eeae5f
--- /dev/null
+++ b/app/src/main/res/drawable/ic_facebook_logo.xml
@@ -0,0 +1,4 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_google_plus.xml b/app/src/main/res/drawable/ic_google_plus.xml
new file mode 100644
index 0000000..26ba036
--- /dev/null
+++ b/app/src/main/res/drawable/ic_google_plus.xml
@@ -0,0 +1,5 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/ic_home_black_24dp.xml b/app/src/main/res/drawable/ic_home_black_24dp.xml
new file mode 100644
index 0000000..b8b2303
--- /dev/null
+++ b/app/src/main/res/drawable/ic_home_black_24dp.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_https_black_24dp.xml b/app/src/main/res/drawable/ic_https_black_24dp.xml
new file mode 100644
index 0000000..3cc260f
--- /dev/null
+++ b/app/src/main/res/drawable/ic_https_black_24dp.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..01f0af0
--- /dev/null
+++ b/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml
new file mode 100644
index 0000000..c7bd21d
--- /dev/null
+++ b/app/src/main/res/drawable/ic_launcher_foreground.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable/ic_note_black_24dp.xml b/app/src/main/res/drawable/ic_note_black_24dp.xml
new file mode 100644
index 0000000..c7c8d72
--- /dev/null
+++ b/app/src/main/res/drawable/ic_note_black_24dp.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_people_black_24dp.xml b/app/src/main/res/drawable/ic_people_black_24dp.xml
new file mode 100644
index 0000000..35d638f
--- /dev/null
+++ b/app/src/main/res/drawable/ic_people_black_24dp.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_person_outline_black_24dp.xml b/app/src/main/res/drawable/ic_person_outline_black_24dp.xml
new file mode 100644
index 0000000..18c0511
--- /dev/null
+++ b/app/src/main/res/drawable/ic_person_outline_black_24dp.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_phone_iphone_black_24dp.xml b/app/src/main/res/drawable/ic_phone_iphone_black_24dp.xml
new file mode 100644
index 0000000..11f13ba
--- /dev/null
+++ b/app/src/main/res/drawable/ic_phone_iphone_black_24dp.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_schedule_black_24dp.xml b/app/src/main/res/drawable/ic_schedule_black_24dp.xml
new file mode 100644
index 0000000..db76306
--- /dev/null
+++ b/app/src/main/res/drawable/ic_schedule_black_24dp.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_search_black_24dp.xml b/app/src/main/res/drawable/ic_search_black_24dp.xml
new file mode 100644
index 0000000..0844e9b
--- /dev/null
+++ b/app/src/main/res/drawable/ic_search_black_24dp.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_shopping_cart_black_24dp.xml b/app/src/main/res/drawable/ic_shopping_cart_black_24dp.xml
new file mode 100644
index 0000000..4d901a5
--- /dev/null
+++ b/app/src/main/res/drawable/ic_shopping_cart_black_24dp.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/font/font_nunitobold.xml b/app/src/main/res/font/font_nunitobold.xml
new file mode 100644
index 0000000..14f9024
--- /dev/null
+++ b/app/src/main/res/font/font_nunitobold.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/font/font_nunitoextra.xml b/app/src/main/res/font/font_nunitoextra.xml
new file mode 100644
index 0000000..6985ce6
--- /dev/null
+++ b/app/src/main/res/font/font_nunitoextra.xml
@@ -0,0 +1,8 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/font/font_roboto.xml b/app/src/main/res/font/font_roboto.xml
new file mode 100644
index 0000000..4253759
--- /dev/null
+++ b/app/src/main/res/font/font_roboto.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/font/nunito_bold.ttf b/app/src/main/res/font/nunito_bold.ttf
new file mode 100644
index 0000000..d203733
Binary files /dev/null and b/app/src/main/res/font/nunito_bold.ttf differ
diff --git a/app/src/main/res/font/nunito_extrabold.ttf b/app/src/main/res/font/nunito_extrabold.ttf
new file mode 100644
index 0000000..a7be87e
Binary files /dev/null and b/app/src/main/res/font/nunito_extrabold.ttf differ
diff --git a/app/src/main/res/font/roboto.ttf b/app/src/main/res/font/roboto.ttf
new file mode 100644
index 0000000..7d9a6c4
Binary files /dev/null and b/app/src/main/res/font/roboto.ttf differ
diff --git a/app/src/main/res/layout/activity_add_schedule.xml b/app/src/main/res/layout/activity_add_schedule.xml
new file mode 100644
index 0000000..d381df9
--- /dev/null
+++ b/app/src/main/res/layout/activity_add_schedule.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_index.xml b/app/src/main/res/layout/activity_index.xml
new file mode 100644
index 0000000..ef8adc2
--- /dev/null
+++ b/app/src/main/res/layout/activity_index.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml
new file mode 100644
index 0000000..d9bf49c
--- /dev/null
+++ b/app/src/main/res/layout/activity_login.xml
@@ -0,0 +1,153 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..9da64f3
--- /dev/null
+++ b/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_sign_up.xml b/app/src/main/res/layout/activity_sign_up.xml
new file mode 100644
index 0000000..9ae85f2
--- /dev/null
+++ b/app/src/main/res/layout/activity_sign_up.xml
@@ -0,0 +1,163 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_splash_screen.xml b/app/src/main/res/layout/activity_splash_screen.xml
new file mode 100644
index 0000000..a12a983
--- /dev/null
+++ b/app/src/main/res/layout/activity_splash_screen.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/app_bar_layout.xml b/app/src/main/res/layout/app_bar_layout.xml
new file mode 100644
index 0000000..6cb3b37
--- /dev/null
+++ b/app/src/main/res/layout/app_bar_layout.xml
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml
new file mode 100644
index 0000000..80342a0
--- /dev/null
+++ b/app/src/main/res/layout/fragment_home.xml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_note.xml b/app/src/main/res/layout/fragment_note.xml
new file mode 100644
index 0000000..8c459ea
--- /dev/null
+++ b/app/src/main/res/layout/fragment_note.xml
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_schedule.xml b/app/src/main/res/layout/fragment_schedule.xml
new file mode 100644
index 0000000..6e89b8f
--- /dev/null
+++ b/app/src/main/res/layout/fragment_schedule.xml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_shop.xml b/app/src/main/res/layout/fragment_shop.xml
new file mode 100644
index 0000000..149b402
--- /dev/null
+++ b/app/src/main/res/layout/fragment_shop.xml
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_shop_all.xml b/app/src/main/res/layout/fragment_shop_all.xml
new file mode 100644
index 0000000..579bc51
--- /dev/null
+++ b/app/src/main/res/layout/fragment_shop_all.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_shop_tools.xml b/app/src/main/res/layout/fragment_shop_tools.xml
new file mode 100644
index 0000000..9f86a21
--- /dev/null
+++ b/app/src/main/res/layout/fragment_shop_tools.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/grid_shop_all.xml b/app/src/main/res/layout/grid_shop_all.xml
new file mode 100644
index 0000000..2c44028
--- /dev/null
+++ b/app/src/main/res/layout/grid_shop_all.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/list_home.xml b/app/src/main/res/layout/list_home.xml
new file mode 100644
index 0000000..a6fbc52
--- /dev/null
+++ b/app/src/main/res/layout/list_home.xml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/list_schedule.xml b/app/src/main/res/layout/list_schedule.xml
new file mode 100644
index 0000000..1d2ac37
--- /dev/null
+++ b/app/src/main/res/layout/list_schedule.xml
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/nav_header.xml b/app/src/main/res/layout/nav_header.xml
new file mode 100644
index 0000000..bdd13e7
--- /dev/null
+++ b/app/src/main/res/layout/nav_header.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/menu/main.xml b/app/src/main/res/menu/main.xml
new file mode 100644
index 0000000..832c6d6
--- /dev/null
+++ b/app/src/main/res/menu/main.xml
@@ -0,0 +1,10 @@
+
+
\ No newline at end of file
diff --git a/app/src/main/res/menu/main_drawer.xml b/app/src/main/res/menu/main_drawer.xml
new file mode 100644
index 0000000..4c789a8
--- /dev/null
+++ b/app/src/main/res/menu/main_drawer.xml
@@ -0,0 +1,26 @@
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..c4a603d
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..c4a603d
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..60cf7a5
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..a8aebbe
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..4f29fd5
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..cc0d615
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..2208e89
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..653ed37
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..245fcad
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..6c4cebe
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..47a6e64
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/logo_apps.png b/app/src/main/res/mipmap-xhdpi/logo_apps.png
new file mode 100644
index 0000000..19ea304
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/logo_apps.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/logo_hydron.png b/app/src/main/res/mipmap-xhdpi/logo_hydron.png
new file mode 100644
index 0000000..a651eb0
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/logo_hydron.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/logo_hydron1.png b/app/src/main/res/mipmap-xhdpi/logo_hydron1.png
new file mode 100644
index 0000000..51d7066
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/logo_hydron1.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..1ad0f09
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..b3103f6
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..9bfad28
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..af576aa
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..afafd21
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..1cc4a9b
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..d443c58
--- /dev/null
+++ b/app/src/main/res/values/colors.xml
@@ -0,0 +1,7 @@
+
+
+ #ABCB89
+ #FFFFFF
+ #ABCB89
+ #ABCB89
+
diff --git a/app/src/main/res/values/dimen.xml b/app/src/main/res/values/dimen.xml
new file mode 100644
index 0000000..6ac4758
--- /dev/null
+++ b/app/src/main/res/values/dimen.xml
@@ -0,0 +1,9 @@
+
+
+ 16dp
+ 16dp
+ 8dp
+ 176dp
+ 16dp
+ 8dp
+
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..4047d4f
--- /dev/null
+++ b/app/src/main/res/values/strings.xml
@@ -0,0 +1,8 @@
+
+ Hydron
+ Open navigation drawer
+ Close navigation drawer
+
+
+ Hello blank fragment
+
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..02bb53c
--- /dev/null
+++ b/app/src/main/res/values/styles.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/test/java/id/onestep/hydron/ExampleUnitTest.java b/app/src/test/java/id/onestep/hydron/ExampleUnitTest.java
new file mode 100644
index 0000000..973e874
--- /dev/null
+++ b/app/src/test/java/id/onestep/hydron/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package id.onestep.hydron;
+
+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/build.gradle b/build.gradle
new file mode 100644
index 0000000..1a3d812
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,27 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+
+ repositories {
+ google()
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:3.1.2'
+
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..743d692
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1,13 @@
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..7a3265e
Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..ea66fc9
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Sat May 12 15:34:47 ICT 2018
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
diff --git a/gradlew b/gradlew
new file mode 100644
index 0000000..cccdd3d
--- /dev/null
+++ b/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/gradlew.bat b/gradlew.bat
new file mode 100644
index 0000000..f955316
--- /dev/null
+++ b/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/settings.gradle b/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/settings.gradle
@@ -0,0 +1 @@
+include ':app'