forked from github/szkolny
[Home/Grades] Fix padding.
This commit is contained in:
parent
8df24dc1c4
commit
4e88efae94
@ -102,11 +102,13 @@ class HomeGradesCard(
|
|||||||
|
|
||||||
b.gradeList.removeAllViews()
|
b.gradeList.removeAllViews()
|
||||||
|
|
||||||
val textLayoutParams = LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT)
|
val textLayoutParams = LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT).apply {
|
||||||
textLayoutParams.setMargins(0, 0, 5.dp, 0)
|
setMargins(0, 0, 5.dp, 0)
|
||||||
|
}
|
||||||
|
|
||||||
val linearLayoutParams = LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT)
|
val linearLayoutParams = LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT).apply {
|
||||||
linearLayoutParams.setMargins(8.dp, 0, 8.dp, 5.dp)
|
setMargins(2.dp, 0, 2.dp, 5.dp)
|
||||||
|
}
|
||||||
|
|
||||||
subjects.forEach { subject ->
|
subjects.forEach { subject ->
|
||||||
val gradeItem = LinearLayout(b.gradeList.context)
|
val gradeItem = LinearLayout(b.gradeList.context)
|
||||||
|
@ -29,8 +29,7 @@
|
|||||||
android:id="@+id/gradeList"
|
android:id="@+id/gradeList"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="12dp"
|
||||||
android:layout_marginBottom="8dp"
|
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
Loading…
Reference in New Issue
Block a user