LegendZorro
New Member
I used the instructions given Here: http://developer.android.com/guide/topics/ui/dialogs.html#AddingAList to create a List in a dialog. The problem is I don't seem to find out a way to wrap long text inside the options. [Please see the image below]
Please tell me how to do the text wrapping. I am using the following code:\[code\]items= getArrayFromJson(source+"getdetails.php?brand="+bName+"&car="+cName); builder = new AlertDialog.Builder(this); builder.setTitle("Choose Model"); builder.setSingleChoiceItems(items, -1, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int item) { if(items[item].equals("No Options Available")){ dismissDialog(2); } else{ model.setText(items[item]); mName= items[item].toString(); location.setEnabled(true); dismissDialog(2); } } }); alert = builder.create(); return alert;\[/code\]Any help/direction is highly appreciated