I am having listview in linear layout, where I need to programatically add button. I have tried several tutiorials and noone was sufficient enoughm, simply it wasn't working. Do you know of some solution?
Edit: I just want to have one button added programatically and my listview (no button in listview). I am not able to add button in my activity programatically.
Edit:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/uss"
/>
<ListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/list"
android:focusable="false"
android:focusableInTouchMode="false"
/>