mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
updating the style of Select SIM dialog
This commit is contained in:
@ -20,6 +20,11 @@ class SelectSIMDialog(val activity: BaseSimpleActivity, val phoneNumber: String,
|
|||||||
|
|
||||||
init {
|
init {
|
||||||
val radioGroup = view.select_sim_radio_group
|
val radioGroup = view.select_sim_radio_group
|
||||||
|
view.apply {
|
||||||
|
select_sim_remember_holder.setOnClickListener {
|
||||||
|
select_sim_remember.toggle()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
activity.getAvailableSIMCardLabels().forEachIndexed { index, SIMAccount ->
|
activity.getAvailableSIMCardLabels().forEachIndexed { index, SIMAccount ->
|
||||||
val radioButton = (activity.layoutInflater.inflate(R.layout.radio_button, null) as RadioButton).apply {
|
val radioButton = (activity.layoutInflater.inflate(R.layout.radio_button, null) as RadioButton).apply {
|
||||||
|
@ -23,13 +23,22 @@
|
|||||||
|
|
||||||
<include layout="@layout/divider" />
|
<include layout="@layout/divider" />
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<RelativeLayout
|
||||||
android:id="@+id/select_sim_remember"
|
android:id="@+id/select_sim_remember_holder"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="@dimen/small_margin"
|
android:layout_marginTop="@dimen/medium_margin"
|
||||||
android:paddingTop="@dimen/activity_margin"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:paddingBottom="@dimen/activity_margin"
|
android:paddingTop="@dimen/medium_margin"
|
||||||
android:text="@string/always_use_this_sim" />
|
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>
|
</LinearLayout>
|
||||||
|
Reference in New Issue
Block a user