set feeds listview selectable
This commit is contained in:
parent
f976b25c1e
commit
261c7cfbe6
@ -4,7 +4,7 @@
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent">
|
||||
<LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<ListView android:layout_weight="1" android:background="?feedlistBackground"
|
||||
<ListView android:layout_weight="1"
|
||||
android:layout_width="match_parent" android:id="@+id/feeds" android:layout_height="match_parent"></ListView>
|
||||
</LinearLayout>
|
||||
<ProgressBar android:layout_height="wrap_content"
|
||||
|
@ -19,6 +19,7 @@ import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.AbsListView;
|
||||
import android.widget.AdapterView;
|
||||
import android.widget.AdapterView.OnItemClickListener;
|
||||
import android.widget.ListView;
|
||||
@ -64,6 +65,7 @@ public class FeedsFragment extends Fragment implements OnItemClickListener {
|
||||
if (list != null) {
|
||||
list.setAdapter(m_adapter);
|
||||
list.setOnItemClickListener(this);
|
||||
list.setChoiceMode(AbsListView.CHOICE_MODE_SINGLE);
|
||||
}
|
||||
|
||||
updateSelf();
|
||||
|
Loading…
Reference in New Issue
Block a user