-1

[923332099903,24975924,923332122440,57375]

I am getting the above values in the ArrayList,now i want to display the values in the textview or radiobutton like the following example:

923332099903

923332122440

My Activity is:

private ArrayList<String> AssociatedArray = new ArrayList<String>(); private ArrayList<String> AssociatedArrayIndexes = new ArrayList<String>(); @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.change_number); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.window_title); AssociatedArray = getIntent().getStringArrayListExtra("AssociatedArray"); } 
2
  • In ListView or, if AssociatedArray has small size, you have to generete TextViews/Radios from code (inside some ScrollView) ... both solutions are well described over the internet ... and your question do not shows any efforts on your side ... Commented Feb 20, 2015 at 12:58
  • 1
    here is showing how to get value from ArrayList stackoverflow.com/questions/7950884/… and here how to set text in TextView stackoverflow.com/questions/2300169/… Commented Feb 20, 2015 at 12:59

1 Answer 1

0

Create your own list view with customised view(i.e it contains radio button) and pass your array list to your adapter.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.