Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.mppl.banksampah.admin;

public class RiwayatTukarAntar {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.mppl.banksampah.admin;

public class RiwayatTukarJemput {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.mppl.banksampah.admin;

public class RiwayatTukarSampahFragment {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.mppl.banksampah.admin;

public class RiwayatTukarTerima {
}
12 changes: 12 additions & 0 deletions app/src/main/res/drawable/table_content_cell_bg2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<padding
android:left="8dp"
android:top="8dp"
android:right="8dp"
android:bottom="8dp" />
<corners android:radius="2dp" />
<solid android:color="#FFFFFF"/>
<stroke android:width="1dp" android:color="#AFAFAF"/>
</shape>
13 changes: 13 additions & 0 deletions app/src/main/res/drawable/table_content_cell_bg3.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<padding
android:bottom="8dp"
android:left="8dp"
android:right="8dp"
android:top="8dp" />
<solid android:color="#eee" />
<stroke
android:width="1dp"
android:color="#AFAFAF" />
</shape>
62 changes: 62 additions & 0 deletions app/src/main/res/layout/fragment_riwayat_tukar_sampah.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?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">

<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="23dp"
android:layout_marginTop="50dp"
android:layout_marginEnd="23dp"
android:text="@string/riwayat_tukar_sampah"
android:textSize="35sp"
android:textStyle="bold" />

<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_event"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="40dp"
android:layout_below="@id/textView"
app:layout_constraintTop_toBottomOf="@+id/textView"
app:tabBackground="@color/item_riwayat"
app:tabGravity="fill"
app:tabIndicatorColor="@color/tabindicatorcolor"
app:tabMode="fixed"
app:tabSelectedTextColor="@color/jemput"
app:tabTextColor="@color/colorBlack"
tools:ignore="MissingConstraints" />


<androidx.viewpager.widget.ViewPager
android:id="@+id/view_pager_event"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="150dp"
android:layout_below="@id/tab_event"
android:layout_marginTop="50dp"
app:layout_constraintTop_toBottomOf="@+id/tab_event"
tools:ignore="MissingConstraints">

</androidx.viewpager.widget.ViewPager>


<Button
android:id="@+id/btn_ok_riwayat_tukar"
android:layout_width="130dp"
android:layout_height="40dp"
android:layout_below="@id/view_pager_event"
android:layout_gravity="center_vertical"
android:layout_marginEnd="150dp"
android:layout_marginStart="150dp"
android:layout_marginTop="-70dp"
android:background="@drawable/btn_style"
android:text="@string/ok"
android:textColor="@android:color/white" />


</RelativeLayout>
83 changes: 83 additions & 0 deletions app/src/main/res/layout/fragment_tukar_sampah_antar.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
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="@android:color/white"
android:paddingBottom="50dp">

<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="10dp"
android:layout_marginBottom="15dp"
android:orientation="vertical"
android:paddingStart="15dp"
android:paddingEnd="15dp">

<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">

<TextView
android:layout_width="98dp"
android:layout_height="50dp"
android:background="@drawable/table_content_cell_bg3"
android:gravity="center"
android:text="@string/tanggal"
android:textColor="@color/colorPrimary"
android:textStyle="bold" />

<TextView
android:layout_width="123dp"
android:layout_height="50dp"
android:background="@drawable/table_content_cell_bg3"
android:gravity="center"
android:text="@string/email"
android:textColor="@color/colorPrimary"
android:textStyle="bold" />

<TextView
android:layout_width="58dp"
android:layout_height="50dp"
android:background="@drawable/table_content_cell_bg3"
android:gravity="center"
android:text="@string/poin"
android:textColor="@color/colorPrimary"
android:textStyle="bold" />

<TextView
android:layout_width="99dp"
android:layout_height="50dp"
android:layout_gravity="end"
android:background="@drawable/table_content_cell_bg3"
android:gravity="center"
android:text="@string/status"
android:textColor="@color/colorPrimary"
android:textStyle="bold" />

</androidx.appcompat.widget.LinearLayoutCompat>

<TextView
android:id="@+id/tvBelumRequest"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/kamu_belum_memiliki_riwayat_poin"
android:textSize="20sp"
android:translationY="40dp"
android:visibility="gone" />


<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvTukarAntar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
tools:listitem="@layout/table_list_riwayat_tukar_sampah" />

</androidx.appcompat.widget.LinearLayoutCompat>

</FrameLayout>
83 changes: 83 additions & 0 deletions app/src/main/res/layout/fragment_tukar_sampah_jemput.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
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="@android:color/white"
android:paddingBottom="50dp">

<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="10dp"
android:layout_marginBottom="15dp"
android:orientation="vertical"
android:paddingStart="15dp"
android:paddingEnd="15dp">

<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">

<TextView
android:layout_width="98dp"
android:layout_height="50dp"
android:background="@drawable/table_content_cell_bg3"
android:gravity="center"
android:text="@string/tanggal"
android:textColor="@color/colorPrimary"
android:textStyle="bold" />

<TextView
android:layout_width="123dp"
android:layout_height="50dp"
android:background="@drawable/table_content_cell_bg3"
android:gravity="center"
android:text="@string/email"
android:textColor="@color/colorPrimary"
android:textStyle="bold" />

<TextView
android:layout_width="58dp"
android:layout_height="50dp"
android:background="@drawable/table_content_cell_bg3"
android:gravity="center"
android:text="@string/poin"
android:textColor="@color/colorPrimary"
android:textStyle="bold" />

<TextView
android:layout_width="99dp"
android:layout_height="50dp"
android:layout_gravity="end"
android:background="@drawable/table_content_cell_bg3"
android:gravity="center"
android:text="@string/status"
android:textColor="@color/colorPrimary"
android:textStyle="bold" />

</androidx.appcompat.widget.LinearLayoutCompat>

<TextView
android:id="@+id/tvBelumRequest"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/kamu_belum_memiliki_riwayat_poin"
android:textSize="20sp"
android:translationY="40dp"
android:visibility="gone" />


<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvTukarJemput"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
tools:listitem="@layout/table_list_riwayat_tukar_sampah" />

</androidx.appcompat.widget.LinearLayoutCompat>

</FrameLayout>
74 changes: 74 additions & 0 deletions app/src/main/res/layout/fragment_tukar_sampah_terima.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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="@android:color/white"
android:paddingBottom="50dp">

<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="10dp"
android:layout_marginBottom="15dp"
android:orientation="vertical"
android:paddingStart="15dp"
android:paddingEnd="15dp">

<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">

<TextView
android:layout_width="98dp"
android:layout_height="50dp"
android:background="@drawable/table_content_cell_bg3"
android:gravity="center"
android:text="@string/tanggal"
android:textColor="@color/colorPrimary"
android:textStyle="bold" />

<TextView
android:layout_width="123dp"
android:layout_height="50dp"
android:background="@drawable/table_content_cell_bg3"
android:gravity="center"
android:text="@string/email"
android:textColor="@color/colorPrimary"
android:textStyle="bold" />

<TextView
android:layout_width="58dp"
android:layout_height="50dp"
android:background="@drawable/table_content_cell_bg3"
android:gravity="center"
android:text="@string/poin"
android:textColor="@color/colorPrimary"
android:textStyle="bold" />



</androidx.appcompat.widget.LinearLayoutCompat>

<TextView
android:id="@+id/tvBelumRequest"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/kamu_belum_memiliki_riwayat_poin"
android:textSize="20sp"
android:translationY="40dp"
android:visibility="gone" />


<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvAntarSampah"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
tools:listitem="@layout/list_terima_sampah" />

</androidx.appcompat.widget.LinearLayoutCompat>

</FrameLayout>
Loading