mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
make radio buttons in invite alert bigger
Trying to get closer to the size they were in AlertDialog
This commit is contained in:
parent
f98759881c
commit
2a973b6968
2 changed files with 13 additions and 2 deletions
|
@ -76,7 +76,8 @@ public class InviteView extends ScrollView
|
||||||
mGroupHow.setOnCheckedChangeListener( this );
|
mGroupHow.setOnCheckedChangeListener( this );
|
||||||
for ( InviteMeans means : meansList ) {
|
for ( InviteMeans means : meansList ) {
|
||||||
Assert.assertNotNull( means );
|
Assert.assertNotNull( means );
|
||||||
RadioButton button = new RadioButton( context );
|
RadioButton button = (RadioButton)LocUtils
|
||||||
|
.inflate( context, R.layout.invite_radio );
|
||||||
button.setText( LocUtils.getString( context, means.getUserDescID() ) );
|
button.setText( LocUtils.getString( context, means.getUserDescID() ) );
|
||||||
mGroupHow.addView( button );
|
mGroupHow.addView( button );
|
||||||
mHowMeans.put( button, means );
|
mHowMeans.put( button, means );
|
||||||
|
@ -86,7 +87,8 @@ public class InviteView extends ScrollView
|
||||||
mGroupWho = (RadioGroup)findViewById( R.id.group_who );
|
mGroupWho = (RadioGroup)findViewById( R.id.group_who );
|
||||||
mGroupWho.setOnCheckedChangeListener( this );
|
mGroupWho.setOnCheckedChangeListener( this );
|
||||||
for ( String player : players ) {
|
for ( String player : players ) {
|
||||||
RadioButton button = new RadioButton( context );
|
RadioButton button = (RadioButton)LocUtils
|
||||||
|
.inflate( context, R.layout.invite_radio );
|
||||||
button.setText( player );
|
button.setText( player );
|
||||||
mGroupWho.addView( button );
|
mGroupWho.addView( button );
|
||||||
mWhoPlayers.put( button, player );
|
mWhoPlayers.put( button, player );
|
||||||
|
|
9
xwords4/android/app/src/main/res/layout/invite_radio.xml
Normal file
9
xwords4/android/app/src/main/res/layout/invite_radio.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<RadioButton xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:textSize="22dp"
|
||||||
|
android:paddingTop="5dp"
|
||||||
|
android:paddingBottom="5dp"
|
||||||
|
/>
|
Loading…
Reference in a new issue