android.widget.Gallery.setSpacing()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(131)

本文整理了Java中android.widget.Gallery.setSpacing()方法的一些代码示例,展示了Gallery.setSpacing()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Gallery.setSpacing()方法的具体详情如下:
包路径:android.widget.Gallery
类名称:Gallery
方法名:setSpacing

Gallery.setSpacing介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

setContentView(R.layout.display);
Gallery cf=(Gallery)this.findViewById(R.id.Gallery);
cf.setSpacing(20);
cf.setAdapter(imageAdapter);
cf.setAnimationDuration(1500);

代码示例来源:origin: stackoverflow.com

gallery.setSpacing(0);

代码示例来源:origin: stackoverflow.com

class GalleryContentFactory implements TabContentFactory{
  private ImageAdapter imageAdapter;
  public GalleryContentFactory(ImageAdapter imageAdapter){
    this.imageAdapter = imageAdapter;
  }
  public View createTabContent(String tag){
    Gallery sampleGallery = new Gallery(getApplicationContext());
    sampleGallery.setLayoutParams(new ViewGroup.LayoutParams(
      ViewGroup.LayoutParams.FILL_PARENT,
      ViewGroup.LayoutParams.WRAP_CONTENT));
    sampleGallery.setGravity(Gravity.FILL_VERTICAL);
    sampleGallery.setSpacing(5);
    sampleGallery.setAdapter(imageAdapter);
    sampleGallery.setSelection(1);
    return sampleGallery;
  }
}

代码示例来源:origin: stackoverflow.com

Gallery g=(Gallery)findViewById(R.id.gallery);
g.setAdapter(new ImageAdapter(this));
 g.setSpacing(10);
 g.setOnItemSelectedListener(this);

代码示例来源:origin: stackoverflow.com

gallery.setSpacing(1);
gallery.setAdapter(new GalleryImageAdapter(this));

代码示例来源:origin: redfish64/TinyTravelTracker

gallery.setSpacing((int) Util.convertDpToPixel(10, this.getActivity()));

代码示例来源:origin: redfish64/TinyTravelTracker

gallery.setSpacing((int) Util.convertDpToPixel(10, this));

代码示例来源:origin: Wilm0r/giggity

tentSel.setSpacing(0);
tentSel.setBackgroundResource(R.color.primary);
app.setShadow(tentSel, true);

相关文章