Esempio n. 1
0
 private void buildViews() {
   int i = 0;
   int j = ExpressionUtil.getInstance().getExpressionCnt();
   int k = j / 17;
   if (j % 17 > 0) ;
   for (int m = 1; ; m = 0) {
     int n = k + m;
     while (i < n) {
       int i1 = i * 17;
       int i2 = 17 * (i + 1);
       if (i2 > j) i2 = j;
       List localList = ExpressionUtil.getInstance().getExpressionSubList(i1, i2);
       ExpressionGridView localExpressionGridView = new ExpressionGridView(getContext());
       localExpressionGridView.setEventHandler(this);
       localExpressionGridView.update("setData", localList);
       this.subViews.add(localExpressionGridView);
       i++;
     }
   }
 }
Esempio n. 2
0
 private int getPageCnt() {
   int i = ExpressionUtil.getInstance().getExpressionCnt();
   int j = i / 17;
   if (i % 17 > 0) ;
   for (int k = 1; ; k = 0) return k + j;
 }