diff --git a/app/build.gradle b/app/build.gradle index f8f27e6..bb2f61a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -49,7 +49,7 @@ android { defaultConfig { // Tambahkan semua buildConfigField yang dibutuhkan - buildConfigField "int", "MAX_REFRESH_ATTEMPTS", "5" + buildConfigField "int", "MAX_REFRESH_ATTEMPTS", "3" buildConfigField "int", "DEFAULT_QR_EXPIRATION_MINUTES", "15" buildConfigField "String", "MIDTRANS_SANDBOX_AUTH", "\"Basic U0ItTWlkLXNlcnZlci1PM2t1bXkwVDl4M1VvYnVvVTc3NW5QbXc=\"" buildConfigField "String", "MIDTRANS_PRODUCTION_AUTH", "\"TWlkLXNlcnZlci1sMlZPalotdVlVanpvNnU4VzAtYmF1a2o=\"" diff --git a/app/src/main/java/com/example/bdkipoc/settlement/SettlementActivity.java b/app/src/main/java/com/example/bdkipoc/settlement/SettlementActivity.java index f2da1a9..e43ba9c 100644 --- a/app/src/main/java/com/example/bdkipoc/settlement/SettlementActivity.java +++ b/app/src/main/java/com/example/bdkipoc/settlement/SettlementActivity.java @@ -8,6 +8,7 @@ import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; +import android.widget.LinearLayout; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; @@ -37,7 +38,7 @@ public class SettlementActivity extends AppCompatActivity { private RecyclerView recyclerView; private SettlementAdapter adapter; private List settlementList; - private ImageView btnBack; + private LinearLayout backNavigation; // Changed from ImageView btnBack @Override protected void onCreate(Bundle savedInstanceState) { @@ -125,7 +126,7 @@ public class SettlementActivity extends AppCompatActivity { tvTotalAmount = findViewById(R.id.tv_total_amount); tvTotalTransactions = findViewById(R.id.tv_total_transactions); recyclerView = findViewById(R.id.recycler_view); - btnBack = findViewById(R.id.btn_back); + backNavigation = findViewById(R.id.back_navigation); // Updated to use back_navigation from appbar settlementList = new ArrayList<>(); } @@ -137,7 +138,8 @@ public class SettlementActivity extends AppCompatActivity { } private void setupClickListeners() { - btnBack.setOnClickListener(new View.OnClickListener() { + // Updated to use backNavigation instead of btnBack + backNavigation.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { finish(); diff --git a/app/src/main/res/layout/activity_settlement.xml b/app/src/main/res/layout/activity_settlement.xml index e140fed..779aaab 100644 --- a/app/src/main/res/layout/activity_settlement.xml +++ b/app/src/main/res/layout/activity_settlement.xml @@ -3,115 +3,102 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="#F5F5F5" + android:background="#FFFFFF" android:orientation="vertical"> - - + + + + + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:layout_marginTop="-70dp" + android:layout_marginEnd="16dp" + android:layout_marginBottom="5dp" + app:cardCornerRadius="16dp" + app:cardElevation="6dp"> - - - - - - - - + android:layout_height="wrap_content" + android:background="#4299E1" + android:padding="16dp"> - + + - + + - + + - + + - + + - + + - - - - - - - - - - + + + + android:textSize="12sp" + android:fontFamily="@font/inter" + android:textStyle="normal" /> + android:layout_weight="1" + android:background="@android:color/transparent" /> @@ -155,6 +148,9 @@ android:text="Selanjutnya" android:textColor="@android:color/white" android:textSize="16sp" - android:textStyle="bold" /> + android:fontFamily="@font/inter" + android:textStyle="bold" + android:clickable="true" + android:focusable="true" /> \ No newline at end of file diff --git a/app/src/main/res/layout/item_settlement.xml b/app/src/main/res/layout/item_settlement.xml index 65216c1..88852ab 100644 --- a/app/src/main/res/layout/item_settlement.xml +++ b/app/src/main/res/layout/item_settlement.xml @@ -7,25 +7,41 @@ android:clickable="true" android:focusable="true" android:orientation="horizontal" - android:padding="16dp"> + android:padding="16dp" + android:layout_marginBottom="1dp"> - - + + app:cardCornerRadius="8dp" + app:cardElevation="0dp" + android:layout_marginEnd="12dp"> + + + + + + + + - + - + + android:textSize="12sp" + android:fontFamily="@font/inter" + android:textStyle="normal" /> - + \ No newline at end of file