Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to make boolean type options full screen width while horizont… #1985

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package com.google.android.fhir.datacapture.views.factories

import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.RadioButton
import androidx.constraintlayout.helper.widget.Flow
import androidx.constraintlayout.widget.ConstraintLayout
Expand Down Expand Up @@ -133,12 +134,13 @@ internal object BooleanChoiceViewHolderFactory :
choiceOrientation: ChoiceOrientationTypes
) {
layoutParams =
ViewGroup.LayoutParams(
LinearLayout.LayoutParams(
when (choiceOrientation) {
ChoiceOrientationTypes.HORIZONTAL -> ViewGroup.LayoutParams.WRAP_CONTENT
ChoiceOrientationTypes.HORIZONTAL -> 0
khyativyasargus marked this conversation as resolved.
Show resolved Hide resolved
ChoiceOrientationTypes.VERTICAL -> ViewGroup.LayoutParams.MATCH_PARENT
},
ViewGroup.LayoutParams.WRAP_CONTENT
ViewGroup.LayoutParams.WRAP_CONTENT,
1.0f
khyativyasargus marked this conversation as resolved.
Show resolved Hide resolved
)
}

Expand Down