parent
3e5b6ca007
commit
a2f2a23a15
|
@ -6,16 +6,16 @@ package org.mozilla.fenix.onboarding
|
|||
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
import android.widget.RadioButton
|
||||
import androidx.appcompat.widget.AppCompatRadioButton
|
||||
import org.mozilla.fenix.R
|
||||
import org.mozilla.fenix.utils.Settings
|
||||
|
||||
class OnboardingRadioButton : RadioButton {
|
||||
class OnboardingRadioButton(context: Context, attrs: AttributeSet) : AppCompatRadioButton(context, attrs) {
|
||||
private val radioGroups = mutableListOf<OnboardingRadioButton>()
|
||||
private var clickListener: (() -> Unit)? = null
|
||||
var key: Int = 0
|
||||
|
||||
constructor(context: Context, attrs: AttributeSet) : super(context, attrs) {
|
||||
init {
|
||||
attrs.let {
|
||||
context.theme.obtainStyledAttributes(
|
||||
it,
|
||||
|
|
|
@ -12,5 +12,5 @@
|
|||
<path
|
||||
android:fillColor="?primaryText"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M12 2C7.7 2 5 4.8 5 9c0 3 2 5 3 6v4.5c0 1.8 2.4 2.5 4 2.5s4-.7 4-2.5V15c1-1 3-3 3-6 0-4.2-2.7-7-7-7zm0 2C9.9 4 7 5.4 7 9c0 2 1.7 3.9 2.5 4.5 0.3 0.2 0.5 0.6 0.5 1v5l2 0.5 2-0.5v-5c0-0.4 0.2-0.8 0.5-1C15.3 12.9 17 11 17 9c0-3.6-2.9-5-5-5z" />
|
||||
android:pathData="M12 2C7.7 2 5 4.8 5 9c0 3 2 5 3 6v4.5c0 1.8 2.4 2.5 4 2.5s4-0.7 4-2.5V15c1-1 3-3 3-6 0-4.2-2.7-7-7-7zm0 2C9.9 4 7 5.4 7 9c0 2 1.7 3.9 2.5 4.5 0.3 0.2 0.5 0.6 0.5 1v5l2 0.5 2-0.5v-5c0-0.4 0.2-0.8 0.5-1C15.3 12.9 17 11 17 9c0-3.6-2.9-5-5-5z" />
|
||||
</vector>
|
||||
|
|
Loading…
Reference in New Issue
Block a user