标签:
AndroidScreenSlide项目中有几个不错的效果,
一:Card Flip翻页立体效果,二:Screen Slide 左右切换view时候和新加载view呈现效果,
三:Layout Changes添加每一个item效果和删除每一个item效果。
四:Advanced Screen Slide切换viewpager时页面切换动画效果。
本项目来源:https://github.com/xiongwei-git/AndroidScreenSlide
主要代码部分:
首页展示:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// Instantiate the list of samples.
mSamples = new Sample[]{
new Sample(R.string.title_crossfade, CrossfadeActivity.class),
new Sample(R.string.title_card_flip, CardFlipActivity.class),
new Sample(R.string.title_screen_slide, ScreenSlideActivity.class),
new Sample(R.string.title_zoom, ZoomActivity.class),
new Sample(R.string.title_layout_changes, LayoutChangesActivity.class),
new Sample(R.string.title_advanced_screen_slide, AdvancedScreenSlideActivity.class),
};
setListAdapter(new ArrayAdapter<Sample>(this,
android.R.layout.simple_list_item_1,
android.R.id.text1,
mSamples));
}
@Override
protected void onListItemClick(ListView listView, View view, int position, long id) {
// Launch the sample associated with this list position.
startActivity(new Intent(MainActivity.this, mSamples[position].activityClass));
}
AndroidScreenSlide项目切换view动画效果
标签:
原文地址:http://my.oschina.net/u/2461971/blog/521038