updating the style of Select SIM dialog

This commit is contained in:
tibbi 2021-11-18 21:31:43 +01:00
parent 8530bad54f
commit 63fb2045c5
2 changed files with 20 additions and 6 deletions

View File

@ -20,6 +20,11 @@ class SelectSIMDialog(val activity: BaseSimpleActivity, val phoneNumber: String,
init {
val radioGroup = view.select_sim_radio_group
view.apply {
select_sim_remember_holder.setOnClickListener {
select_sim_remember.toggle()
}
}
activity.getAvailableSIMCardLabels().forEachIndexed { index, SIMAccount ->
val radioButton = (activity.layoutInflater.inflate(R.layout.radio_button, null) as RadioButton).apply {

View File

@ -23,13 +23,22 @@
<include layout="@layout/divider" />
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/select_sim_remember"
<RelativeLayout
android:id="@+id/select_sim_remember_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/small_margin"
android:paddingTop="@dimen/activity_margin"
android:paddingBottom="@dimen/activity_margin"
android:text="@string/always_use_this_sim" />
android:layout_marginTop="@dimen/medium_margin"
android:background="?attr/selectableItemBackground"
android:paddingTop="@dimen/medium_margin"
android:paddingBottom="@dimen/medium_margin">
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/select_sim_remember"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:clickable="false"
android:text="@string/always_use_this_sim" />
</RelativeLayout>
</LinearLayout>