java - How do ListActivities work with ListViews in Android? -
As a C # developer, I am trying to get acquainted with Java and more specifically the Android Framework.
I have created some very basic introduction actions, but now I am trying to get and get a list view with 'listed'. I found this sample code:
I do not think I have fully understood the concept of these ideas so far, because at the beginning I thought that the ListActivity class that I created was of some kind of user Will be made in the form - the company that I can replace my listView with just whenever I see the code, it seems as if it is trying to hook in an existing view that confuses me (How do I call this inventory activity from my current activity, and how do I use it with my list view?).
getListView () SetEmptyView (progressbar); Can anyone please explain what's going on? Maybe I've become too The NET pattern is centered and I do not understand the image properly. A ListActivity is an activity that assumes that you have a list with a specific ID with a list view.
Will set a layout. It will then store that scene in a variable so that getListVew () will return it. Actually, a little bit of syntactic sugar to do that you can do yourself with 3 lines of code.
Actually I do not think the value of its use can you use the listview in a regular activity, each code for ListActivity takes 1-3 lines, and if you do not have the problem You give your list name with a different ID or if you decide not to visit any list below the road
Comments
Post a Comment