示例#1
0
 /** Updates view. Rebuilds items and label if necessary, recalculate items sizes. */
 private void updateView() {
   if (rebuildItems()) {
     calculateLayoutWidth(getWidth(), MeasureSpec.EXACTLY);
     layout(getWidth(), getHeight());
   }
 }
示例#2
0
 @Override
 protected void onLayout(boolean changed, int l, int t, int r, int b) {
   layout(r - l, b - t);
 }