Пример #1
0
 @Override
 protected void onLayout(boolean changed, int l, int t, int r, int b) {
   super.onLayout(changed, l, t, r, b);
   if (changed && cells.size() > 0) {
     int size = (r - l) / 7;
     for (CheckableLayout cell : cells) {
       cell.getLayoutParams().height = size;
     }
   }
 }