Saturday, February 22, 2014
Familiar friends into listview control
1.listview how to remove the dividing lines have tried a lot of answers online no effect. By code setDividerHeight (0) and setDivider (null),,, set DividerHeight and setDivider in xml, using android:!!! FooterDividersEnabled = "false" do not work Does anyone know what the problem is
After 2.Listview each refresh listview's always jump to the top, but also rolled through the bottom of the scroll bar to see the data.
There is no way to update the data directly indicate which rows of data rather than returning to listview top! ! ! !
Find the code! ! ! ! ! ! Seeking ideas ah! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Divider inside layout configuration files, you do go in a transparent picture settings will not see the line.
This offset with scrollBy can not return to the top.
Reply:
With setDividerHeight (-1), update ListView with. NotifyDatasetChanged () will not be coming to an end and roll
Reply:
1.diver = # 00000000
2.adapter .. notifyDatasetChanged ()
Reply:
Decisive collection!
Reply:
I used adapter.notifyDatasetChanged () completed the top listview
not returnsetDividerHeight (-1) or no effect is estimated to be a problem with the layout of each item of my background is something like a white picture frame line is estimated that this background frame line
No comments:
Post a Comment