当前位置: 首页>>代码示例>>Java>>正文


Java SwingBottomInAnimationAdapter.setAbsListView方法代码示例

本文整理汇总了Java中com.haarman.listviewanimations.swinginadapters.prepared.SwingBottomInAnimationAdapter.setAbsListView方法的典型用法代码示例。如果您正苦于以下问题:Java SwingBottomInAnimationAdapter.setAbsListView方法的具体用法?Java SwingBottomInAnimationAdapter.setAbsListView怎么用?Java SwingBottomInAnimationAdapter.setAbsListView使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.haarman.listviewanimations.swinginadapters.prepared.SwingBottomInAnimationAdapter的用法示例。


在下文中一共展示了SwingBottomInAnimationAdapter.setAbsListView方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onCreate

import com.haarman.listviewanimations.swinginadapters.prepared.SwingBottomInAnimationAdapter; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
	// TODO Auto-generated method stub
	super.onCreate(savedInstanceState);
	initMenu();

	setContentView(R.layout.activity_sgv);
	setTitle("StaggridView");
	initData();
	mGridView = (StaggeredGridView) findViewById(R.id.grid_view);
	mAdapter = new StaggridViewAdapter(this, mData);

	animationAdapter = new SwingBottomInAnimationAdapter(mAdapter);
	animationAdapter.setAbsListView(mGridView);
	mGridView.setAdapter(animationAdapter);
	mGridView.setOnScrollListener(scrollListener);
}
 
开发者ID:qndroid,项目名称:AndroidOpenSource,代码行数:18,代码来源:StaggridViewActivity.java

示例2: setView

import com.haarman.listviewanimations.swinginadapters.prepared.SwingBottomInAnimationAdapter; //导入方法依赖的package包/类
private void setView() {
	listView = (ListView)getView().findViewById(R.id.listView_unread);
	mPullToRefreshAttacher = ((UnreadACTIVITY)getActivity())
               .getPullToRefreshAttacher();
       mPullToRefreshAttacher.addRefreshableView(listView, this);
       
       UnreadcardsAdapter = new UnreadCardsAdapter(getActivity(),unreadDate);
	swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(UnreadcardsAdapter);
	swingBottomInAnimationAdapter.setInitialDelayMillis(300);
	swingBottomInAnimationAdapter.setAbsListView(listView);
	listView.setAdapter(swingBottomInAnimationAdapter);
       
	listView.setOnItemClickListener(new OnItemClickListener() {   
		@Override
		public void onItemClick(AdapterView<?> arg0, View arg1,
				int arg2, long arg3) {
			// TODO 点击方法
			unreadLogic.setRead(UnreadcardsAdapter.getItem(arg2));
			arg1.setBackgroundResource(R.color.transparent_yellow);
			doAction(UnreadcardsAdapter.getItem(arg2));

		}
       });
}
 
开发者ID:HsingPeng,项目名称:ALLGO,代码行数:25,代码来源:UnreadFRAGMENT.java

示例3: onCreate

import com.haarman.listviewanimations.swinginadapters.prepared.SwingBottomInAnimationAdapter; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_googlecards);

	ListView listView = (ListView) findViewById(R.id.activity_googlecards_listview);

	mGoogleCardsAdapter = new GoogleCardsAdapter(this);
	SwingBottomInAnimationAdapter swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(new SwipeDismissAdapter(mGoogleCardsAdapter, this));
	swingBottomInAnimationAdapter.setInitialDelayMillis(300);
	swingBottomInAnimationAdapter.setAbsListView(listView);

	listView.setAdapter(swingBottomInAnimationAdapter);

	mGoogleCardsAdapter.addAll(getItems());
}
 
开发者ID:HsingPeng,项目名称:ALLGO,代码行数:17,代码来源:GoogleCardsActivity.java

示例4: onCreate

import com.haarman.listviewanimations.swinginadapters.prepared.SwingBottomInAnimationAdapter; //导入方法依赖的package包/类
@SuppressLint("InlinedApi")
@Override
protected void onCreate(Bundle savedInstanceState) {
	if (Build.VERSION.SDK_INT >= 19) {
		getWindow().addFlags(android.view.WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
	}
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_gridview);

	GridView gridView = (GridView) findViewById(R.id.activity_gridview_gv);
	SwingBottomInAnimationAdapter swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(new MyAdapter(this, getItems()));
	swingBottomInAnimationAdapter.setAbsListView(gridView);
	swingBottomInAnimationAdapter.setInitialDelayMillis(300);
	gridView.setAdapter(swingBottomInAnimationAdapter);

	getSupportActionBar().setDisplayHomeAsUpEnabled(true);
}
 
开发者ID:HsingPeng,项目名称:ALLGO,代码行数:18,代码来源:GridViewActivity.java

示例5: onCreate

import com.haarman.listviewanimations.swinginadapters.prepared.SwingBottomInAnimationAdapter; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);

	setContentView(R.layout.drawer_layout);

	mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
	mDrawer = (ListView) findViewById(R.id.start_drawer);
	contentListView = (ListView) findViewById(R.id.activity_googlecards_listview);

	mDrawerLayout.setDrawerListener(new DemoDrawerListener());
	mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow,
			GravityCompat.START);

	mDrawer.setAdapter(new ArrayAdapter<String>(this,
			R.layout.drawer_layout_item, Constant.TITLES));
	mDrawer.setOnItemClickListener(new DrawerItemClickListener());
	mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout,
			R.drawable.ic_drawer, R.string.drawer_open,
			R.string.drawer_close);

	bottonInAdapter = new ListViewAdapter(this);
	bottonInAdapter.addAll(getItems());
	animationAdapter = new SwingBottomInAnimationAdapter(bottonInAdapter);
	animationAdapter.setAbsListView(contentListView);
	contentListView.setAdapter(animationAdapter);
}
 
开发者ID:qndroid,项目名称:AndroidOpenSource,代码行数:28,代码来源:DrawerLayoutActivity.java


注:本文中的com.haarman.listviewanimations.swinginadapters.prepared.SwingBottomInAnimationAdapter.setAbsListView方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。