Task result screen improvements

This commit is contained in:
Phillip Thelen 2022-07-07 09:51:02 +02:00
parent 35ee77def2
commit 2d1591f8a3
2 changed files with 13 additions and 4 deletions

View file

@ -126,7 +126,11 @@ class TaskResultActivity : BaseActivity<ActivityTaskResultBinding, TaskResultVie
layoutParams.columnSpec = GridLayout.spec(0, 3, GridLayout.CENTER)
currentRow += 1
} else {
layoutParams.columnSpec = GridLayout.spec(currentColumn, 1)
if (chips.size == 2) {
layoutParams.columnSpec = GridLayout.spec(currentColumn, 3, GridLayout.CENTER)
} else {
layoutParams.columnSpec = GridLayout.spec(currentColumn, 1)
}
if (currentColumn > 0) {
layoutParams.marginStart = margin
}

View file

@ -18,8 +18,13 @@
android:gravity="center"
android:textColor="@color/watch_white"
/>
<com.habitrpg.common.habitica.views.PixelArtView
android:id="@+id/image_view"
<FrameLayout
android:layout_width="40dp"
android:layout_height="40dp" />
android:layout_height="40dp">
<com.habitrpg.common.habitica.views.PixelArtView
android:id="@+id/image_view"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_gravity="center" />
</FrameLayout>
</LinearLayout>