コード例 #1
0
  @Override
  void getLaneForPosition(LaneInfo outInfo, int position, Direction direction) {
    final SpannableItemEntry entry = (SpannableItemEntry) getItemEntryForPosition(position);
    if (entry != null) {
      outInfo.set(entry.startLane, entry.anchorLane);
      return;
    }

    outInfo.setUndefined();
  }
コード例 #2
0
 @Override
 void getLaneForChild(LaneInfo outInfo, View child, Direction direction) {
   super.getLaneForChild(outInfo, child, direction);
   if (outInfo.isUndefined()) {
     getLanes().findLane(outInfo, getLaneSpanForChild(child), direction);
   }
 }