本文整理汇总了Java中com.haarman.listviewanimations.swinginadapters.prepared.SwingBottomInAnimationAdapter类的典型用法代码示例。如果您正苦于以下问题:Java SwingBottomInAnimationAdapter类的具体用法?Java SwingBottomInAnimationAdapter怎么用?Java SwingBottomInAnimationAdapter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SwingBottomInAnimationAdapter类属于com.haarman.listviewanimations.swinginadapters.prepared包,在下文中一共展示了SwingBottomInAnimationAdapter类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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));
}
});
}
示例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());
}
示例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);
}
示例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);
}
示例6: setBottomAdapter
import com.haarman.listviewanimations.swinginadapters.prepared.SwingBottomInAnimationAdapter; //导入依赖的package包/类
private void setBottomAdapter() {
AnimationAdapter animAdapter = new SwingBottomInAnimationAdapter(mAdapter);
animAdapter.setAbsListView(getListView());
getListView().setAdapter(animAdapter);
}
示例7: setBottomRightAdapter
import com.haarman.listviewanimations.swinginadapters.prepared.SwingBottomInAnimationAdapter; //导入依赖的package包/类
private void setBottomRightAdapter() {
AnimationAdapter animAdapter = new SwingBottomInAnimationAdapter(new SwingRightInAnimationAdapter(mAdapter));
animAdapter.setAbsListView(getListView());
getListView().setAdapter(animAdapter);
}