本文整理了Java中android.widget.Gallery.setOnItemSelectedListener()
方法的一些代码示例,展示了Gallery.setOnItemSelectedListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Gallery.setOnItemSelectedListener()
方法的具体详情如下:
包路径:android.widget.Gallery
类名称:Gallery
方法名:setOnItemSelectedListener
暂无
代码示例来源:origin: androidquery/androidquery
public void listen(Gallery gallery){
galleryListener = gallery.getOnItemSelectedListener();
galleryListen = true;
gallery.setOnItemSelectedListener(this);
}
代码示例来源:origin: stackoverflow.com
mGallery.setOnItemSelectedListener(this);
代码示例来源:origin: stackoverflow.com
mGallery.setOnItemSelectedListener(this);
代码示例来源:origin: Wilm0r/giggity
@Override
public void onScrollStateChanged(AbsListView v, int scrollState) {
/* Disable this listener while scrolling to avoid the feedback loop. */
if (scrollState == OnScrollListener.SCROLL_STATE_TOUCH_SCROLL)
tentSel.setOnItemSelectedListener(null);
else if (scrollState == OnScrollListener.SCROLL_STATE_IDLE)
tentSel.setOnItemSelectedListener(tentSelL);
scrolling = scrollState != OnScrollListener.SCROLL_STATE_IDLE;
}
});
代码示例来源:origin: com.googlecode.android-query/android-query
public void listen(Gallery gallery){
galleryListener = gallery.getOnItemSelectedListener();
galleryListen = true;
gallery.setOnItemSelectedListener(this);
}
代码示例来源:origin: stackoverflow.com
gallery.setAdapter(new ImageAdapter(this));
gallery.setOnItemSelectedListener(new OnItemSelectedListener() {
代码示例来源:origin: stackoverflow.com
g.setOnItemSelectedListener(this);
代码示例来源:origin: stackoverflow.com
gallery.setSpacing(0);
gallery.setOnItemSelectedListener(new OnItemSelectedListener() {
代码示例来源:origin: stackoverflow.com
objects.add(getResources().getDrawable(R.drawable.icon));
g.setAdapter(new CustomAdapter(this, objects));
g.setOnItemSelectedListener(new OnItemSelectedListener() {
代码示例来源:origin: stackoverflow.com
g.setOnItemSelectedListener(this);
代码示例来源:origin: stackoverflow.com
g.setOnItemSelectedListener(this);
代码示例来源:origin: stackoverflow.com
g.setAdapter(new ImageAdapter(this));
g.setSpacing(10);
g.setOnItemSelectedListener(this);
代码示例来源:origin: stackoverflow.com
ga.setOnItemSelectedListener(new OnItemSelectedListener() {
代码示例来源:origin: stackoverflow.com
g.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> list, View view, int position, long id) {
代码示例来源:origin: redfish64/TinyTravelTracker
gallery.setOnItemSelectedListener(new OnItemSelectedListener() {
代码示例来源:origin: stackoverflow.com
gallery.setOnItemSelectedListener(this);
代码示例来源:origin: stackoverflow.com
gallery.setOnItemSelectedListener(this);
代码示例来源:origin: it.tidalwave.bluebill/it-tidalwave-bluebill-mobile-android-taxonomy-factsheet
/*******************************************************************************************************************
*
*
******************************************************************************************************************/
@Override
protected void onAttachedToWindow()
{
log.info("onAttachedToWindow()");
super.onAttachedToWindow();
gaThumbnailStrip = (Gallery)findViewById(R.id.gaThumbnailStrip);
ivFullImage = (StillImageViewer)findViewById(R.id.ivFullImage);
tsCaption = (TextSwitcher)findViewById(R.id.tvCaption);
tsSource = (TextSwitcher)findViewById(R.id.tvSource);
tsLicense = (TextSwitcher)findViewById(R.id.tvLicense);
gaThumbnailStrip.setOnItemSelectedListener(itemSelectedListener);
ivFullImage.setFactory(imageViewFactory);
tsCaption.setFactory(textViewFactory);
tsSource.setFactory(textViewFactory);
tsLicense.setFactory(textViewFactory);
}
代码示例来源:origin: Wilm0r/giggity
tentSel.setOnItemSelectedListener(tentSelL);
内容来源于网络,如有侵权,请联系作者删除!