diff --git a/.idea/misc.xml b/.idea/misc.xml
index 94f7cb5..de9a258 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -17,10 +17,12 @@
+
+
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 461adbc..9cd66af 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -12,11 +12,16 @@
android:supportsRtl="true"
android:theme="@style/Theme.Inventaris"
android:usesCleartextTraffic="true">
+
+
+
+ android:parentActivityName=".activity.BarangActivity" />
@@ -28,7 +33,7 @@
+ android:exported="true" />
\ No newline at end of file
diff --git a/app/src/main/java/com/unej/inventaris/activity/DashboardActivity.java b/app/src/main/java/com/unej/inventaris/activity/DashboardActivity.java
new file mode 100644
index 0000000..7c5a659
--- /dev/null
+++ b/app/src/main/java/com/unej/inventaris/activity/DashboardActivity.java
@@ -0,0 +1,47 @@
+package com.unej.inventaris.activity;
+
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.recyclerview.widget.GridLayoutManager;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+
+import android.os.Bundle;
+
+import com.unej.inventaris.R;
+import com.unej.inventaris.adapter.AdapterDashboardTop;
+import com.unej.inventaris.model.ModelDashboardTop;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class DashboardActivity extends AppCompatActivity {
+
+ private List list_01;
+ private AdapterDashboardTop adapterDashboardTop;
+ private RecyclerView rctop;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_dashboard);
+ getSupportActionBar().hide();
+ rctop = findViewById(R.id.rctop);
+
+ list_01 = getTop();
+ adapterDashboardTop = new AdapterDashboardTop(list_01, this);
+ rctop.setAdapter(adapterDashboardTop);
+ rctop.setHasFixedSize(true);
+ rctop.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, true));
+
+ }
+
+
+ private List getTop() {
+ List allItems = new ArrayList();
+ allItems.add(new ModelDashboardTop("JUMLAH TOTAL BARANG","126"));
+ allItems.add(new ModelDashboardTop("TOTAL PENGGUNA","2"));
+ allItems.add(new ModelDashboardTop("TOTAL BARANG KELUAR","14"));
+ allItems.add(new ModelDashboardTop("TOTAL DIVISI","4"));
+ return allItems;
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/unej/inventaris/adapter/AdapterDashboardTop.java b/app/src/main/java/com/unej/inventaris/adapter/AdapterDashboardTop.java
new file mode 100644
index 0000000..3932161
--- /dev/null
+++ b/app/src/main/java/com/unej/inventaris/adapter/AdapterDashboardTop.java
@@ -0,0 +1,70 @@
+package com.unej.inventaris.adapter;
+
+import android.content.Context;
+import android.content.Intent;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import androidx.annotation.NonNull;
+import androidx.recyclerview.widget.RecyclerView;
+
+
+import com.unej.inventaris.R;
+import com.unej.inventaris.model.ModelDashboardTop;
+
+import java.util.List;
+
+public class AdapterDashboardTop extends RecyclerView.Adapter {
+ private List list_one;
+ private Context context;
+
+ public AdapterDashboardTop(List list_one, Context context) {
+ this.list_one = list_one;
+ this.context = context;
+ }
+
+ @NonNull
+ @Override
+ public MoreMenuHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {
+ View view = LayoutInflater.from(context).inflate(R.layout.recycle_dahsboard_top, viewGroup, false);
+ MoreMenuHolder menuHolder = new MoreMenuHolder(view);
+ view.setTag(menuHolder);
+ return menuHolder;
+ }
+
+ @Override
+ public void onBindViewHolder(@NonNull MoreMenuHolder holder, int position) {
+ holder.init(list_one.get(position));
+ }
+
+ @Override
+ public int getItemCount() {
+ return list_one.size();
+ }
+
+ public class MoreMenuHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
+ private TextView tvketerangan, tvjumlah;
+ private int position;
+
+ public MoreMenuHolder(@NonNull View itemView) {
+ super(itemView);
+
+ tvketerangan = (TextView) itemView.findViewById(R.id.tvKeterangan);
+ tvjumlah = (TextView) itemView.findViewById(R.id.tvJumlah);
+ }
+
+ public void init(ModelDashboardTop moreListModel) {
+ tvketerangan.setText(moreListModel.getKeterangan());
+ tvjumlah.setText(moreListModel.getJumlah());
+
+ }
+
+ @Override
+ public void onClick(View view) {
+
+ }
+ }
+}
diff --git a/app/src/main/java/com/unej/inventaris/model/ModelDashboardTop.java b/app/src/main/java/com/unej/inventaris/model/ModelDashboardTop.java
new file mode 100644
index 0000000..27bf4b6
--- /dev/null
+++ b/app/src/main/java/com/unej/inventaris/model/ModelDashboardTop.java
@@ -0,0 +1,27 @@
+package com.unej.inventaris.model;
+
+public class ModelDashboardTop {
+ String Keterangan;
+ String Jumlah;
+
+ public ModelDashboardTop(String keterangan, String jumlah) {
+ Keterangan = keterangan;
+ Jumlah = jumlah;
+ }
+
+ public String getKeterangan() {
+ return Keterangan;
+ }
+
+ public void setKeterangan(String keterangan) {
+ Keterangan = keterangan;
+ }
+
+ public String getJumlah() {
+ return Jumlah;
+ }
+
+ public void setJumlah(String jumlah) {
+ Jumlah = jumlah;
+ }
+}
diff --git a/app/src/main/res/drawable/ic_edit.xml b/app/src/main/res/drawable/ic_edit.xml
new file mode 100644
index 0000000..faddfce
--- /dev/null
+++ b/app/src/main/res/drawable/ic_edit.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_hapus.xml b/app/src/main/res/drawable/ic_hapus.xml
new file mode 100644
index 0000000..282594c
--- /dev/null
+++ b/app/src/main/res/drawable/ic_hapus.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/drawable/sibanuputih.png b/app/src/main/res/drawable/sibanuputih.png
new file mode 100644
index 0000000..472d393
Binary files /dev/null and b/app/src/main/res/drawable/sibanuputih.png differ
diff --git a/app/src/main/res/layout/activity_dashboard.xml b/app/src/main/res/layout/activity_dashboard.xml
new file mode 100644
index 0000000..754605a
--- /dev/null
+++ b/app/src/main/res/layout/activity_dashboard.xml
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_detail_barang.xml b/app/src/main/res/layout/activity_detail_barang.xml
index 86d0e37..dea5ec1 100644
--- a/app/src/main/res/layout/activity_detail_barang.xml
+++ b/app/src/main/res/layout/activity_detail_barang.xml
@@ -25,10 +25,11 @@
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_marginEnd="16dp"
- android:ems="10"
- android:padding="5dp"
android:background="@drawable/rounded_grey"
+ android:ems="10"
+ android:enabled="false"
android:inputType="textPersonName"
+ android:padding="5dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="@+id/textView2"
@@ -51,10 +52,11 @@
android:id="@+id/editTextSerialNumber"
android:layout_width="0dp"
android:layout_height="40dp"
+ android:background="@drawable/rounded_grey"
android:ems="10"
+ android:enabled="false"
android:inputType="textPersonName"
android:padding="5dp"
- android:background="@drawable/rounded_grey"
app:layout_constraintEnd_toEndOf="@+id/editTextNamaBarang"
app:layout_constraintStart_toStartOf="@+id/textView3"
app:layout_constraintTop_toBottomOf="@+id/textView3" />
@@ -76,10 +78,11 @@
android:id="@+id/editTextJumlahBarang"
android:layout_width="0dp"
android:layout_height="40dp"
+ android:background="@drawable/rounded_grey"
android:ems="10"
+ android:enabled="false"
android:inputType="textPersonName"
android:padding="5dp"
- android:background="@drawable/rounded_grey"
app:layout_constraintEnd_toEndOf="@+id/editTextSerialNumber"
app:layout_constraintStart_toStartOf="@+id/textView4"
app:layout_constraintTop_toBottomOf="@+id/textView4" />
@@ -101,10 +104,11 @@
android:id="@+id/editTextLokasi"
android:layout_width="0dp"
android:layout_height="40dp"
- android:padding="5dp"
android:background="@drawable/rounded_grey"
android:ems="10"
+ android:enabled="false"
android:inputType="textPersonName"
+ android:padding="5dp"
app:layout_constraintEnd_toEndOf="@+id/editTextJumlahBarang"
app:layout_constraintStart_toStartOf="@+id/editTextJumlahBarang"
app:layout_constraintTop_toBottomOf="@+id/textView5" />
@@ -126,10 +130,11 @@
android:id="@+id/editTextKeterangan"
android:layout_width="0dp"
android:layout_height="40dp"
- android:padding="5dp"
android:background="@drawable/rounded_grey"
android:ems="10"
+ android:enabled="false"
android:inputType="textPersonName"
+ android:padding="5dp"
app:layout_constraintEnd_toEndOf="@+id/editTextLokasi"
app:layout_constraintStart_toStartOf="@+id/editTextLokasi"
app:layout_constraintTop_toBottomOf="@+id/textView6" />
@@ -151,10 +156,11 @@
android:id="@+id/editTextTanggalMasuk"
android:layout_width="0dp"
android:layout_height="40dp"
- android:padding="5dp"
android:background="@drawable/rounded_grey"
android:ems="10"
+ android:enabled="false"
android:inputType="textPersonName"
+ android:padding="5dp"
app:layout_constraintEnd_toEndOf="@+id/editTextKeterangan"
app:layout_constraintStart_toStartOf="@+id/editTextKeterangan"
app:layout_constraintTop_toBottomOf="@+id/textView7" />
@@ -176,11 +182,37 @@
android:id="@+id/editTextWaktuInput"
android:layout_width="0dp"
android:layout_height="40dp"
- android:padding="5dp"
android:background="@drawable/rounded_grey"
android:ems="10"
+ android:enabled="false"
android:inputType="textPersonName"
+ android:padding="5dp"
app:layout_constraintEnd_toEndOf="@+id/editTextTanggalMasuk"
app:layout_constraintStart_toStartOf="@+id/textView8"
app:layout_constraintTop_toBottomOf="@+id/textView8" />
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/recycle_dahsboard_top.xml b/app/src/main/res/layout/recycle_dahsboard_top.xml
new file mode 100644
index 0000000..e8639a9
--- /dev/null
+++ b/app/src/main/res/layout/recycle_dahsboard_top.xml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index f8c6127..c1163b6 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -1,7 +1,8 @@
- #FFBB86FC
- #FF6200EE
+ #9145ec
+ #4047d8
+ #636fe5
#FF3700B3
#FF03DAC5
#FF018786
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
index 91308f9..970578e 100644
--- a/app/src/main/res/values/themes.xml
+++ b/app/src/main/res/values/themes.xml
@@ -2,8 +2,8 @@