Skip to content

Commit

Permalink
Changed the colour of event cards to match the match cards.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazel Wright committed Jun 19, 2023
1 parent eb54c3f commit a7af026
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class CommitteeEventsActivity : AppCompatActivity() {
val eventCard = inflater.inflate(
R.layout.committee_event_view, eventsList, false
) as CardView
eventCard.setCardBackgroundColor(getColor(R.color.light_grey_0))
/* Views in the card. */
eventCard.findViewById<TextView>(R.id.share_prompt).text = name
eventCard.findViewById<TextView>(R.id.new_event_descr).text = desc
eventCard.findViewById<TextView>(R.id.new_event_date).text = date
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/com/example/drp25/UserEventsActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class UserEventsActivity : AppCompatActivity() {
val eventCard = inflater.inflate(
R.layout.user_event_view, eventsList, false
) as CardView
eventCard.setCardBackgroundColor(getColor(R.color.light_grey_0))
/* Views in the card. */
eventCard.findViewById<TextView>(R.id.share_prompt).text = name
eventCard.findViewById<TextView>(R.id.new_event_descr).text = desc
eventCard.findViewById<TextView>(R.id.new_event_date).text = date
Expand Down
6 changes: 4 additions & 2 deletions app/src/main/res/layout/activity_user_events.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@
android:layout_margin="@dimen/margin_16"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:gravity="center_vertical"
android:gravity="center"
android:minWidth="300dp"
android:text="@string/upcoming_events_related_to_your_interests"
android:textSize="16sp"
android:textColor="@color/stream_ui_black"
android:textSize="24sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />

Expand Down

0 comments on commit a7af026

Please sign in to comment.