Пример #1
0
 /** Initialise ViewPager */
 private void intializeViewPager(final RouteNode N) {
   Label L = N.get_label();
   if (L != null) {
     final int line_label_int = L.get_line_label_int();
     final int selection_line = line_label_int - START_LINE_INDEX;
     final int selection_sharp = L.is_sharp() ? L.get_letterIntrinsic() : 0;
     intializeVP(selection_line, selection_sharp);
   } else {
     intializeVP(0, 0);
   }
 }
Пример #2
0
 private void intializeOtherInfo(RouteNode rn) {
   TextView v = (TextView) findViewById(R.id.radius_bar);
   v.setText(rn.get_cable_radius() + " (cm)");
 }