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


Java JazzyHelper类代码示例

本文整理汇总了Java中com.twotoasters.jazzylistview.JazzyHelper的典型用法代码示例。如果您正苦于以下问题:Java JazzyHelper类的具体用法?Java JazzyHelper怎么用?Java JazzyHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: setupNavigationDrawer

import com.twotoasters.jazzylistview.JazzyHelper; //导入依赖的package包/类
private void setupNavigationDrawer() {
	mNavDrawerList = (JazzyListView) findViewById(R.id.nav_drawer_listview);
	mNavDrawerLayout = (DrawerLayout) findViewById(R.id.nav_drawer_layout);
	mNavDrawerToggle = new ActionBarDrawerToggle(this, mNavDrawerLayout, R.drawable.ic_drawer,
			R.string.nav_drawer_opened, R.string.nav_drawer_closed);

	mNavDrawerLayout.setDrawerShadow(R.drawable.nav_drawer_shadow, GravityCompat.START);
	mNavDrawerLayout.setDrawerListener(mNavDrawerToggle);

	mNavDrawerList.setDuration(300);
	mNavDrawerList.setShouldOnlyAnimateNewItems(true);
	mNavDrawerList.setTransitionEffect(JazzyHelper.CARDS);
	mNavDrawerList.setOnItemClickListener(this);

	// enable ActionBar app icon to behave as action to toggle nav drawer
	getActionBar().setDisplayHomeAsUpEnabled(true);
	getActionBar().setHomeButtonEnabled(true);
}
 
开发者ID:cdeange,项目名称:QuickLink,代码行数:19,代码来源:LandingActivity.java

示例2: onCreate

import com.twotoasters.jazzylistview.JazzyHelper; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_recyclerview);
    setTitle(getString(getIntent().getIntExtra(MainActivity.EXTRA_TITLE_RES, 0)));

    int itemLayoutRes = getIntent().getIntExtra(MainActivity.EXTRA_ITEM_LAYOUT_RES, R.layout.item);
    boolean isStaggered = getIntent().getBooleanExtra(MainActivity.EXTRA_IS_STAGGERED, false);

    RecyclerView recyclerView = (RecyclerView) findViewById(R.id.list);
    recyclerView.setLayoutManager(createLayoutManager(itemLayoutRes, isStaggered));
    recyclerView.setHasFixedSize(true);
    recyclerView.setAdapter(new SampleRecyclerViewAdapter(ListModel.getModel(), itemLayoutRes, isStaggered));

    jazzyScrollListener = new JazzyRecyclerViewScrollListener();
    recyclerView.setOnScrollListener(jazzyScrollListener);

    if (savedInstanceState != null) {
        mCurrentTransitionEffect = savedInstanceState.getInt(KEY_TRANSITION_EFFECT, JazzyHelper.HELIX);
        setupJazziness(mCurrentTransitionEffect);
    }
}
 
开发者ID:twotoasters,项目名称:JazzyListView,代码行数:23,代码来源:RecyclerViewActivity.java

示例3: initView

