• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java JazzyHelper类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: getJazzyEffect

import com.twotoasters.jazzylistview.JazzyHelper; //导入依赖的package包/类
/**
 * 获得本地保存的特效:用户设置
 *
 * @return
 */
private JazzyEffect getJazzyEffect() {
    String strKey = getBaseActivity().getSetting(SettingKey.JAZZY_EFFECT, JazzyHelper.STANDARD + "");
    JazzyEffect jazzyEffect = JazzyHelper.valueOf(Integer.valueOf(strKey));
    return jazzyEffect;
}
 
开发者ID:o602075123,项目名称:MyPassword,代码行数:11,代码来源:PasswordListFragment.java


示例17: initView

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


示例18: setupAnimation

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SpelParseException类代码示例发布时间:2022-05-23
下一篇:
Java RopTranslator类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap