0

I came across a dialog popup in ipad which contain multi checkboxes under multiple header titles, here is the sample dialog which i need to make in android

enter image description here

I can able to create multiple checkboxes under a single text title....but cannot create multi text headers in it....I read some post but which suggested to make custom views but don't knw how could I achieve it...

please do suggest some useful solutions...

Barak
  • 16,318
  • 9
  • 52
  • 84
Vivek Singh
  • 1,201
  • 3
  • 17
  • 39
  • use `RadioButtonGroup` and customize look – Samir Mangroliya Oct 13 '12 at 05:43
  • Do you have any numbers as to, how many header text you want in a dialog? – VendettaDroid Oct 13 '12 at 05:49
  • 2
    There's a few ways you could achieve this, but my suggestion would be to just create this layout as an Activity..and in your manifest change the theme of the Activity to android.theme.DIALOG – Jade Byfield Oct 13 '12 at 05:54
  • @samir how can i add items under programmatically instead of writing each item in my xml... – Vivek Singh Oct 13 '12 at 06:07
  • @jade could you please elaborate how can i do it in activity.... – Vivek Singh Oct 13 '12 at 06:09
  • @VivekSingh you could either extend Dialog and make your own, or just create a layout with radioButtons and textViews in xml just like you would for any other layout. Then create an Activity and inflate your layout via setContentView(R.layout.layout_id). But this time, in your Android Manifest add android:theme="@android:style/Theme.Dialog" to your activity tag. – Jade Byfield Oct 13 '12 at 06:17

0 Answers0