Skip to content

Commit

Permalink
delete sapa category
Browse files Browse the repository at this point in the history
  • Loading branch information
Haf0 committed Jun 16, 2022
1 parent 031194b commit dc7d091
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

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

11 changes: 5 additions & 6 deletions app/src/main/java/com/bangkit/capstone/ui/CategoryActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ class CategoryActivity : AppCompatActivity() {
}

private fun setCardClick() {
binding.cardView1.setOnClickListener { moveMain(0) }
binding.cardView2.setOnClickListener { moveMain(1) }
binding.cardView3.setOnClickListener { moveMain(2) }
binding.cardView4.setOnClickListener { moveMain(3) }
binding.cardView5.setOnClickListener { moveMain(4) }
binding.cardView6.setOnClickListener { moveMain(5) }
binding.cardView1.setOnClickListener { moveMain(1) }
binding.cardView2.setOnClickListener { moveMain(2) }
binding.cardView3.setOnClickListener { moveMain(3) }
binding.cardView4.setOnClickListener { moveMain(4) }
binding.cardView5.setOnClickListener { moveMain(5) }
}


Expand Down
66 changes: 12 additions & 54 deletions app/src/main/res/layout/activity_category.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,48 +42,6 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/guideline2">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">

<ImageView
android:id="@+id/iconCard1"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginStart="8dp"
android:src="@drawable/asset_chatbot"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:contentDescription="@string/icon_category_desc" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/nunitosans_semibold"
android:padding="16dp"
android:text="@string/category1"
android:textSize="16sp"
app:layout_constraintStart_toEndOf="@id/iconCard1"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>

</androidx.constraintlayout.widget.ConstraintLayout>


</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:id="@+id/cardView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:layout_marginTop="12dp"
app:cardCornerRadius="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cardView1">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
Expand Down Expand Up @@ -116,16 +74,15 @@
</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:id="@+id/cardView3"
android:id="@+id/cardView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:layout_marginTop="12dp"
app:cardCornerRadius="8dp"
android:contentDescription="@string/informasi_promo"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cardView2">
app:layout_constraintTop_toBottomOf="@id/cardView1">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
Expand Down Expand Up @@ -159,16 +116,16 @@
</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:id="@+id/cardView4"
android:id="@+id/cardView3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:contentDescription="@string/kupon_traveloka"
android:layout_marginTop="12dp"
app:cardCornerRadius="8dp"
android:contentDescription="@string/informasi_promo"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cardView3">
app:layout_constraintTop_toBottomOf="@id/cardView2">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
Expand Down Expand Up @@ -202,16 +159,16 @@
</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:id="@+id/cardView5"
android:id="@+id/cardView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:contentDescription="@string/kupon_traveloka"
android:layout_marginTop="12dp"
android:contentDescription="@string/pembayaran_dengan_rupiah"
app:cardCornerRadius="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cardView4">
app:layout_constraintTop_toBottomOf="@id/cardView3">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
Expand Down Expand Up @@ -245,16 +202,16 @@
</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:id="@+id/cardView6"
android:id="@+id/cardView5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:layout_marginTop="12dp"
android:contentDescription="@string/pembayaran_dengan_rupiah"
app:cardCornerRadius="8dp"
app:layout_constraintEnd_toEndOf="parent"
android:contentDescription="@string/traveloka_qr_scanner"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cardView5">
app:layout_constraintTop_toBottomOf="@id/cardView4">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
Expand Down Expand Up @@ -287,6 +244,7 @@

</androidx.cardview.widget.CardView>


<androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline2"
android:layout_width="wrap_content"
Expand Down

0 comments on commit dc7d091

Please sign in to comment.