Aplikasi Pemesanan atau Order Pada Perusahaan Penerjemah
Dalam sebuah aplikasi tentu dibutuhkan activity didalamnya, Saya memperlajari android sangat singkat. Menurut saya android is fun, Kenapa? Karna jika kalian ingin mempelajari bahasa pemrograman, harus dengan suasana hati yang senang.
Pada aplikasi pertama saya berbasis android, saya buatkan aplikasi untuk perusahaan penerjemah milik sodara saya. Perusahaan ini memiliki dua produk yang ditawarkan, Yaitu Jasa Penerjemah dan Jasa Alat Penerjemah.
Dalam Aplikasi nya saya buatkan 4 Activity, antara lain :
1. Main Activy saya jadikan form Login
Berikut MainActivity.java nya
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | package com.example.makna; import android.content.Intent; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; public class MainActivity extends AppCompatActivity { EditText username, password; Button btnLogin; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); getSupportActionBar().setTitle("MAKNA TRANSLATION"); username = (EditText) findViewById(R.id.username); password = (EditText) findViewById(R.id.password); btnLogin = (Button)findViewById(R.id.btnLogin); btnLogin.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String usernameKey = username.getText().toString(); String passwordKey = password.getText().toString(); if (usernameKey.equals("tata") && passwordKey.equals("4822")){ //jika login berhasil Toast.makeText(getApplicationContext(), "LOGIN SUKSES", Toast.LENGTH_SHORT).show(); Intent intent = new Intent(MainActivity.this, Welcome.class); MainActivity.this.startActivity(intent); finish(); }else { //jika login gagal AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this); builder.setMessage("Username atau Password Anda salah!") .setNegativeButton("Retry", null).create().show(); } } }); } } |
Dan tidak Lupa activity_main.xml nya
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | <?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" android:background="@drawable/bg3" tools:context=".MainActivity"> <TextView android:id="@+id/textView" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:background="@android:color/background_light" android:text="Login Form" android:textAlignment="center" android:textSize="30sp" android:textStyle="normal|bold" /> <EditText android:id="@+id/username" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/textView" android:layout_alignParentStart="true" android:layout_alignParentLeft="true" android:layout_marginTop="37dp" android:ems="10" android:hint="Username" android:inputType="textPersonName" android:textColor="@color/colorAccent" /> <EditText android:id="@+id/password" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/username" android:layout_alignParentLeft="true" android:layout_alignParentEnd="true" android:layout_alignParentRight="true" android:ems="10" android:hint="Password" android:inputType="textPassword" android:textColor="@color/colorAccent"/> <Button android:id="@+id/btnLogin" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/password" android:layout_centerHorizontal="true" android:text="Log In" /> <TextView android:id="@+id/textView5" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_marginBottom="2dp" android:background="@color/colorAccent" android:text="Copy Right by : Dwi Septiana Maulida " /> </RelativeLayout> |
Setelah berhasil Login, maka akan muncul Activity baru yaitu Welcome.java
2. Berikut Source Code Welcome.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | package com.example.makna; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; public class Welcome extends AppCompatActivity { Button btnExit; Button btnalat; Button btnpenerjemah; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_welcome); getSupportActionBar().setTitle("MAKNA TRANSLATION"); btnExit = (Button) findViewById(R.id.btnExit); btnalat = (Button) findViewById(R.id.btnalat); btnpenerjemah = (Button) findViewById(R.id.btnpenerjemah); btnalat.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { // TODO Auto-generated method stub Intent inte = new Intent(Welcome.this,form_alat.class); startActivity(inte); } }); btnpenerjemah.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { // TODO Auto-generated method stub Intent inte = new Intent(Welcome.this,form_penerjemah.class); startActivity(inte); } }); btnExit.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { //perintah untuk mengakhiri aplikasi finish(); } }); } } |
Disini saya copy kan juga untuk Source Code activity_welcome.xml nya
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | <?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:id="@+id/activity_welcome" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/sc4" tools:context=".Welcome"> <TextView android:id="@+id/textView2" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_marginTop="153dp" android:text="Welcome" android:textAlignment="center" android:textSize="30sp" android:textStyle="normal|bold" android:textColor="@color/colorAccent"/> <TextView android:id="@+id/textView3" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/textView2" android:layout_centerHorizontal="true" android:layout_marginTop="69dp" android:text="Salam Sukses!" android:textSize="18sp" android:textStyle="normal|bold" android:textColor="@color/colorAccent"/> <TextView android:id="@+id/textView4" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/textView3" android:layout_alignParentStart="true" android:layout_alignParentLeft="true" android:layout_marginTop="10dp" android:text="Selamat datang, Terima kasih telah mempercayakan Makna Translation sebagai vendor penerjemah. Silahkan Pilih kebutuhan anda." android:textSize="18sp" android:textColor="@color/colorAccent"/> <Button android:id="@+id/btnalat" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/textView4" android:layout_centerHorizontal="true" android:layout_marginTop="56dp" android:background="@color/colorPrimary" android:text="Form Alat" tools:background="@color/colorPrimary" /> <Button android:id="@+id/btnpenerjemah" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/btnalat" android:layout_alignParentStart="true" android:layout_alignParentLeft="true" android:layout_marginTop="27dp" android:background="@color/colorPrimary" android:text="Form Penerjemah" tools:background="@color/colorPrimary" /> <Button android:id="@+id/btnExit" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_marginBottom="29dp" android:background="@color/colorPrimary" android:text="Keluar" tools:background="@color/colorPrimary" /> <TextView android:id="@+id/textView5" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_marginBottom="105dp" android:text="Copy Right by : Dwi Septiana Maulida " /> <ImageView android:id="@+id/imageView" android:layout_width="match_parent" android:layout_height="wrap_content" app:srcCompat="@drawable/mkn" /> </RelativeLayout> |
3. Tahap selanjutnya ketika pilih Form alat (form_alat.java) Maka akan muncul seperti dibawah ini :
Berikut Source Code activity_form_alat.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/sc3"> <LinearLayout 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" android:orientation="vertical" android:padding="30dp" tools:context=".form_alat"> <EditText android:id="@+id/edt_name" android:layout_width="match_parent" android:layout_height="match_parent" android:hint="Masukan nama pemesan" android:inputType="text" android:textColor="@color/colorAccent"/> <EditText android:id="@+id/edt_com" android:layout_width="match_parent" android:layout_height="match_parent" android:hint="Masukan nama perusahaan" android:inputType="text" android:textColor="@color/colorAccent"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Pilih Kota" android:textSize="25dp" android:textColor="@color/colorAccent"/> <CheckBox android:id="@+id/Jb_checkbox" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="16dp" android:text="Jabodetabek" android:textSize="15sp" android:textColor="@color/colorAccent"/> <CheckBox android:id="@+id/Lj_checkbox" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="16dp" android:text="Luar Jabodetabek" android:textSize="15sp" android:textColor="@color/colorAccent"/> <View android:layout_width="match_parent" android:layout_height="2dp" android:layout_marginTop="10dp" android:background="@color/colorPrimary" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="16dp" android:text="Masukkan Jumlah alat" android:textAllCaps="true" android:textSize="25dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" android:textColor="@color/colorAccent"/> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <Button android:layout_width="48dp" android:layout_height="48dp" android:background="@color/colorPrimary" android:onClick="decrement" android:text="-" /> <TextView android:id="@+id/quantity_textview" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:paddingLeft="8dp" android:paddingRight="8dp" android:text="0" android:textColor="@color/colorAccent" android:textSize="25dp" /> <Button android:layout_width="48dp" android:layout_height="48dp" android:background="@color/colorPrimary" android:onClick="increment" android:text="+" /> </LinearLayout> <View android:layout_width="match_parent" android:layout_height="2dp" android:layout_marginTop="10dp" android:background="@color/colorPrimary" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="16dp" android:text="Total tagihan" android:textAllCaps="true" android:textSize="30dp" android:textColor="@color/colorAccent"/> <TextView android:id="@+id/price_textview" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="0" android:textColor="@color/colorAccent" android:textSize="25dp" /> <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="16dp" android:background="@color/colorPrimary" android:onClick="Submitorder" android:text="PROSES" /> <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="16dp" android:onClick="exit" android:text="Close" /> </LinearLayout> </ScrollView> |
Dan juga form_alat.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | package com.example.makna; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.CheckBox; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; import java.text.NumberFormat; import static android.R.string.no; import static android.os.Build.VERSION_CODES.N; /** * This app displays an order form to order coffee. */ public class form_alat extends AppCompatActivity { Button btnExit; int quantity=0; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_form_alat); getSupportActionBar().setTitle("MAKNA TRANSLATION"); } public void increment(View view){//function tombol tambah if(quantity==200){ Toast.makeText(this,"pesanan maximal 200",Toast.LENGTH_SHORT).show(); return; } quantity = quantity+1 ; display(quantity); } public void decrement(View view){//function kurang if (quantity==1){ Toast.makeText(this,"pesanan minimal 1",Toast.LENGTH_SHORT).show(); return; } quantity = quantity -1; display(quantity); } public void Submitorder(View view) { EditText nameEditText=(EditText)findViewById(R.id.edt_name); String name=nameEditText.getText().toString(); Log.v("form_alat","Nama:"+name); EditText comEditText=(EditText)findViewById(R.id.edt_com); String company=nameEditText.getText().toString(); Log.v("form_alat","Perusahaan:"+company); CheckBox jaboChekBox= (CheckBox) findViewById(R.id.Jb_checkbox); boolean hasjabo=jaboChekBox.isChecked();//mengidentifikasi check jabodetabek Log.v("form_alat","has whippedcream:"+hasjabo); CheckBox lujaChekBox= (CheckBox) findViewById(R.id.Lj_checkbox); boolean hasluja=lujaChekBox.isChecked();//mengidentifikasi check luar jabodatek Log.v("form_alat","has whippedcream:"+hasluja); int price=calculateprice(hasjabo,hasluja);//memanggil method jumlah harga String pricemessage=createOrderSummary(price,name,company,hasjabo,hasluja); displayMessage(pricemessage); } private int calculateprice(boolean addjabo,boolean addluja){ int harga=100000; if(addjabo){ harga=harga+150000;//harga tambahan transport } if (addluja){ harga=harga+300000; } return quantity * harga; } private String createOrderSummary(int price, String name, String company, boolean addChocolate, boolean addWhippedCream) {//hasil pemesanan String pricemessage=" Dear "+name; pricemessage+="\n Jumlah Pemesanan Adalah =" +quantity; pricemessage+="\n Dengan Total Tagihan = Rp " +price; pricemessage+="\n Terimakasih, salam sukses.. "; return pricemessage; } //method ini untuk mencetak hasil perintah yang di tampilkan dengan inisial quantity_textview di textview 0 private void displayMessage(String message) { TextView priceTextView = (TextView) findViewById(R.id.price_textview); priceTextView.setText(message); } private void display(int number) { TextView quantityTextView = (TextView) findViewById(R.id.quantity_textview); quantityTextView.setText("" + number); } private void displayPrice(int number) { TextView priceTextView = (TextView) findViewById(R.id.price_textview); priceTextView.setText(NumberFormat.getCurrencyInstance().format(number)); } } |
4. Pada tahap terakhir saya buat kan activity Form penerjemah yang berfungsi untuk order jasa penerjemah, berikut outputnya :
Untuk form_penerjemah.java adalah :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | package com.example.makna; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; public class form_penerjemah extends AppCompatActivity { private EditText edtnamapic, edtnamacom, edthari, edtalamat ; private Button btnproses; private Button btnhapus; private Button btnexit; private TextView txtnamapic; private TextView txtnamacom; private TextView txthari; private TextView txtalamat; private TextView txttotaltagihan; private TextView txtketerangan; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_form_penerjemah); getSupportActionBar().setTitle("MAKNA TRANSLATION"); edtnamapic = (EditText) findViewById(R.id.namapic); edtnamacom = (EditText) findViewById(R.id.namacompany); edthari = (EditText) findViewById(R.id.jumlahhari); edtalamat = (EditText) findViewById(R.id.alamat); btnproses = (Button) findViewById(R.id.tombol1); btnhapus = (Button) findViewById(R.id.tombol2); btnexit = (Button) findViewById(R.id.tombol3); txtnamapic = (TextView) findViewById(R.id.namapic); txtnamacom = (TextView) findViewById(R.id.namacompany); txthari = (TextView) findViewById(R.id.jumlahhari); txtalamat = (TextView) findViewById(R.id.alamat); txttotaltagihan = (TextView) findViewById(R.id.totaltagihan); txtketerangan = (TextView) findViewById(R.id.keterangan); //memberikan action pada tombol proses btnproses.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { String namapic = edtnamapic.getText().toString().trim(); String namacom = edtnamacom.getText().toString().trim(); String hari = edthari.getText().toString().trim(); String alamat = edtalamat.getText().toString().trim(); txtnamapic.setText("Terima kasih "+namapic); int harga= 1000000; Float h = Float.parseFloat(hari); Float total = (h* harga); txttotaltagihan.setText("Total Tagihan : RP." + total); txtketerangan.setText("Jadi Total Tagihannya adalah RP "+total); txtalamat.setText("Dengan Alamat "+alamat); txtketerangan.setText("Keterangan : Segera Kami kirimkan Talent dan Invoicenya, Terima Kasih"); } }); btnhapus.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { txtnamapic.setText(" "); txtnamacom.setText(" "); txttotaltagihan.setText(" Total Tagihan : Rp 0"); txthari.setText(" "); txtketerangan.setText(" "); Toast.makeText(getApplicationContext(),"Data sudah direset", Toast.LENGTH_LONG).show(); // memberikan action pada tombol keluar } }); btnexit.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { moveTaskToBack(true); } }); } } |
Activity_form_penerjemah.xml Sebagai gambaran desain pada form :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | <?xml version="1.0" encoding="utf-8"?> <ScrollView 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" android:background="@drawable/sc3" android:orientation="vertical" android:padding="30dp" tools:context=".form_penerjemah"> <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Nama PIC : " android:textColor="@color/colorAccent" android:textStyle="bold" /> <EditText android:id="@+id/namapic" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Company : " android:textColor="@color/colorAccent" android:textStyle="bold" /> <EditText android:id="@+id/namacompany" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Jumlah Hari " android:textColor="@color/colorAccent" android:textStyle="bold" /> <EditText android:id="@+id/jumlahhari" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="8dp" android:inputType="number" android:text="" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Venue " android:textColor="@color/colorAccent" android:textStyle="bold" /> <EditText android:id="@+id/alamat" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="8dp" android:inputType="text" android:text="" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" /> <Button android:id="@+id/tombol1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="30dp" android:layout_marginBottom="8dp" android:background="@color/colorPrimary" android:text="PROSES" android:textColor="#ffffff" android:textStyle="bold" /> <TextView android:id="@+id/totaltagihan" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="20dp" android:layout_marginBottom="8dp" android:text="Total Tagihan " android:textColor="@color/colorAccent" android:textSize="18dp" android:textStyle="bold" /> <TextView android:id="@+id/keterangan" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="8dp" android:text="Keterangan " android:textColor="@color/colorAccent" android:textSize="18dp" android:textStyle="bold" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="20dp" android:gravity="center" android:orientation="horizontal"> <Button android:id="@+id/tombol2" android:layout_width="200dp" android:layout_height="wrap_content" android:background="@color/colorPrimary" android:text="RESET" android:textColor="#ffffFF" android:textStyle="bold" /> <Button android:id="@+id/tombol3" android:layout_width="200dp" android:layout_height="wrap_content" android:layout_marginLeft="20dp" android:background="@color/colorPrimary" android:text="EXIT" android:textColor="#FFFFFF" android:textStyle="bold" /> </LinearLayout> </LinearLayout> </ScrollView> |
Saya menyadari masih banyak kekurangan dengan aplikasi saya. Jika temen-temen ada yang ingin sharing bareng dengan saya, boleh atur waktu minum kopi dan menikmati koding bersama saya.
Agar temen-temen dan pembaca blog saya dapat memahami running aplikasinya, saya buatkan vlog singkat agar aplikasi yang saya buat dapat dipahami.
Jangan Lupa di Subscribe , Like dan Komen ya temen-temen .... Terima kasih