import com.twotoasters.jazzylistview.JazzyHelper; //导入依赖的package包/类
@Override
public void initView(View item, int position, int scrollDirection) {
    item.setPivotX(item.getWidth() / 2);
    item.setPivotY(item.getHeight() / 2);
    item.setScaleX(INITIAL_SCALE_FACTOR);
    item.setScaleY(INITIAL_SCALE_FACTOR);
    item.setTranslationY(item.getHeight() / 2 * scrollDirection);
    item.setAlpha(JazzyHelper.OPAQUE / 2);
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:10,代码来源:TiltEffect.java

示例4: setupAnimation

import com.twotoasters.jazzylistview.JazzyHelper; //导入依赖的package包/类
@Override
public void setupAnimation(View item, int position, int scrollDirection, ViewPropertyAnimator animator) {
    animator
        .translationYBy(-item.getHeight() / 2 * scrollDirection)
        .scaleX(1)
        .scaleY(1)
        .alpha(JazzyHelper.OPAQUE);
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:9,代码来源:TiltEffect.java

示例5: setupAnimation

import com.twotoasters.jazzylistview.JazzyHelper; //导入依赖的package包/类
@Override
public void setupAnimation(View item, int position, int scrollDirection,
		ViewPropertyAnimator animator)
{
	animator.setDuration(JazzyHelper.DURATION * DURATION_MULTIPLIER);
	animator.alpha(JazzyHelper.OPAQUE);
}
 
开发者ID:o602075123,项目名称:MyPassword,代码行数:8,代码来源:FadeEffect.java

示例6: initView

import com.twotoasters.jazzylistview.JazzyHelper; //导入依赖的package包/类
@Override
public void initView(View item, int position, int scrollDirection)
{
	item.setPivotX(item.getWidth() / 2);
	item.setPivotY(item.getHeight() / 2);
	item.setScaleX(INITIAL_SCALE_FACTOR);
	item.setScaleY(INITIAL_SCALE_FACTOR);
	item.setTranslationY(item.getHeight() / 2 * scrollDirection);
	item.setAlpha(JazzyHelper.OPAQUE / 2);
}
 
开发者ID:o602075123,项目名称:MyPassword,代码行数:11,代码来源:TiltEffect.java

示例7: setupAnimation

import com.twotoasters.jazzylistview.JazzyHelper; //导入依赖的package包/类
@Override
public void setupAnimation(View item, int position, int scrollDirection,
		ViewPropertyAnimator animator)
{
	animator.translationYBy(-item.getHeight() / 2 * scrollDirection).scaleX(1).scaleY(1)
			.alpha(JazzyHelper.OPAQUE);
}
 
开发者ID:o602075123,项目名称:MyPassword,代码行数:8,代码来源:TiltEffect.java

示例8: initView

import com.twotoasters.jazzylistview.JazzyHelper; //导入依赖的package包/类
@Override
public void initView(View item, int position, int scrollDirection) {
    ViewHelper.setPivotX(item, item.getWidth() / 2);
    ViewHelper.setPivotY(item, item.getHeight() / 2);
    ViewHelper.setScaleX(item, INITIAL_SCALE_FACTOR);
    ViewHelper.setScaleY(item, INITIAL_SCALE_FACTOR);
    ViewHelper.setTranslationY(item, item.getHeight() / 2 * scrollDirection);
    ViewHelper.setAlpha(item, JazzyHelper.OPAQUE / 2);
}
 
开发者ID:cdeange,项目名称:QuickLink,代码行数:10,代码来源:TiltEffect.java

示例9: onCreate

import com.twotoasters.jazzylistview.JazzyHelper; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_list);
    mList = (JazzyListView) findViewById(android.R.id.list);
    mList.setAdapter(new ListAdapter(this, R.layout.item));

    if (savedInstanceState != null) {
        mCurrentTransitionEffect = savedInstanceState.getInt(KEY_TRANSITION_EFFECT, JazzyHelper.HELIX);
        setupJazziness(mCurrentTransitionEffect);
    }
}
 
开发者ID:twotoasters,项目名称:JazzyListView,代码行数:13,代码来源:ListViewActivity.java

示例10: onCreate

import com.twotoasters.jazzylistview.JazzyHelper; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_grid);
    mGrid = (JazzyGridView) findViewById(android.R.id.list);
    mGrid.setAdapter(new ListAdapter(this, R.layout.grid_item));

    if (savedInstanceState != null) {
        mCurrentTransitionEffect = savedInstanceState.getInt(KEY_TRANSITION_EFFECT, JazzyHelper.HELIX);
        setupJazziness(mCurrentTransitionEffect);
    }
}
 
开发者ID:twotoasters,项目名称:JazzyListView,代码行数:13,代码来源:GridViewActivity.java

示例11: initView

import com.twotoasters.jazzylistview.JazzyHelper; //导入依赖的package包/类
@Override
public void initView(View item, int position, int scrollDirection) {
    item.setAlpha(JazzyHelper.TRANSPARENT);
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:5,代码来源:FadeEffect.java

示例12: setupAnimation

import com.twotoasters.jazzylistview.JazzyHelper; //导入依赖的package包/类
@Override
public void setupAnimation(View item, int position, int scrollDirection, ViewPropertyAnimator animator) {
    animator.setDuration(JazzyHelper.DURATION * DURATION_MULTIPLIER)
            .alpha(JazzyHelper.OPAQUE);
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:6,代码来源:FadeEffect.java

示例13: JazzyRecyclerViewScrollListener

import com.twotoasters.jazzylistview.JazzyHelper; //导入依赖的package包/类
public JazzyRecyclerViewScrollListener() {
    mHelper = new JazzyHelper();
}
 
开发者ID:Aparoksha,项目名称:App_2016,代码行数:4,代码来源:JazzyRecyclerViewScrollListener.java

示例14: setList

import com.twotoasters.jazzylistview.JazzyHelper; //导入依赖的package包/类
public void setList(ParseQueryAdapter<BuzzboxPost> Po){
	
	JazzyListView postsView = (JazzyListView) this.findViewById(R.id.postsView);
       postsView.setAdapter(Po);
       postsView.setTransitionEffect(JazzyHelper.CARDS);
}
 
开发者ID:chinmaykrishna,项目名称:Social-Networking-App-where-you-smiling-is-liking-the-post,代码行数:7,代码来源:MainActivity.java

示例15: initView

import com.twotoasters.jazzylistview.JazzyHelper; //导入依赖的package包/类
@Override
public void initView(View item, int position, int scrollDirection)
{
	item.setAlpha(JazzyHelper.TRANSPARENT);
}
 
开发者ID:o602075123,项目名称:MyPassword,代码行数:6,代码来源:FadeEffect.java


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