new

parent 9352884b
*.iml
.gradle
/local.properties
/.idea/caches/build_file_checksums.ser
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
.DS_Store
/build
/captures
.externalNativeBuild
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<Objective-C-extensions>
<file>
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Import" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Macro" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Typedef" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Enum" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Constant" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Global" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Struct" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="FunctionPredecl" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Function" />
</file>
<class>
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Property" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Synthesize" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="InitMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="StaticMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="InstanceMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="DeallocMethod" />
</class>
<extensions>
<pair source="cpp" header="h" fileNamingConvention="NONE" />
<pair source="c" header="h" fileNamingConvention="NONE" />
</extensions>
</Objective-C-extensions>
</code_scheme>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
</GradleProjectSettings>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="NullableNotNullManager">
<option name="myDefaultNullable" value="android.support.annotation.Nullable" />
<option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
<option name="myNullables">
<value>
<list size="7">
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" />
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
<item index="2" class="java.lang.String" itemvalue="javax.annotation.CheckForNull" />
<item index="3" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
<item index="4" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
<item index="5" class="java.lang.String" itemvalue="androidx.annotation.Nullable" />
<item index="6" class="java.lang.String" itemvalue="androidx.annotation.RecentlyNullable" />
</list>
</value>
</option>
<option name="myNotNulls">
<value>
<list size="6">
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.NotNull" />
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nonnull" />
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.NonNull" />
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.NonNull" />
<item index="4" class="java.lang.String" itemvalue="androidx.annotation.NonNull" />
<item index="5" class="java.lang.String" itemvalue="androidx.annotation.RecentlyNonNull" />
</list>
</value>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
</set>
</option>
</component>
</project>
\ No newline at end of file
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.sammy.record_lahan"
minSdkVersion 23
targetSdkVersion 28
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:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:cardview-v7:28.0.0-rc02'
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.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.google.firebase:firebase-core:16.0.1'
}
apply plugin: 'com.google.gms.google-services'
{
"project_info": {
"project_number": "513900453894",
"firebase_url": "https://test-44dd6.firebaseio.com",
"project_id": "test-44dd6",
"storage_bucket": "test-44dd6.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:513900453894:android:91fb428b385af96d",
"android_client_info": {
"package_name": "com.example.sammy.record_lahan"
}
},
"oauth_client": [
{
"client_id": "513900453894-s7d32tag18f22plth8ehu0lbh2e0j554.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyBkiehlEpLbT9qgW6xsbQcVemjX3h5Mvfg"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "513900453894-s7d32tag18f22plth8ehu0lbh2e0j554.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
\ No newline at end of file
{
"project_info": {
"project_number": "513900453894",
"firebase_url": "https://test-44dd6.firebaseio.com",
"project_id": "test-44dd6",
"storage_bucket": "test-44dd6.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:513900453894:android:91fb428b385af96d",
"android_client_info": {
"package_name": "com.example.sammy.record_lahan"
}
},
"oauth_client": [
{
"client_id": "513900453894-s7d32tag18f22plth8ehu0lbh2e0j554.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyBkiehlEpLbT9qgW6xsbQcVemjX3h5Mvfg"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "513900453894-s7d32tag18f22plth8ehu0lbh2e0j554.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
\ No newline at end of file
# 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
package com.example.sammy.record_lahan;
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 <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.example.sammy.record_lahan", appContext.getPackageName());
}
}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.sammy.record_lahan">
<uses-permission android:name="android.permission.READ_CONTACTS" />
<application
android:allowBackup="true"
android:icon="@drawable/card"
android:label=""
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".splashScreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".record_lahan" />
<activity android:name=".userProfile" />
<activity android:name=".home" />
<activity android:name=".register" />
<activity android:name=".login" />
<activity android:name=".homeBefore" />
<activity android:name=".jualProduk" />
<activity android:name=".listLahan" />
<activity android:name=".tambahLahan" />
<activity android:name=".namaTanaman" />
<activity android:name=".pembibitan" />
<activity android:name=".penanaman" />
<activity android:name=".pemupukan" />
<activity android:name=".panen" />
<activity android:name=".pascaPanen" />
<activity android:name=".utama" />
<activity android:name=".main" />
<activity android:name=".ContentProvider"></activity>
</application>
</manifest>
\ No newline at end of file
package com.example.sammy.record_lahan;
import android.database.Cursor;
import android.net.Uri;
import android.provider.ContactsContract;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
public class ContentProvider extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_content_provider);
TextView contact = (TextView) findViewById(R.id.contact);
Cursor cursor = getContacts();
while (cursor.moveToNext()) {
String contactID = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID));
String displayName = cursor.getString(cursor.getColumnIndex(ContactsContract.Data.DISPLAY_NAME));
String displayPhone = "";
int hasPhone = cursor.getInt(cursor.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER));
if (hasPhone == 1) {
Cursor phoneCursor = getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, ContactsContract.CommonDataKinds.Phone.CONTACT_ID + " = " + contactID, null, null);
while (phoneCursor.moveToNext()) {
Log.v("Content Providers", displayPhone = phoneCursor.getString(phoneCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER)));
}
phoneCursor.close();
}
contact.append(displayName + " \n " + displayPhone);
contact.append("\n===========\n");
}
}
private Cursor getContacts() {
Uri uri = ContactsContract.Contacts.CONTENT_URI;
String[] projection = new String[]{ContactsContract.Contacts._ID, ContactsContract.Contacts.DISPLAY_NAME, ContactsContract.Contacts.HAS_PHONE_NUMBER};
String selection = ContactsContract.Contacts.IN_VISIBLE_GROUP + " = '" + ("1") + "'";
String[] selectionArgs = null;
String sortOrder = ContactsContract.Contacts.DISPLAY_NAME + " COLLATE LOCALIZED ASC";
return managedQuery(uri, projection, selection, selectionArgs, sortOrder);
}
}
package com.example.sammy.record_lahan;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import com.example.sammy.record_lahan.api.HomestayController;
/**
* Created by test on 5/2/2019.
*/
public class DatabaseHelper extends SQLiteOpenHelper{
private static final int DATABASE_VERSION = 1;
public static final String DATABASE_NAME = "COBA.db";
public DatabaseHelper(Context context) {
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}
@Override
public void onCreate(SQLiteDatabase db) {
System.out.println("qwerty");
db.beginTransaction();
db.execSQL("CREATE TABLE IF NOT EXISTS akun (id int primary key autoincrement, username varchar(25), password varchar(25))");
System.out.println("dedededededede");
String sqll = "INSERT INTO akun(username, password) VALUES ( 'hendra', 'hendra');";
db.execSQL(sqll);
db.execSQL(HomestayController.CREATE_HOMESTAY);
}
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
}
}
package com.example.sammy.record_lahan;
public class User {
public int id;
public String username, password;
public User(int id, String email, String password) {
this.id = id;
this.username = email;
this.password = password;
}
public int getId() {
return id;
}
public String getUsername() {
return username;
}
public String getPassword() {
return password;
}
public void setId(int id) {
this.id = id;
}
public void setUsername(String email) {
this.username = email;
}
public void setPassword(String password) {
this.password = password;
}
}
package com.example.sammy.record_lahan;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.ArrayList;
public class adapter extends RecyclerView.Adapter<adapter.MahasiswaViewHolder> {
private ArrayList<model> dataList;
public adapter(ArrayList<model> dataList) {
this.dataList = dataList;
}
@Override
public MahasiswaViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
LayoutInflater layoutInflater = LayoutInflater.from(parent.getContext());
View view = layoutInflater.inflate(R.layout.row, parent, false);
return new MahasiswaViewHolder(view);
}
@Override
public void onBindViewHolder(MahasiswaViewHolder holder, int position) {
holder.jenis.setText(dataList.get(position).getJenis());
holder.ukuran.setText(dataList.get(position).getUkuran());
holder.jenisTanaman.setText(dataList.get(position).getJenisTanaman());
holder.lokasi.setText(dataList.get(position).getLokasi());
holder.nama.setText(dataList.get(position).getNama());
holder.contact.setText(dataList.get(position).getContact());
}
@Override
public int getItemCount() {
return (dataList != null) ? dataList.size() : 0;
}
public class MahasiswaViewHolder extends RecyclerView.ViewHolder{
private TextView jenis, ukuran, jenisTanaman,lokasi,nama,contact;
public MahasiswaViewHolder(View itemView) {
super(itemView);
jenis=itemView.findViewById(R.id.txt_jenis);
ukuran=itemView.findViewById(R.id.txt_ukuran);
jenisTanaman=itemView.findViewById(R.id.txt_jenisTanaman);
lokasi=itemView.findViewById(R.id.txt_lokasi);
nama=itemView.findViewById(R.id.txt_nama);
contact=itemView.findViewById(R.id.txt_contact);
}
}
}
package com.example.sammy.record_lahan.api;
import retrofit2.Call;
import retrofit2.http.POST;
public interface APIH {
@POST("/Coba/homestay/hasil")
Call<ResponseHomestay> getHasilHome();
}
package com.example.sammy.record_lahan.api;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
public interface Api {
@FormUrlEncoded
@POST("createuser")
Call<ResponseBody> createUser(
@Field("username") String username,
@Field("password") String password
);
@FormUrlEncoded
@POST("userlogin")
Call<LoginResponse> userLogin(
@Field("username") String username,
@Field("password") String password
);
}
package com.example.sammy.record_lahan.api;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.example.sammy.record_lahan.DatabaseHelper;
import java.sql.SQLException;
import java.util.ArrayList;
public class HomestayController {
private DatabaseHelper db;
private SQLiteDatabase database;
public static final String TABLE_NAME = "data";
public static final String ID = "id";
public static final String NAMA_HOMESTAY = "nama_tanaman";
public static final String ALAMAT_HOMESTAY = "lokasi";
public static final String AREA_TERDEKAT = "ukuran";
@Override
public int hashCode() {
return super.hashCode();
}
public static final String CREATE_HOMESTAY = "CREATE TABLE "+TABLE_NAME+ " " + "(" + ID + " INTEGER PRIMARY KEY AUTOINCREMENT," + NAMA_HOMESTAY + " TEXT," + ALAMAT_HOMESTAY + " TEXT,"
+ AREA_TERDEKAT + " TEXT ";
private String[] TABLE_COLOUMNS = {ID, NAMA_HOMESTAY, ALAMAT_HOMESTAY, AREA_TERDEKAT};
public HomestayController(Context context) {
db = new DatabaseHelper(context);
}
public void close() {
db.close();
}
public void open() throws SQLException {
database = db.getWritableDatabase();
}
public void deleteData() {
database.delete(TABLE_NAME, null, null);
}
public void insertData(int id, String nama_homestay, String alamat, String area_terdekat, String jumlah_kamar, String harga, String gambar) {
ContentValues contentValues = new ContentValues();
contentValues.put(ID, id);
contentValues.put(NAMA_HOMESTAY, nama_homestay);
contentValues.put(ALAMAT_HOMESTAY, alamat);
contentValues.put(AREA_TERDEKAT, area_terdekat);
database.insert(TABLE_NAME, null, contentValues);
}
public ArrayList<homestayModel> getData() {
ArrayList<homestayModel> allData = new ArrayList<homestayModel>();
Cursor cursor = null;
cursor = database.query(TABLE_NAME, TABLE_COLOUMNS, null, null, null, null, ID + " ASC");
cursor.moveToFirst();
while (!cursor.isAfterLast()) {
allData.add(parseData(cursor));
cursor.moveToNext();
}
cursor.close();
return allData;
}
private homestayModel parseData(Cursor cursor) {
homestayModel curData = new homestayModel();
curData.setId(cursor.getInt(0));
curData.setNama_homestay(cursor.getString(1));
curData.setAlamat(cursor.getString(2));
curData.setArea_terdekat(cursor.getString(3));
curData.setJumlah_kamar(cursor.getString(4));
curData.setHarga(cursor.getString(5));
curData.setGambar(cursor.getString(6));
return curData;
}
}
package com.example.sammy.record_lahan.api;
import com.example.sammy.record_lahan.User;
public class LoginResponse {
private boolean error;
private String message;
private User user;
public LoginResponse(boolean error, String message, User user) {
this.error = error;
this.message = message;
this.user = user;
}
public boolean isError() {
return error;
}
public String getMessage() {
return message;
}
public User getUser() {
return user;
}
}
package com.example.sammy.record_lahan.api;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class ResponseHomestay {
private String error;
@SerializedName("hasil")
private List<homestayModel> list;
public String getError() {
return error;
}
public void setError(String error) {
this.error = error;
}
public List<homestayModel> getList() {
return list;
}
public void setList(List<homestayModel> list) {
this.list = list;
}
}
package com.example.sammy.record_lahan.api;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class RestClient {
private static APIH REST_CLIENT;
static {
setupRestClient();
}
private RestClient() {
}
public static APIH get() {
return REST_CLIENT;
}
private static void setupRestClient() {
Retrofit retrofit = new Retrofit.Builder().baseUrl("http://192.168.43.147/").addConverterFactory(GsonConverterFactory.create()).build();
REST_CLIENT = retrofit.create(APIH.class);
}
}
package com.example.sammy.record_lahan.api;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class RetrofitClient {
private static final String BASE_URL = "http://192.168.43.147/android_api/public/";
private static RetrofitClient mInstance;
private Retrofit retrofit;
private RetrofitClient() {
retrofit = new Retrofit.Builder()
.baseUrl(BASE_URL)
.addConverterFactory(GsonConverterFactory.create())
.build();
}
public static synchronized RetrofitClient getInstance() {
if (mInstance == null) {
mInstance = new RetrofitClient();
}
return mInstance;
}
public Api getApi() {
return retrofit.create(Api.class);
}
}
package com.example.sammy.record_lahan.api;
public class homestayModel {
private int id;
private String nama_homestay;
private String alamat;
private String area_terdekat;
private String harga;
private String jumlah_kamar;
private String gambar;
public homestayModel() {
}
public homestayModel(int id, String nama_homestay, String alamat, String area_terdekat, String jumlah_kamar, String harga, String gambar) {
this.id = id;
this.nama_homestay = nama_homestay;
this.alamat = alamat;
this.area_terdekat = area_terdekat;
this.harga = harga;
this.jumlah_kamar = jumlah_kamar;
this.gambar = gambar;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getNama_homestay() {
return nama_homestay;
}
public void setNama_homestay(String nama_homestay) {
this.nama_homestay = nama_homestay;
}
public String getAlamat() {
return alamat;
}
public void setAlamat(String alamat) {
this.alamat = alamat;
}
public String getArea_terdekat() {
return area_terdekat;
}
public void setArea_terdekat(String area_terdekat) {
this.area_terdekat = area_terdekat;
}
public String getHarga() {
return harga;
}
public void setHarga(String harga) {
this.harga = harga;
}
public String getJumlah_kamar() {
return jumlah_kamar;
}
public void setJumlah_kamar(String jumlah_kamar) {
this.jumlah_kamar = jumlah_kamar;
}
public String getGambar() {
return gambar;
}
public void setGambar(String gambar) {
this.gambar = gambar;
}
}
package com.example.sammy.record_lahan;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.GridLayout;
public class home extends AppCompatActivity {
GridLayout listLahan;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_home);
// listLahan = (GridLayout) findViewById(R.id.listlahan);
// for (int i = 0; i < listLahan.getChildCount(); i++) {
// CardView carview = (CardView) listLahan.getChildAt(i);
//
//
// carview.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View view) {
// Intent next = new Intent(getApplicationContext(), namaTanaman.class);
// startActivity(next);
// }
// });
//
//
// }
}
public void onClickaddLahan(View view) {
Intent add = new Intent(home.this, tambahLahan.class);
startActivity(add);
finish();
}
public void inClickJualProduk(View view) {
Intent jual = new Intent(home.this, jualProduk.class);
startActivity(jual);
finish();
}
public void lahanX(View view) {
Intent lahan = new Intent(home.this,namaTanaman.class);
startActivity(lahan);
finish();
}
}
\ No newline at end of file
package com.example.sammy.record_lahan;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.ViewFlipper;
import android.content.BroadcastReceiver;
public class homeBefore extends AppCompatActivity {
ViewFlipper v_flipper;
DatabaseHelper dbcenter;
Cursor cursor;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_home_before);
int images[] = {R.drawable.pertanian, R.drawable.pertanian2, R.drawable.pertanian3};
v_flipper = findViewById(R.id.v_flipper);
for (int i = 0; i < images.length; i++) {
fliverImages(images[i]);
}
for (int image : images)
fliverImages(image);
}
public void onClickToLogin(View view) {
Intent login = new Intent(homeBefore.this, com.example.sammy.record_lahan.login.class);
startActivity(login);
finish();
}
public void onClickToRegister(View view) {
Intent register = new Intent(homeBefore.this, com.example.sammy.record_lahan.register.class);
startActivity(register);
finish();
}
public void fliverImages(int images) {
ImageView imageView = new ImageView(this);
imageView.setBackgroundResource(images);
v_flipper.addView(imageView);
v_flipper.setFlipInterval(4000);
v_flipper.setAutoStart(true);
v_flipper.setInAnimation(this, android.R.anim.slide_in_left);
v_flipper.setOutAnimation(this, android.R.anim.slide_out_right);
}
@Override
public void onBackPressed() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setCancelable(true);
builder.setMessage("Do you want to Exit?");
builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
//if user pressed "yes", then he is allowed to exit from application
finish();
}
});
}
}
package com.example.sammy.record_lahan;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.EditText;
import java.util.ArrayList;
public class jualProduk extends AppCompatActivity {
private RecyclerView recyclerView;
private adapter adapter;
private ArrayList<model> mahasiswaArrayList;
Cursor cursor;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_jual_produk);
addData();
recyclerView = (RecyclerView) findViewById(R.id.recycler_view);
adapter = new adapter(mahasiswaArrayList);
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(jualProduk.this);
recyclerView.setLayoutManager(layoutManager);
recyclerView.setAdapter(adapter);
}
void addData() {
mahasiswaArrayList = new ArrayList<>();
DatabaseHelper db = new DatabaseHelper(this);
SQLiteDatabase dd = db.getReadableDatabase();
SQLiteDatabase dw = db.getWritableDatabase();
cursor = dd.rawQuery("SELECT *FROM test", null);
cursor.moveToFirst();
EditText usr = findViewById(R.id.textUsername);
EditText pwd = findViewById(R.id.textPassword);
if (cursor.getCount() > 0) {
cursor.moveToPosition(0);
String a="asd";
System.out.println(cursor.getString(0).toString());
System.out.println(cursor.getString(1).toString());
System.out.println("testsetsetetsset");
mahasiswaArrayList.add(new model(a, a, a,a, cursor.getString(0).toString(), cursor.getString(2).toString()));
}
}
}
package com.example.sammy.record_lahan;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class listLahan extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_list_lahan);
}
}
package com.example.sammy.record_lahan;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Patterns;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.example.sammy.record_lahan.api.LoginResponse;
import com.example.sammy.record_lahan.api.RetrofitClient;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
public class login extends AppCompatActivity {
Cursor cursor;
EditText editUsername;
EditText editPassword;
Button buttonLogin;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
// initViews();
//
// buttonLogin.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View view) {
// userLogin();
// }
// });
}
public void onClickToLogin(View view) {
boolean log=false;
DatabaseHelper db=new DatabaseHelper(this);
SQLiteDatabase dd=db.getReadableDatabase();
SQLiteDatabase dw=db.getWritableDatabase();
cursor = dd.rawQuery("SELECT *FROM account",null);
cursor.moveToFirst();
EditText usr=findViewById(R.id.textUsername);
EditText pwd=findViewById(R.id.textPassword);
if (cursor.getCount()>0)
{
cursor.moveToPosition(0);
if(usr.getText().toString().equals(cursor.getString(1).toString())){
if(pwd.getText().toString().equals(cursor.getString(2).toString())){
log=true;
Toast.makeText(this,"sukses",Toast.LENGTH_SHORT).show();
Intent login = new Intent(com.example.sammy.record_lahan.login.this, home.class);
startActivity(login);
}
}
if(log=false){
usr.setError("gagal Login");
}
System.out.println(cursor.getString(0).toString());
System.out.println(cursor.getString(1).toString());
System.out.println(cursor.getString(2).toString());
}
}
// private void initViews() {
// editUsername = (EditText) findViewById(R.id.textUsername);
// editPassword = (EditText) findViewById(R.id.textPassword);
// buttonLogin = (Button) findViewById(R.id.buttonLogin);
// }
//
// private void userLogin(){
// String email = editUsername.getText().toString().trim();
// String password = editPassword.getText().toString().trim();
//
// if(email.isEmpty()){
// editUsername.setError("Username is required");
// editUsername.requestFocus();
// return;
// }if(!Patterns.EMAIL_ADDRESS.matcher(email).matches()){
// editUsername.setError("Enter a valid Username");
// editUsername.requestFocus();
// return;
// }if(password.isEmpty()){
// editPassword.setError("Password is required");
// editPassword.requestFocus();
// return;
// }if(password.length() < 6){
// editPassword.setError("Password should be 6 character ");
// editPassword.requestFocus();
// return;
// }
//
// Call<LoginResponse> call = RetrofitClient
// .getInstance()
// .getApi()
// .userLogin(email,password);
//
// call.enqueue(new Callback<LoginResponse>() {
// @Override
// public void onResponse(Call<LoginResponse> call, Response<LoginResponse> response) {
// LoginResponse loginResponse = response.body();
// if(!loginResponse.isError()){
// Toast.makeText(login.this,loginResponse.getMessage(),Toast.LENGTH_LONG).show();
// Intent mainIntent = new Intent(getApplicationContext(),home.class);
// startActivity(mainIntent);
// }else{
// Toast.makeText(login.this,"Username dan Password anda salah",Toast.LENGTH_LONG).show();
// }
//
// }
//
// @Override
// public void onFailure(Call<LoginResponse> call, Throwable t) {
// Toast.makeText(getApplicationContext(),t.getMessage(),Toast.LENGTH_LONG).show();
// }
// });
// }
}
package com.example.sammy.record_lahan;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class main extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
package com.example.sammy.record_lahan;
public class model {
private String jenis;
private String ukuran;
private String jenisTanaman;
private String lokasi;
private String nama;
private String contact;
public model(String jenis, String ukuran, String jenisTanaman, String lokasi, String nama, String contact) {
this.jenis = jenis;
this.ukuran = ukuran;
this.jenisTanaman = jenisTanaman;
this.lokasi = lokasi;
this.nama = nama;
this.contact = contact;
}
public void setJenis(String jenis) {
this.jenis = jenis;
}
public void setUkuran(String ukuran) {
this.ukuran = ukuran;
}
public void setJenisTanaman(String jenisTanaman) {
this.jenisTanaman = jenisTanaman;
}
public void setLokasi(String lokasi) {
this.lokasi = lokasi;
}
public void setNama(String nama) {
this.nama = nama;
}
public void setContact(String contact) {
this.contact = contact;
}
public String getJenis() {
return jenis;
}
public String getUkuran() {
return ukuran;
}
public String getJenisTanaman() {
return jenisTanaman;
}
public String getLokasi() {
return lokasi;
}
public String getNama() {
return nama;
}
public String getContact() {
return contact;
}
}
package com.example.sammy.record_lahan;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
public class namaTanaman extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_nama_tanaman);
}
public void btnLogout(View view) {
Intent logOut = new Intent(namaTanaman.this, homeBefore.class);
startActivity(logOut);
finish();
}
public void btnPembibitan(View view) {
Intent a= new Intent(namaTanaman.this, pembibitan.class);
startActivity(a);
finish();
}
public void btnPenanaman(View view) {
Intent b= new Intent(namaTanaman.this, penanaman.class);
startActivity(b);
finish();
}
public void btnPemupukan(View view) {
Intent c= new Intent(namaTanaman.this, pemupukan.class);
startActivity(c);
finish();
}
public void btnPanen(View view) {
Intent d= new Intent(namaTanaman.this, panen.class);
startActivity(d);
finish();
}
public void btnPascaPanen(View view) {
Intent e= new Intent(namaTanaman.this, pascaPanen.class);
startActivity(e);
finish();
}
}
package com.example.sammy.record_lahan;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class panen extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_panen);
}
}
package com.example.sammy.record_lahan;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class pascaPanen extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_pasca_panen);
}
}
package com.example.sammy.record_lahan;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class pembibitan extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_pembibitan);
}
}
package com.example.sammy.record_lahan;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class pemupukan extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_pemupukan);
}
}
package com.example.sammy.record_lahan;
import android.content.Intent;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class penanaman extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_penanaman);
}
}
package com.example.sammy.record_lahan;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class record_lahan extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_record_lahan);
}
}
package com.example.sammy.record_lahan;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
public class register extends AppCompatActivity {
EditText name,username,password;
Cursor cursor;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_register);
}
public void onClickToRegister(View view) {
Intent register = new Intent(com.example.sammy.record_lahan.register.this, login.class);
startActivity(register);
finish();
}
public void reg(View v){
DatabaseHelper db=new DatabaseHelper(this);
SQLiteDatabase dd=db.getReadableDatabase();
SQLiteDatabase dw=db.getWritableDatabase();
name=findViewById(R.id.namaDepan);
username=findViewById(R.id.username);
password=findViewById(R.id.password);
String a=name.getText().toString();
String b=username.getText().toString();
String c=password.getText().toString();
dw.execSQL("CREATE TABLE IF NOT EXISTS account(" +
"nama text,username text,password text)");
dd.execSQL("INSERT INTO account ('nama','username','password')VALUES('"+a+"','"+b+"','"+c+"')");
System.out.println("del");
cursor = dd.rawQuery("SELECT *FROM account",null);
cursor.moveToFirst();
if (cursor.getCount()>0)
{
cursor.moveToPosition(0);
System.out.println(cursor.getString(0).toString());
System.out.println(cursor.getString(1).toString());
System.out.println(cursor.getString(2).toString());
}
Intent i=new Intent(register.this,login.class);
startActivity(i);
finish();
}
}
package com.example.sammy.record_lahan;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.os.Handler;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.animation.Animation;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.example.sammy.record_lahan.api.HomestayController;
public class splashScreen extends AppCompatActivity {
private ProgressBar progressBar = null;
private AsyncTaskRunner asyncTaskRunner = null;
private TextView batteryLevel;
private ProgressBar mBatteryLevelProgress;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash_screen);
DatabaseHelper db=new DatabaseHelper(getApplicationContext());
progressBar = (ProgressBar) findViewById(R.id.progressBar);
progressBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);
asyncTaskRunner = new AsyncTaskRunner();
asyncTaskRunner.execute();
mBatteryLevelProgress = (ProgressBar) findViewById(R.id.progressBar);
// this.registerReceiver(this.myBatteryReceiver, new IntentFilter(Intent.ACTION_BATTERY_CHANGED));
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
final Intent first = new Intent(getApplicationContext(), homeBefore.class);
startActivity(first);
finish();
}
}, 1500);
}
class AsyncTaskRunner extends AsyncTask<Void, Integer, Integer> {
private int progress = 0;
@Override
protected Integer doInBackground(Void... voids) {
for (int i = 0; i <= 20; i++) {
publishProgress(progress); // Calls onProgressUpdate()
final int value = i;
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
progress = value;
}
return progress;
}
/* * (non-Javadoc) * * @see android.os.AsyncTask#onProgressUpdate(Progress[]) */
@Override
protected void onProgressUpdate(Integer... values) {
progressBar.setProgress(values[0]);
}
}
}
package com.example.sammy.record_lahan;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
public class tambahLahan extends AppCompatActivity {
Cursor cursor;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_tambah_lahan);
}
public void tambah(View v){
DatabaseHelper db=new DatabaseHelper(this);
SQLiteDatabase dd=db.getReadableDatabase();
SQLiteDatabase dw=db.getWritableDatabase();
dw.execSQL("CREATE TABLE IF NOT EXISTS test(" +
"nama text,lokasi text,jenis text)");
String a="hendra";
String b="del";
String c="cabai";
dd.execSQL("INSERT INTO test ('nama','lokasi','jenis')VALUES('"+a+"','"+b+"','"+c+"')");
dw.execSQL("CREATE TABLE IF NOT EXISTS lahan(" +
"jenislahan text,ukuran text,jenisTanaman text,lokasi text,nama text,contact text)");
dd.execSQL("INSERT INTO lahan('jenislahan','ukuran','jenisTanaman','lokasi','nama','contact')VALUES('asd','asd','asd','asd','asd','asd')");
EditText jenis,ukuran,jenisTanaman,lokasi,nama,contact;
jenis=findViewById(R.id.jenisLahan);
ukuran=findViewById(R.id.ukuranLahan);
jenisTanaman=findViewById(R.id.jenisTanaman);
lokasi=findViewById(R.id.lokasiLahan);
nama=findViewById(R.id.namaPemilikLahan);
contact=findViewById(R.id.contactPemiliklahan);
if(jenis.getText().toString().isEmpty()){
jenis.setError("Harus di isi");
}else if(ukuran.getText().toString().isEmpty()){
ukuran.setError("Harus di isi");
}else if(jenisTanaman.getText().toString().isEmpty()){
jenisTanaman.setError("Harus di isi");
}else if(lokasi.getText().toString().isEmpty()){
lokasi.setError("Harus di isi");
}else if(nama.getText().toString().isEmpty()){
nama.setError("Harus di isi");
}else if(contact.getText().toString().isEmpty()){
contact.setError("Harus di isi");
}else {
System.out.println(jenis.getText().toString()+ukuran.getText().toString()+jenisTanaman.getText().toString()+lokasi.getText().toString()+nama.getText().toString()+contact.getText().toString());
String sq="INSERT into test('nama','lokasi','jenis')VALUES('"+nama.getText().toString()+"','"+lokasi.getText().toString()+"','"+jenis.getText().toString()+"')";
dd.execSQL(sq);
cursor = dd.rawQuery("SELECT *FROM test",null);
cursor.moveToFirst();
if (cursor.getCount()>0)
{
cursor.moveToPosition(0);
System.out.println(cursor.getString(0).toString());
System.out.println(cursor.getString(1).toString());
System.out.println(cursor.getString(2).toString());
}
Intent i = new Intent(tambahLahan.this, home.class);
startActivity(i);
finish();
}
}
@Override
public void onBackPressed() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setCancelable(true);
builder.setMessage("Do you want to Exit?");
builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
//if user pressed "yes", then he is allowed to exit from application
finish();
}
});
}
public void content(View v){
Intent i=new Intent(tambahLahan.this,ContentProvider.class);
startActivity(i);
finish();
}
public void onClickTambahLahan(View view) {
Intent tambah = new Intent(tambahLahan.this, home.class);
startActivity(tambah);
finish();
}
}
package com.example.sammy.record_lahan;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class userProfile extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_user_profile);
}
}
package com.example.sammy.record_lahan;
import android.content.Context;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;
import com.example.sammy.record_lahan.api.HomestayController;
import com.example.sammy.record_lahan.api.homestayModel;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class utama extends AppCompatActivity {
ListView grdData;
private static final class Holder{
public TextView nama_homestay;
public TextView alamat;
public TextView area, jumlah_kamar, harga, gambar;
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_utama);
grdData = (ListView) findViewById(R.id.grdData);
HomestayController data = new HomestayController(this);
try {
data.open();
} catch (SQLException e) {
e.printStackTrace();
}
data.getData();
HomestayAdapter adapter= new HomestayAdapter(this, android.R.layout.simple_list_item_1, data.getData());
grdData.setAdapter((ListAdapter) adapter);
data.close();
}
private class HomestayAdapter extends ArrayAdapter<homestayModel> {
private LayoutInflater minflater;
public HomestayAdapter(@NonNull Context context, @LayoutRes int resource, @NonNull ArrayList<homestayModel> objects) {
super(context, resource, objects);
minflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}
public View getView(int position, View convertVIew, ViewGroup parent){
View view = convertVIew;
Holder holder;
if(view == null){
view = minflater.inflate(R.layout.custom_home,parent, false);
holder = new Holder();
holder.nama_homestay = (TextView) view.findViewById(R.id.tvTim1);
holder.alamat = (TextView) view.findViewById(R.id.tvSkor);
holder.area = (TextView) view.findViewById(R.id.tvTim2);
holder.jumlah_kamar = (TextView) view.findViewById(R.id.jumlah_kamar);
holder.harga = (TextView) view.findViewById(R.id.harga);
holder.gambar = (TextView) view.findViewById(R.id.gambar);
view.setTag(holder);
}else{
holder = (Holder) view.getTag();
}
homestayModel stream = getItem(position);
holder.nama_homestay.setText(stream.getNama_homestay());
holder.alamat.setText(stream.getAlamat());
holder.area.setText(stream.getArea_terdekat());
holder.jumlah_kamar.setText(stream.getJumlah_kamar());
holder.harga.setText(stream.getHarga());
holder.gambar.setText(stream.getGambar());
return view;
}
}
}
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillType="evenOdd"
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
android:strokeWidth="1"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:endX="78.5885"
android:endY="90.9159"
android:startX="48.7653"
android:startY="61.0927"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#C0392B" />
<stroke android:width="1dip" android:color="#ffffff" />
</shape>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item >
<shape android:shape="rectangle" >
<corners android:radius="50dp" />
<!--<stroke android:width="1dip" android:color="#fff" />-->
<gradient android:angle="-90" android:startColor="#C0392B" android:endColor="#C0392B" />
</shape>
</item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item >
<shape android:shape="rectangle" >
<corners android:radius="50dp" />
<!--<stroke android:width="1dip" android:color="#fff" />-->
<gradient android:angle="-90" android:startColor="#F1C40F " android:endColor="#F1C40F" />
</shape>
</item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item >
<shape android:shape="rectangle" >
<corners android:radius="50dp" />
<!--<stroke android:width="1dip" android:color="#fff" />-->
<gradient android:angle="-90" android:startColor="#F8A623 " android:endColor="#F8A623" />
</shape>
</item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#008577"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item >
<shape android:shape="rectangle" >
<corners android:radius="50dp" />
<!--<stroke android:width="1dip" android:color="#fff" />-->
<gradient android:angle="-90" android:startColor="#D35400" android:endColor="#D35400" />
</shape>
</item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item >
<shape android:shape="rectangle" >
<corners android:radius="50dp" />
<!--<stroke android:width="1dip" android:color="#fff" />-->
<gradient android:angle="-90" android:startColor="#E67E22 " android:endColor="#E67E22" />
</shape>
</item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/contact"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:text="Hello World!"
/>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:context=".home"
android:background="#fff"
android:layout_centerHorizontal="true"
android:layout_centerInParent="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:id="@+id/liniear1"
>
<Button
android:layout_width="220dp"
android:layout_height="45dp"
android:text="+ Tambah Lahan"
android:background="@drawable/second"
android:textColor="#fff"
android:layout_marginLeft="80dp"
android:textStyle="bold"
android:layout_marginTop="30dp"
android:id="@+id/ButtonAddLahan"
android:onClick="onClickaddLahan"
/>
<Button
android:layout_width="220dp"
android:layout_height="45dp"
android:text="Lihat Produk"
android:background="@drawable/second"
android:textColor="#fff"
android:layout_marginLeft="80dp"
android:textStyle="bold"
android:layout_marginTop="10dp"
android:id="@+id/ButtonJual"
android:onClick="inClickJualProduk"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:text="List Lahan Anda"
android:textStyle="bold"
android:textSize="17dp"
android:layout_marginLeft="130dp"
android:textColor="#C0392B"/>
<GridLayout
android:id="@+id/listLahan"
android:columnCount="2"
android:rowCount="5"
android:layout_marginTop="20dp"
android:alignmentMode="alignMargins"
android:columnOrderPreserved="false"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.CardView
android:layout_width="0dp"
android:layout_height="215dp"
android:layout_columnWeight="1"
android:layout_rowWeight="1"
android:layout_marginBottom="16dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
app:cardElevation="8dp"
app:cardCornerRadius="8dp"
>
<LinearLayout
android:layout_gravity="center_horizontal|center_vertical"
android:layout_margin="5dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<Button
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/card"
android:text="blabla"
android:textColor="#fff"
android:onClick="lahanX"/>
</LinearLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:layout_width="0dp"
android:layout_height="215dp"
android:layout_columnWeight="1"
android:layout_rowWeight="1"
android:layout_marginBottom="16dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
app:cardElevation="8dp"
app:cardCornerRadius="8dp"
>
<LinearLayout
android:layout_gravity="center_horizontal|center_vertical"
android:layout_margin="5dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<Button
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/card"
android:text="blabla"
android:textColor="#fff"
android:onClick="lahanX"/>
</LinearLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:layout_width="0dp"
android:layout_height="215dp"
android:layout_columnWeight="1"
android:layout_rowWeight="1"
android:layout_marginBottom="16dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
app:cardElevation="8dp"
app:cardCornerRadius="8dp"
>
<LinearLayout
android:layout_gravity="center_horizontal|center_vertical"
android:layout_margin="5dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<Button
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/card"
android:text="blabla"
android:textColor="#fff"
android:onClick="lahanX"/>
</LinearLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:layout_width="0dp"
android:layout_height="215dp"
android:layout_columnWeight="1"
android:layout_rowWeight="1"
android:layout_marginBottom="16dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
app:cardElevation="8dp"
app:cardCornerRadius="8dp"
>
<LinearLayout
android:layout_gravity="center_horizontal|center_vertical"
android:layout_margin="5dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<Button
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/card"
android:text="blabla"
android:textColor="#fff"
android:onClick="lahanX"/>
</LinearLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:layout_width="0dp"
android:layout_height="215dp"
android:layout_columnWeight="1"
android:layout_rowWeight="1"
android:layout_marginBottom="16dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
app:cardElevation="8dp"
app:cardCornerRadius="8dp"
>
<LinearLayout
android:layout_gravity="center_horizontal|center_vertical"
android:layout_margin="5dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<Button
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/card"
android:text="blabla"
android:textColor="#fff"
android:onClick="lahanX"/>
</LinearLayout>
</android.support.v7.widget.CardView>
</GridLayout>
</LinearLayout>
</ScrollView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".homeBefore">
<ViewFlipper
android:id="@+id/v_flipper"
android:layout_marginTop="5dp"
android:layout_width="fill_parent"
android:layout_height="200dp"
android:layout_centerHorizontal="true"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="450dp"
android:id="@+id/buttonLiniear"
android:layout_centerHorizontal="true"
>
<Button
android:layout_width="150dp"
android:layout_height="40dp"
android:text="Register"
android:textColor="#fff"
android:background="@drawable/first"
android:onClick="onClickToRegister"/>
<Button
android:layout_width="150dp"
android:layout_height="40dp"
android:text="Login"
android:textColor="#fff"
android:background="@drawable/first"
android:layout_marginLeft="20dp"
android:onClick="onClickToLogin"/>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".jualProduk">
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".listLahan">
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".login"
android:padding="30dp">
<ImageView
android:layout_width="180dp"
android:layout_height="180dp"
android:src="@mipmap/rlcoloured"
android:layout_marginTop="50dp"
android:layout_centerHorizontal="true"
android:id="@+id/logo"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="username"
android:id="@+id/textUsername"
android:layout_below="@+id/logo"
android:layout_marginTop="50dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="password"
android:id="@+id/textPassword"
android:layout_below="@+id/textUsername"
android:layout_marginTop="5dp"/>
<Button
android:layout_width="150dp"
android:layout_height="wrap_content"
android:id="@+id/buttonLogin"
android:layout_below="@+id/textPassword"
android:layout_centerHorizontal="true"
android:text="LOGIN"
android:textStyle="bold"
android:layout_marginTop="10dp"
android:textColor="#fff"
android:onClick="onClickToLogin"
android:background="@drawable/second"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".main">
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".namaTanaman">
<Button
android:layout_width="150dp"
android:layout_height="30dp"
android:text="logout"
android:background="@drawable/second"
android:textColor="#fff"
android:layout_alignParentRight="true"
android:textStyle="bold"
android:layout_marginRight="15dp"
android:layout_marginTop="10dp"
android:id="@+id/btnLogout"
android:onClick="btnLogout"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="NAMA TANAMAN"
android:id="@+id/namatxt"
android:layout_below="@+id/btnLogout"
android:layout_centerInParent="true"
android:layout_marginTop="50dp"
android:textStyle="bold"
android:textColor="#C0392B"
/>
<Button
android:layout_width="300dp"
android:layout_height="45dp"
android:text="PEMBIBITAN"
android:background="@drawable/first"
android:textColor="#fff"
android:textStyle="bold"
android:layout_marginTop="30dp"
android:id="@+id/btnPembibitan"
android:onClick="btnPembibitan"
android:layout_below="@+id/namatxt"
android:layout_centerHorizontal="true"
/>
<Button
android:layout_width="300dp"
android:layout_height="45dp"
android:text="PENANAMAN"
android:background="@drawable/second"
android:textColor="#fff"
android:textStyle="bold"
android:layout_marginTop="10dp"
android:id="@+id/btnPenanaman"
android:onClick="btnPenanaman"
android:layout_below="@+id/btnPembibitan"
android:layout_centerHorizontal="true"
/>
<Button
android:layout_width="300dp"
android:layout_height="45dp"
android:text="PEMUPUKAN"
android:background="@drawable/third"
android:textColor="#fff"
android:textStyle="bold"
android:layout_marginTop="10dp"
android:id="@+id/btnPemupukan"
android:onClick="btnPemupukan"
android:layout_below="@+id/btnPenanaman"
android:layout_centerHorizontal="true"
/>
<Button
android:layout_width="300dp"
android:layout_height="45dp"
android:text="PANEN"
android:background="@drawable/fourth"
android:textColor="#fff"
android:textStyle="bold"
android:layout_marginTop="10dp"
android:id="@+id/btnPanen"
android:onClick="btnPanen"
android:layout_below="@+id/btnPemupukan"
android:layout_centerHorizontal="true"
/>
<Button
android:layout_width="300dp"
android:layout_height="45dp"
android:text="PASCA PANEN"
android:background="@drawable/fivth"
android:textColor="#fff"
android:textStyle="bold"
android:layout_marginTop="10dp"
android:id="@+id/btnPascaPanen"
android:onClick="btnPascaPanen"
android:layout_below="@+id/btnPanen"
android:layout_centerHorizontal="true"
/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".panen"
android:padding="25dp">
<Button
android:layout_width="300dp"
android:layout_height="45dp"
android:text="PANEN"
android:background="@drawable/fourth"
android:textColor="#fff"
android:textStyle="bold"
android:layout_marginTop="10dp"
android:id="@+id/btnPanen"
android:layout_centerHorizontal="true"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Durasi Panen"
android:id="@+id/durasiPanen"
android:layout_marginTop="45dp"
android:layout_below="@+id/btnPanen"
android:textStyle="italic"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/durasiPanen"
android:id="@+id/durasiPanenTXT"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Deskripsi"
android:id="@+id/deskripsiPanen"
android:layout_below="@+id/durasiPanenTXT"
android:textStyle="italic"
android:layout_marginTop="10dp"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/deskripsiPanen"
android:id="@+id/deskripsiPanenTXT"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Berat Bersih"
android:id="@+id/beratBersihPanen"
android:layout_below="@+id/deskripsiPanenTXT"
android:textStyle="italic"
android:layout_marginTop="10dp"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/beratBersihPanen"
android:id="@+id/beratBersihPanenTXT"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Berat Kotor"
android:id="@+id/beratKotorPanen"
android:layout_below="@id/beratBersihPanenTXT"
android:textStyle="italic"
android:layout_marginTop="10dp"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/beratKotorPanen"
android:id="@+id/beratKotorPanenTXT"/>
<TextView
android:id="@+id/alatDanBahanPanen"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/beratKotorPanenTXT"
android:layout_alignStart="@+id/beratKotorPanen"
android:layout_marginStart="0dp"
android:layout_marginTop="10dp"
android:text="Alat dan Bahan"
android:textColor="#C0392B"
android:textStyle="italic" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/alatDanBahanPanen"
android:id="@+id/alatDanBahanPanenTXT"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".pascaPanen"
android:padding="25dp">
<Button
android:layout_width="300dp"
android:layout_height="45dp"
android:text="PASCA PANEN"
android:background="@drawable/fivth"
android:textColor="#fff"
android:textStyle="bold"
android:layout_marginTop="10dp"
android:id="@+id/btnPascaPanen"
android:layout_centerHorizontal="true"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Durasi Pembersihan"
android:id="@+id/durasiPembersihanPascaPanen"
android:layout_marginTop="45dp"
android:layout_below="@+id/btnPascaPanen"
android:textStyle="italic"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/durasiPembersihanPascaPanen"
android:id="@+id/durasiPembersihanPascaPanenTXT"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Durasi Persiapan Lahan"
android:id="@+id/durasiPersiapanLahan"
android:layout_below="@+id/durasiPembersihanPascaPanenTXT"
android:textStyle="italic"
android:layout_marginTop="10dp"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/durasiPersiapanLahan"
android:id="@+id/durasiPersiapanLahanTXT"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Deskripsi"
android:id="@+id/deskripsiPascaPanen"
android:layout_below="@+id/durasiPersiapanLahanTXT"
android:textStyle="italic"
android:layout_marginTop="10dp"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/deskripsiPascaPanen"
android:id="@+id/deskripsiPascaPanenTXT"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Jenis Pupuk"
android:id="@+id/jenisPupukPascaPanen"
android:layout_below="@id/deskripsiPascaPanenTXT"
android:textStyle="italic"
android:layout_marginTop="10dp"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/jenisPupukPascaPanen"
android:id="@+id/jenisPupukPascaPanenTXT"/>
<TextView
android:id="@+id/alatDanBahanPanen"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/jenisPupukPascaPanenTXT"
android:layout_marginStart="0dp"
android:layout_marginTop="10dp"
android:text="Alat dan Bahan"
android:textColor="#C0392B"
android:textStyle="italic" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/alatDanBahanPanen"
android:id="@+id/alatDanBahanPanenTXT"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".pembibitan"
android:padding="25dp">
<Button
android:layout_width="300dp"
android:layout_height="45dp"
android:text="PEMBIBITAN"
android:background="@drawable/first"
android:textColor="#fff"
android:textStyle="bold"
android:layout_marginTop="30dp"
android:id="@+id/btnPembibitan"
android:layout_centerHorizontal="true"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Durasi Pembibitan"
android:id="@+id/durasiPembibitan"
android:layout_marginTop="45dp"
android:layout_below="@+id/btnPembibitan"
android:textStyle="italic"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/durasiPembibitan"
android:id="@+id/durasiPembibitanTXT"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Deskripsi"
android:id="@+id/deskripsiPembibitan"
android:layout_below="@+id/durasiPembibitanTXT"
android:textStyle="italic"
android:layout_marginTop="10dp"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/deskripsiPembibitan"
android:id="@+id/deskripsiPembibitanTXT"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Jenis Bibit"
android:id="@+id/jenisBibitPembibitan"
android:layout_below="@+id/deskripsiPembibitanTXT"
android:textStyle="italic"
android:layout_marginTop="10dp"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/jenisBibitPembibitanTXT"
android:layout_below="@+id/jenisBibitPembibitan"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Alat dan Bahan"
android:id="@+id/alatDanBahanPembibitan"
android:layout_below="@+id/jenisBibitPembibitanTXT"
android:textStyle="italic"
android:layout_marginTop="10dp"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/alatDanBahanPembibitan"
android:id="@+id/alatDanBahanPembibitanTXT"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".pemupukan"
android:padding="25dp">
<Button
android:layout_width="300dp"
android:layout_height="45dp"
android:text="PEMUPUKAN"
android:background="@drawable/third"
android:textColor="#fff"
android:textStyle="bold"
android:layout_marginTop="10dp"
android:id="@+id/btnPemupukan"
android:layout_centerHorizontal="true"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Durasi Pemupukan"
android:id="@+id/durasiPemupukan"
android:layout_marginTop="45dp"
android:layout_below="@+id/btnPemupukan"
android:textStyle="italic"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/durasiPemupukan"
android:id="@+id/durasiPemupukanTXT"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Deskripsi"
android:id="@+id/deskripsiPemupukan"
android:layout_below="@+id/durasiPemupukanTXT"
android:textStyle="italic"
android:layout_marginTop="10dp"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/deskripsiPemupukan"
android:id="@+id/deskripsiPemupukanTXT"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Jenis Pemupukan"
android:id="@+id/jenisBibitPemupukan"
android:layout_below="@+id/deskripsiPemupukanTXT"
android:textStyle="italic"
android:layout_marginTop="10dp"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/jenisBibitPemupukanTXT"
android:layout_below="@+id/jenisBibitPemupukan"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Alat dan Bahan"
android:id="@+id/alatDanBahanPemupukan"
android:layout_below="@+id/jenisBibitPemupukanTXT"
android:textStyle="italic"
android:layout_marginTop="10dp"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/alatDanBahanPemupukan"
android:id="@+id/alatDanBahanPemupukanTXT"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".penanaman"
android:padding="25dp">
<Button
android:layout_width="300dp"
android:layout_height="45dp"
android:text="PENANAMAN"
android:background="@drawable/second"
android:textColor="#fff"
android:textStyle="bold"
android:layout_marginTop="10dp"
android:id="@+id/btnPenanaman"
android:layout_below="@+id/btnPembibitan"
android:layout_centerHorizontal="true"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Durasi Pembibitan"
android:id="@+id/durasiPenanaman"
android:layout_marginTop="45dp"
android:layout_below="@+id/btnPenanaman"
android:textStyle="italic"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/durasiPenanaman"
android:id="@+id/durasiPenanamanTXT"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Deskripsi"
android:id="@+id/deskripsiPenanaman"
android:layout_below="@+id/durasiPenanamanTXT"
android:textStyle="italic"
android:layout_marginTop="10dp"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/deskripsiPenanaman"
android:id="@+id/deskripsiPenanamanTXT"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Alat dan Bahan"
android:id="@+id/alatDanBahanPenanaman"
android:layout_below="@+id/deskripsiPenanamanTXT"
android:textStyle="italic"
android:layout_marginTop="10dp"
android:textColor="#C0392B"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/alatDanBahanPenanaman"
android:id="@+id/alatDanBahanPembibitanTXT"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".record_lahan">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".register"
android:padding="40dp">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="nama depan"
android:id="@+id/namaDepan"
android:layout_marginTop="65dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="nama belakang"
android:id="@+id/namaBelakang"
android:layout_below="@+id/namaDepan"
android:layout_marginTop="0dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="username"
android:id="@+id/username"
android:layout_below="@+id/namaBelakang"
android:layout_marginTop="0dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="password"
android:id="@+id/password"
android:layout_below="@+id/username"
android:layout_marginTop="0dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Re-type username"
android:id="@+id/ReTypePassword"
android:layout_below="@+id/password"
android:layout_marginTop="0dp"/>
<Button
android:layout_width="150dp"
android:layout_height="wrap_content"
android:id="@+id/log"
android:layout_below="@+id/ReTypePassword"
android:layout_centerHorizontal="true"
android:text="REGISTER"
android:textStyle="bold"
android:layout_marginTop="50dp"
android:textColor="#fff"
android:background="@drawable/second"
android:onClick="reg"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".splashScreen"
android:background="@drawable/background_2">
<ProgressBar
android:id="@+id/progressBars"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:max="100"
/>
<ImageView
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
android:src="@mipmap/rl"/>
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:indeterminate="false"
android:max="10"
android:padding="4dip"
android:layout_marginBottom="60dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"></ProgressBar>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".tambahLahan"
android:background="@drawable/background_3"
android:paddingLeft="40dp"
android:paddingRight="40dp">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="jenis lahan"
android:textColor="#fff"
android:textColorHighlight="#fff"
android:textColorHint="#fff"
android:layout_marginTop="100dp"
android:id="@+id/jenisLahan"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="ukuran lahan"
android:textColor="#fff"
android:textColorHighlight="#fff"
android:textColorHint="#fff"
android:layout_below="@+id/jenisLahan"
android:id="@+id/ukuranLahan"
android:layout_marginTop="5dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="jenis tanaman"
android:textColorHint="#fff"
android:textColor="#fff"
android:textColorHighlight="#fff"
android:layout_below="@+id/ukuranLahan"
android:id="@+id/jenisTanaman"
android:layout_marginTop="5dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="lokasi lahan"
android:textColor="#fff"
android:textColorHint="#fff"
android:textColorHighlight="#fff"
android:layout_below="@+id/jenisTanaman"
android:id="@+id/lokasiLahan"
android:layout_marginTop="5dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="nama pemilik lahan"
android:textColorHighlight="#fff"
android:textColorHint="#fff"
android:textColor="#fff"
android:layout_below="@id/lokasiLahan"
android:id="@+id/namaPemilikLahan"
android:layout_marginTop="5dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="contact pemilik lahan"
android:textColor="#fff"
android:textColorHint="#fff"
android:textColorHighlight="#fff"
android:layout_below="@+id/namaPemilikLahan"
android:id="@+id/contactPemiliklahan"
android:layout_marginTop="5dp"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TAMBAH LAHAN"
android:textColor="#fff"
android:layout_marginTop="20dp"
android:id="@+id/btnTambah"
android:layout_centerHorizontal="true"
android:layout_below="@+id/contactPemiliklahan"
android:background="#E67E22"
android:textStyle="bold"
android:onClick="tambah"/>
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/jenisLahan"
android:layout_alignEnd="@+id/jenisLahan"
android:layout_marginBottom="-100dp"
android:text="Lihat Content"
android:onClick="content"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".userProfile"
android:background="#F8A623">
<ImageView
android:layout_width="150dp"
android:layout_height="120dp"
android:id="@+id/logo"
android:layout_centerHorizontal="true"
android:layout_marginTop="120dp"
android:src="@mipmap/user"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".utama">
<ListView
android:id="@+id/grdData"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:dividerHeight="2dp"
android:verticalSpacing="5dp"
/>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="120dp"
android:layout_height="100dp"
android:src="@mipmap/ic_launcher_round"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/tvTim1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="nama"
android:textStyle="bold" />
<TextView
android:id="@+id/tvSkor"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="alamat"
android:textStyle="bold" />
<TextView
android:id="@+id/tvTim2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="area"
android:textStyle="bold" />
<TextView
android:id="@+id/jumlah_kamar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Jumlah Kamar"
android:textStyle="bold" />
<TextView
android:id="@+id/harga"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Harga"
android:textStyle="bold" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/gambar"/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:orientation="vertical"
android:padding="5dp">
<TextView
android:id="@+id/txt_jenis"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/txt_ukuran"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/txt_jenisTanaman"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/txt_lokasi"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/txt_nama"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/txt_contact"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</android.support.v7.widget.CardView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#D35400</color>
<color name="colorPrimaryDark">#C0392B</color>
<color name="colorAccent">#E67E22</color>
</resources>
<resources>
<string name="app_name"></string>
</resources>
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resources>
package com.example.sammy.record_lahan;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}
\ No newline at end of file
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0'
classpath 'com.google.gms:google-services:4.0.1'
// 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
}
# 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
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment