Monday, March 3, 2014

How to override the ListView onMeasure method so that it can calculate the correct height in ScrollView


If that does not consider other methods, only from the rewrite onMeasure consider this a way, experts have urged<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
It seems that you encounter the same problem with me. You are not also want to display the full text and then only display a few lines of text are displayed behind the less I want to write onMeasure mutual exchange
before using ExpandableListView not now few people can answer Q stay out of it

Reply:
@ Override
public void onMeasure (int widthMeasureSpec, int heightMeasureSpec) {
int expandSpec = MeasureSpec.makeMeasureSpec (Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
super.onMeasure (widthMeasureSpec, expandSpec);
}
Reply:
Why is this the method is sometimes reported null pointer, pointing

No comments:

Post a Comment