Using notifyDataSetChanged (notifyDataSetInvalidated) and HorizontalListView ()

Label Android DevelopmentcontrolListview
337 people read comments(0) Collection Report

Today in the project to use the level of ListView control HorizontalListView, but also I am looking for an open source HorizontalListView directly in the project to use. I put the HorizontalListView in the Tab can be switched in the use of the time found a small problem: when switching TAB page, update the corresponding adapter data, call the notifyDataSetChanged adapter () method found that the desired effect, after the online check up, just know:

NotifyDataSetInvalidated listview (notifyDataSetChanged) and horizontal (and vertical) usage just opposite listview,NotifyDataSetInvalidated () this method will refresh the listview interface, and NotifyDataSetChanged () this to change the interface.

So when I click on the TAB switch, to update the data, call the adapter.notifyDataSetInvalidated () method to achieve the desired effect.

Guess you're looking for
View comments
* the above user comments only represent their personal views, does not represent the views or position of the CSDN website
    personal data
    • Visit40238 times
    • Integral:One thousand nine hundred and seventy-three
    • Grade
    • Rank:11674th name
    • Original163
    • Reproduced:36
    • Translation:1
    • Comments:9
    Latest comments