question about TableLayout

by chandlersong » Sat, 08 Aug 2009 12:43:51 GMT


Sponsored Links
 <RadioGroup
        android:id="@+id/
Radiogroup"
        
android:layout_width="fill_parent"
        
android:layout_height="wrap_content"
        
android:orientation="vertical"
<TableLayout
        android:id="@+id/
widget28"
        
android:layout_width="fill_parent"
        
android:layout_height="fill_parent"
        
android:orientation="vertical"
        xmlns:android=" http://schemas.android.com/apk/res/ 
android"
        
<TableRow>
        
<RadioButton
                        android:id="@+id/
radioNumber"
        
android:layout_width="wrap_content"
        
android:layout_height="wrap_content"
                        android:text="@string/
number"
        
android:layout_marginRight="1dip"
                        /
        
<RadioButton
                        android:id="@+id/
radioCharter"
        
android:layout_width="wrap_content"
        
android:layout_height="wrap_content"
                        android:text="@string/
character"
        
android:layout_marginRight="1dip"
                        /
  </
TableRow>
 
<TableRow>
        
<RadioButton
                        android:id="@+id/
radioMix"
        
android:layout_width="wrap_content"
        
android:layout_height="wrap_content"
                        android:text="@string/
mix"
                        /
                </
TableRow>
        </
TableLayout>
</
RadioGroup>

    it's my xml config file.when  I add the tableLayout into the
raidogroup. I find that I can select more than one radiobutton at one
time.
    Does anyone konw how to fixed it?
--~--~---------~--~----~------------~-------~--~----~



question about TableLayout

by Mark Murphy » Sat, 08 Aug 2009 19:16:44 GMT


 


RadioButton widgets must be immediate children of RadioGroup for the
grouping effect to work. You cannot have intermediate containers, such
as your TableLayout and TableRows.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Training in Germany, 18-22 January 2010:  http://bignerdranch.com 

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


question about TableLayout

by 瀹嬪簡娆 » Sun, 09 Aug 2009 12:36:47 GMT


 Then How can I change the default screen formate.
   I hope that I can put the two  radiobutton at the first line the one at
the second line

2009/8/8 Mark Murphy <mmur...@commonsware.com>



--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Service start in Turn on Device

How start my service when turn on my device in automatic mode ??

-- 

2. How can I access gallery from HTC Desire?

hi all.

I am just wondering why I cant access the gallery using the code
below.

Intent gallery = new Intent(Intent.ACTION_VIEW, Uri.parse("content://
media/internal/images/media"));
startActivity(gallery);

but when I installed the 3D gallery from cooliris, it is already
possible.
I can access the images from the installed 3D gallery.
But why cant I access the preinstalled gallery on the device?

Thank you.

-- 

3. salam kenal ...

4. No audio in emulator (ubuntu 10.10)

5. my activity lost visibility after unlocked screen...

6. Listen for key presses on Numeric keypad?

7. Install-time Extraction of .apk files