Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Android code

  • 23-09-2011 3:45pm
    #1
    Registered Users, Registered Users 2 Posts: 648 ✭✭✭


    I have a ListActivity with a setListAdapter call so that I can dynamically hide buttons in the listview. This was working fine till I introduced a spinner which now works fine but somehow stops the listview adapter from working without producing any debug issues or crashes so the buttons are no longer being hidden where they should.

    Has anyone come across this and resolved it before?
    ...oncreate() { ...  ArrayAdapter<CharSequence> spinadapter = ArrayAdapter.createFromResource(             this, R.array.order_by_array, android.R.layout.simple_spinner_item);     spinadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);     spinner.setAdapter(spinadapter);     spinner.setOnItemSelectedListener(new MyOnItemSelectedListener());   }    private void updateData() {  ...             MySimpleArrayAdapter adapter = new MySimpleArrayAdapter(this, mp3, titles, artists);     setListAdapter(adapter); }
    


Comments

  • Registered Users, Registered Users 2 Posts: 648 ✭✭✭Freddio


    I figured it out. There is actually no conflict, I just wasn't calling a method at a point i should have been. If anyone is trawling the net and comes accross this, hopefully it might help


Advertisement