picview/src/com/google/android/apps/picview/adapter/MultiColumnImageAdapter.java
private ThumbnailSlotView createNewSlotView(ViewGroup parent) {
    // Inflate a new slot.
    ThumbnailSlotView slot = (ThumbnailSlotView) inflater.inflate(
        R.layout.picture_entry, parent, false);
    LayoutParams layoutParams = slot.getLayoutParams();
    layoutParams.width = slotWidth;
    slot.setLayoutParams(layoutParams);
    slot.setGravity(Gravity.CENTER_HORIZONTAL);
    slot.setId(R.layout.picture_entry);
    return slot;
  }
/**
   * Creates a new slot view.
   * 
   * @param parent
   *          the parent of the created view
   */
Creates a new slot view.

@param parent
the parent of the created view
Creates a new slot view . @param parent the parent of the created view
private ThumbnailSlotView createNewSlotView(ViewGroup parent) {
    ThumbnailSlotView slot = (ThumbnailSlotView) inflater.inflate(
        R.layout.picture_entry, parent, false);
    LayoutParams layoutParams = slot.getLayoutParams();
    layoutParams.width = slotWidth;
    slot.setLayoutParams(layoutParams);
    slot.setGravity(Gravity.CENTER_HORIZONTAL);
    slot.setId(R.layout.picture_entry);
    return slot;
  }
private ThumbnailSlotView createNewSlotView ( ViewGroup parent ) { ThumbnailSlotView slot = ( ThumbnailSlotView ) inflater . inflate ( R . layout . picture_entry , parent , false ) ; LayoutParams layoutParams = slot . getLayoutParams ( ) ; layoutParams . width = slotWidth ; slot . setLayoutParams ( layoutParams ) ; slot . setGravity ( Gravity . CENTER_HORIZONTAL ) ; slot . setId ( R . layout . picture_entry ) ; return slot ; }
Creates a new slot view.
Creates a new slot view .
// Inflate a new slot.