I'm trying to use a ListView with Buttons beneath the listview, and am running into problems where the listview and buttons just don't realize each other are there (they overlap)
Currently the xml file is: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content"> <Button android:id="@+id/addTask" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Add Task" /> <ListView android:id="@id/android:list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:drawSelectorOnTop="false"/> </RelativeLayout> and the java code is: public class TaskManager extends ListActivity { protected static final int SUB_ACTIVITY_REQUEST_CODE = 1337; private String array_spinner[]; final int SUCCESS_RETURN_CODE = 1; List<String> tasks; int currentposition; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.taskmanager); ArrayList <String> arrayList = new ArrayList<String>(); arrayList.add("Task1"); arrayList.add("Task2"); arrayList.add("Task3"); tasks = arrayList; Button addButton = (Button)findViewById(R.id.addTask); addButton.setOnClickListener(new View.OnClickListener() { ... ... I'm also not sure if using a ListView in this case is the correct solution. What I'm trying to do is have a list of options that the user can select, and when they select it, it remains highlighted, then I can use that value when I press another button, for example: item 1 item 2 item 3 [Move item up] [Move item down] where [ ]'s are buttons Any suggestions with what I should actually be using? I tried looking up "android selection list" but the closest thing was selection dialog, which isn't what I'm looking for. Thanks, Moiraine -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en