Skip to content

Commit

Permalink
cardview ui fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vavali08 committed Apr 21, 2024
1 parent f59a022 commit 64a8485
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ class NewListingsFragment(private val dataModel: SublettingViewModel) : Fragment




}

private fun convertToYYYYMMDD(mmddyy: String): String {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ class PostedSubletsListAdapter(private val dataModel: SublettingViewModel):
.addToBackStack(null)
.commit()
}
holder.listingDates.text = mSublettingCard.startDate + " to " + mSublettingCard.endDate
holder.listingDates.setSingleLine(false);
holder.listingDates.text = mSublettingCard.startDate + " to \n" + mSublettingCard.endDate
}


Expand Down
6 changes: 3 additions & 3 deletions PennMobile/src/main/res/layout/subletting_cardview.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/subletting_cardview_item"
android:layout_width="200dp"
android:layout_height="300dp"
android:layout_height="340dp"
app:cardCornerRadius="8dp"
app:cardElevation="5dp"
app:cardPreventCornerOverlap="true"
Expand All @@ -26,12 +26,12 @@

<TextView
android:id="@+id/subletting_cardview_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/gilroy_bold"
android:text="Title"
android:textSize="20dp"
android:layout_marginTop="10dp"
android:layout_width="fill_parent"
android:layout_marginHorizontal="15dp"
app:layout_constraintTop_toBottomOf="@id/subletting_cardview_image"
app:layout_constraintStart_toStartOf="@id/subletting_cardview_image" />

Expand Down

0 comments on commit 64a8485

Please sign in to comment.