Questions tagged [android-listfragment]

ListFragment is one of the specialized Fragment classes which has, by default, a ListView as its content view.

ListFragment is one of the specialized Fragment classes which has, by default, a ListView as its content view. The ListFragment can be customized as desired but a ListView with the id android.R.id.list(or android:id="@android:id/list" for an xml layout) must be present in the content view used for the ListFragment. The methods that are present in a ListActivity (like getListView() and setListAdapter()) are available in a ListFragment.

More information about the ListFragment can be found in its documentation.

1175 questions
-3
votes
3 answers

Replace list in master activity with another list and remove old list from view

When staring my app a list (list_main) is displayed in the master fragment. There is also a 2nd list fragment that is supposed to open when I clicking the 1st list item from my main list fragment, however after clicking the 1st list item, the main…
-3
votes
3 answers

Cannot cast from FragmentActivity to ListFragment

This error shows up when i do this: This is in the MainActivity: ListView lv = ((ListFragment) getActivity()).getListView(); but if I don't cast it to that the app crashes and I get 01-02 22:35:00.285: E/AndroidRuntime(17289): FATAL EXCEPTION:…
justauser
  • 37
  • 1
  • 8
-3
votes
1 answer

ListFragment is not display Data

I am working on a project where I have to display a list of available Professors for a department. Instead of displaying all professors, I want to allow a student to search professors by Department. As a result, the student will logs in, search for…
Josiane Ferice
  • 909
  • 3
  • 14
  • 27
-5
votes
1 answer

Dynamic listview with dynamic URL and dynamic Text

Hi I having output like following But I need an output like the following image. Here I am having image URLs in an array list, so dynamically it will change image url and also some times some steps will not have images.
-6
votes
1 answer

what is fragment activity in android studio?

I'm new to android. i have huge confusion on handling fragments. i'll be pleased if anyone suggest me to know about handling fragments in android? It'll be very helpful. Thanks in advance.
1 2 3
78
79