You can use listview on other interfaces and checkCodeThe same is true, so I didn't take the adapter and other code on other interfaces.
Copy one copy, or else.
After lunch, I accidentally saw the following code:
Root. addview (mlistview );
Previously, the layoutparams parameter was not passed in. The correct syntax is as follows:
Linearlayout. layoutparams LLP =NewLinearlayout. layoutparams (
Linearlayout. layoutparams. fill_parent,
Linearlayout. layoutparams. fill_parent );
Root. addview (mlistview, LLP );
Or
Linearlayout. layoutparams LLP =NewLinearlayout. layoutparams (
Linearlayout. layoutparams. fill_parent, 0, 1 );
Root. addview (mlistview, LLP );
While root. addview (mlistview), the default value of layoutparams should be
Linearlayout. layoutparams. wrap_context.
In short:
To display the split line at the bottom of the listview, colleagues must meet the following requirements:
1) mfooterdividersenabled must be set to true, and its default value is true.
2) The height of listview must be fill_parent.
For details, refer to the followingArticle:
Http://gundumw100.iteye.com/blog/1169065