forked from ariyantez/RKS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DetailBarang.java
33 lines (26 loc) · 936 Bytes
/
DetailBarang.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
package com.example.uasrks_ariyankt;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class DetailBarang extends AppCompatActivity {
protected Cursor cursor;
Button tbk;
@SuppressLint("WrongViewCast")
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_detail_barang);
tbk = (Button) findViewById(R.id.tbk);
tbk.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent inte = new Intent(DetailBarang.this, ListBarang.class);
startActivity(inte);
}
});
}
}