本文整理汇总了Java中com.google.android.apps.dashclock.ui.SwipeDismissListViewTouchListener类的典型用法代码示例。如果您正苦于以下问题:Java SwipeDismissListViewTouchListener类的具体用法?Java SwipeDismissListViewTouchListener怎么用?Java SwipeDismissListViewTouchListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SwipeDismissListViewTouchListener类属于com.google.android.apps.dashclock.ui包,在下文中一共展示了SwipeDismissListViewTouchListener类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.google.android.apps.dashclock.ui.SwipeDismissListViewTouchListener; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTheme(Themes.get(this).getCurrentTheme());
setTitle(R.string.archived_stacks);
setContentView(R.layout.stack_fragment);
emptyTextView = (TextView) findViewById(R.id.empty_textView);
emptyImageView = (ImageView) findViewById(R.id.empty_imageView);
stackList = (ListView) findViewById(R.id.stack_list);
stackList.setChoiceMode(ListView.CHOICE_MODE_NONE);
emptyTextView.setText(R.string.no_archived_stacks);
listAdapter = new ArchiveStackListAdapter(this);
stackList.setAdapter(listAdapter);
stackList.setOnItemClickListener(this);
SwipeDismissListViewTouchListener touchListener = new SwipeDismissListViewTouchListener(stackList, this);
stackList.setOnTouchListener(touchListener);
stackList.setOnScrollListener(touchListener.makeScrollListener());
StackManager.get().addListener(this);
updateEmptyViews();
}
开发者ID:PhaniGaddipati,项目名称:Stacks-Flashcards,代码行数:23,代码来源:ArchivedStacksActivity.java
示例2: onCreate
import com.google.android.apps.dashclock.ui.SwipeDismissListViewTouchListener; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTheme(Themes.get(this).getCurrentTheme());
setContentView(R.layout.session_dialog_activity);
listView = (ListView) findViewById(R.id.session_listView);
listView.setDivider(null);
listView.setAdapter(sessionListAdapter);
listView.setOnItemClickListener(this);
SwipeDismissListViewTouchListener dismissListener = new SwipeDismissListViewTouchListener(listView, this);
listView.setOnTouchListener(dismissListener);
listView.setOnScrollListener(dismissListener.makeScrollListener());
if (getIntent() != null && getIntent().getExtras() != null) {
Stack stack = StackManager.get().getStack(getIntent().getExtras().getString("stack"));
setStack(stack);
}
}
开发者ID:PhaniGaddipati,项目名称:Stacks-Flashcards,代码行数:20,代码来源:SessionActivity.java
注:本文中的com.google.android.apps.dashclock.ui.SwipeDismissListViewTouchListener类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论