diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/home/cards/HomeGradesCard.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/home/cards/HomeGradesCard.kt index 01192859..a6a8c49d 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/home/cards/HomeGradesCard.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/home/cards/HomeGradesCard.kt @@ -102,11 +102,13 @@ class HomeGradesCard( b.gradeList.removeAllViews() - val textLayoutParams = LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT) - textLayoutParams.setMargins(0, 0, 5.dp, 0) + val textLayoutParams = LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT).apply { + setMargins(0, 0, 5.dp, 0) + } - val linearLayoutParams = LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT) - linearLayoutParams.setMargins(8.dp, 0, 8.dp, 5.dp) + val linearLayoutParams = LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT).apply { + setMargins(2.dp, 0, 2.dp, 5.dp) + } subjects.forEach { subject -> val gradeItem = LinearLayout(b.gradeList.context) diff --git a/app/src/main/res/layout/card_home_grades.xml b/app/src/main/res/layout/card_home_grades.xml index 8485f829..6280f641 100644 --- a/app/src/main/res/layout/card_home_grades.xml +++ b/app/src/main/res/layout/card_home_grades.xml @@ -29,8 +29,7 @@ android:id="@+id/gradeList" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="16dp" - android:layout_marginBottom="8dp" + android:layout_marginTop="12dp" android:orientation="vertical">