mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
Task result screen improvements
This commit is contained in:
parent
35ee77def2
commit
2d1591f8a3
2 changed files with 13 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
Loading…
Reference in a new issue