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

Java FadingActionBarHelper类代码示例

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

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



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

示例1: onCreate

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    FadingActionBarHelper helper = new FadingActionBarHelper()
        .actionBarBackground(R.drawable.ab_background)
        .headerLayout(R.layout.header)
        .contentLayout(R.layout.activity_listview);
    setContentView(helper.createView(this));
    helper.initActionBar(this);

    ListView listView = (ListView) findViewById(android.R.id.list);
    ArrayList<String> items = loadItems(R.raw.nyc_sites);
    adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, items);
    listView.setAdapter(adapter);
}
 
开发者ID:HsingPeng,项目名称:ALLGO,代码行数:17,代码来源:ListViewActivity.java


示例2: onCreate

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    FadingActionBarHelper helper = new FadingActionBarHelper()
        .actionBarBackground(R.drawable.ab_background)
        .headerLayout(R.layout.header)
        .contentLayout(R.layout.activity_listview)
        .headerOverlayLayout(R.layout.header_overlay);
    setContentView(helper.createView(this));
    helper.initActionBar(this);

    ListView listView = (ListView) findViewById(android.R.id.list);
    ArrayList<String> items = loadItems(R.raw.nyc_sites);
    ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, items);
    listView.setAdapter(adapter);
}
 
开发者ID:HsingPeng,项目名称:ALLGO,代码行数:18,代码来源:HeaderOverlayActivity.java


示例3: onCreate

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setTitle("个人中心");
    setTheme(R.style.AppTheme2);
    getActionBar().setDisplayHomeAsUpEnabled(true);
    FadingActionBarHelper helper = new FadingActionBarHelper()
            .actionBarBackground(R.drawable.ab_background)
            .headerLayout(R.layout.activity_personal_header)
            .contentLayout(R.layout.activity_personal_listview);
    View view = helper.createView(this);
    setContentView(view);
    helper.initActionBar(this);
    ListView listView = (ListView) findViewById(android.R.id.list);
    PersonalCenterAdapter adapter = new PersonalCenterAdapter(this);
    listView.setAdapter(adapter);
}
 
开发者ID:fenjuly,项目名称:Qshp,代码行数:18,代码来源:PersonalCenterActivity.java


示例4: initHelper

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
protected void initHelper() {
	getWindow().requestFeature(WindowCompat.FEATURE_ACTION_BAR_OVERLAY);
	getSupportActionBar().setDisplayHomeAsUpEnabled(true);
	final FadingActionBarHelper helper = new FadingActionBarHelper();
	mUrlImageView = (UrlImageView) View.inflate(this, R.layout.header_url,
			null);
	helper.contentLayout(R.layout.layout_artist);
	helper.actionBarBackground(R.drawable.ab_solid_lastfm);
	helper.headerView(mUrlImageView);

	final View v = helper.createView(this);
	mUrlImageView.getLayoutParams().height = (int) (160 * getResources()
			.getDisplayMetrics().density + 0.5f);
	setContentView(v);
	helper.initActionBar(this);
}
 
开发者ID:razielsarafan,项目名称:lastfm-for-android,代码行数:17,代码来源:AlbumActivity.java


示例5: onAttach

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    mFadingHelper = new FadingActionBarHelper()
            .parallax(false)
            .actionBarBackground(R.drawable.ab_background)
            .headerLayout(R.layout.image_title)
            .contentLayout(R.layout.fragment_news_item);
    if(activity.getActionBar()!=null){
        mFadingHelper.initActionBar(activity);
    }
}
 
开发者ID:SNiels,项目名称:Multi-Mania-app,代码行数:13,代码来源:NewsItemFragment.java


示例6: onAttach

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
@Override
public void onAttach(Activity activity) {
	// TODO 自动生成的方法存根
	super.onAttach(activity);
	
	mFadingHelper = new FadingActionBarHelper()
	.actionBarBackground(R.drawable.ActionBarColor)
       .headerLayout(R.layout.intro_header_light)
       .contentLayout(R.layout.fragment_intro)
       .headerOverlayLayout(R.layout.intro_header_overlay);
	mFadingHelper.initActionBar(activity);
	
}
 
开发者ID:HsingPeng,项目名称:ALLGO,代码行数:14,代码来源:IntroFRAGMENT.java


示例7: onCreate

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    FadingActionBarHelper helper = new FadingActionBarHelper()
        .actionBarBackground(R.drawable.ab_background_light)
        .headerLayout(R.layout.header_light)
        .contentLayout(R.layout.activity_scrollview)
        .lightActionBar(true);
    setContentView(helper.createView(this));
    helper.initActionBar(this);
}
 
开发者ID:HsingPeng,项目名称:ALLGO,代码行数:13,代码来源:LightActionBarActivity.java


示例8: onCreate

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    FadingActionBarHelper helper = new FadingActionBarHelper()
        .actionBarBackground(R.drawable.ab_background)
        .headerLayout(R.layout.header_light)
        .contentLayout(R.layout.activity_scrollview);
    setContentView(helper.createView(this));
    helper.initActionBar(this);
}
 
开发者ID:HsingPeng,项目名称:ALLGO,代码行数:11,代码来源:LightBackgroundActivity.java


示例9: onCreate

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    FadingActionBarHelper helper = new FadingActionBarHelper()
        .actionBarBackground(R.drawable.ab_background)
        .headerLayout(R.layout.header)
        .contentLayout(R.layout.activity_scrollview)
        .parallax(false);
    setContentView(helper.createView(this));
    helper.initActionBar(this);
}
 
开发者ID:HsingPeng,项目名称:ALLGO,代码行数:13,代码来源:NoParallaxActivity.java


示例10: onCreate

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    FadingActionBarHelper helper = new FadingActionBarHelper()
        .actionBarBackground(R.drawable.ab_background)
        .headerLayout(R.layout.header)
        .contentLayout(R.layout.activity_scrollview);
    setContentView(helper.createView(this));
    helper.initActionBar(this);
}
 
开发者ID:HsingPeng,项目名称:ALLGO,代码行数:12,代码来源:ScrollViewActivity.java


示例11: onAttach

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);

    mArguments = getArguments();
    int actionBarBg = mArguments != null ? mArguments.getInt(ARG_ACTION_BG_RES) : R.drawable.ab_background_light;

    mFadingHelper = new FadingActionBarHelper()
        .actionBarBackground(actionBarBg)
        .headerLayout(R.layout.header_light)
        .contentLayout(R.layout.activity_scrollview)
        .headerOverlayLayout(R.layout.header_overlay)
        .lightActionBar(actionBarBg == R.drawable.ab_background_light);
    mFadingHelper.initActionBar(activity);
}
 
开发者ID:HsingPeng,项目名称:ALLGO,代码行数:16,代码来源:SampleFragment.java


示例12: onCreate

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    FadingActionBarHelper helper = new FadingActionBarHelper();
    helper.actionBarBackground(R.drawable.day15_actionbar_bg);
    helper.headerLayout(R.layout.day15_header);
    helper.contentLayout(R.layout.day15_activity_scrollview);

    setContentView(helper.createView(this));
    helper.initActionBar(this);
}
 
开发者ID:Phonbopit,项目名称:30-android-libraries-in-30-days,代码行数:13,代码来源:FadingActionBarActivity.java


示例13: onCreate

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    FadingActionBarHelper helper = new FadingActionBarHelper()
            .actionBarBackground(R.drawable.ab_background)
            .headerLayout(R.layout.header)
            .contentLayout(R.layout.perfrerence_user)
            .lightActionBar(true);
    setContentView(helper.createView(this));
    helper.initActionBar(this);
    getActionBar().setDisplayShowHomeEnabled(false);
    initView();
    initViewData();
}
 
开发者ID:qiugang,项目名称:TianWen,代码行数:15,代码来源:UserInfoActivity.java


示例14: initHelper

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
protected void initHelper() {
	getWindow().requestFeature(WindowCompat.FEATURE_ACTION_BAR_OVERLAY);
	getSupportActionBar().setDisplayHomeAsUpEnabled(true);
	final FadingActionBarHelper helper = new FadingActionBarHelper();
	mUrlImageView = (UrlImageView) View.inflate(this, R.layout.header_url, null);
	helper.contentLayout(R.layout.layout_artist);
	helper.actionBarBackground(R.drawable.ab_solid_lastfm);
	helper.headerView(mUrlImageView);

	final View v = helper.createView(this);
	mUrlImageView.getLayoutParams().height = (int) (160 * getResources().getDisplayMetrics().density + 0.5f);
	setContentView(v);
	helper.initActionBar(this);
}
 
开发者ID:razielsarafan,项目名称:lastfm-for-android,代码行数:15,代码来源:TrackActivity.java


示例15: onCreate

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getActionBar().setIcon(R.drawable.ic_action_hyper);
    getActionBar().setDisplayHomeAsUpEnabled(true);

    if (getIntent() != null) {
        mContent = getIntent().getParcelableExtra("content");
    }

    if (savedInstanceState != null) {
        mContent = getIntent().getParcelableExtra("content");
    }

    mFadingHelper = new FadingActionBarHelper()
            .actionBarBackground(R.drawable.ab_background)
            .headerLayout(R.layout.layout_detail_header)
            .contentLayout(R.layout.activity_detail_music)
            .lightActionBar(true);

    setContentView(mFadingHelper.createView(this));
    ButterKnife.inject(this);
    ButterKnife.inject(this);
    ButterKnife.inject(this);

    mFadingHelper.initActionBar(this);

    initViews();
}
 
开发者ID:hackathon-2014,项目名称:disciples-of-duarte-repo,代码行数:30,代码来源:MusicDetailActivity.java


示例16: onCreate

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
/**
 * ************************************************************************************
 * <p/>
 * Lifecycle Endpoints
 */


@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getActionBar().setIcon(R.drawable.ic_action_hyper);
    getActionBar().setDisplayHomeAsUpEnabled(true);

    if(getIntent() != null){
        mContent = getIntent().getParcelableExtra("content");
    }

    if(savedInstanceState != null){
        mContent = getIntent().getParcelableExtra("content");
    }

    mFadingHelper = new FadingActionBarHelper()
            .actionBarBackground(R.drawable.ab_background)
            .headerLayout(R.layout.layout_detail_header)
            .contentLayout(R.layout.fragment_detail)
            .lightActionBar(true);

    setContentView(mFadingHelper.createView(this));
    ButterKnife.inject(this);

    mFadingHelper.initActionBar(this);

    initViews();
}
 
开发者ID:hackathon-2014,项目名称:disciples-of-duarte-repo,代码行数:35,代码来源:DetailActivity.java


示例17: onCreate

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    FadingActionBarHelper helper = new FadingActionBarHelper()
        .actionBarBackground(R.drawable.ab_background)
        .headerLayout(R.layout.header)
        .contentLayout(R.layout.activity_webview);
    setContentView(helper.createView(this));
    helper.initActionBar(this);

    WebView webView = (WebView) findViewById(R.id.webView);
    webView.setWebViewClient(new WebViewClient());
    webView.loadUrl("http://en.wikipedia.org/wiki/New_York_City");
}
 
开发者ID:ManuelPeinado,项目名称:FadingActionBar,代码行数:16,代码来源:WebViewActivity.java


示例18: onCreate

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    FadingActionBarHelper helper = new FadingActionBarHelper()
        .actionBarBackground(R.drawable.ab_background)
        .headerLayout(R.layout.header)
        .contentLayout(R.layout.activity_short_content);
    setContentView(helper.createView(this));
    helper.initActionBar(this);
}
 
开发者ID:ManuelPeinado,项目名称:FadingActionBar,代码行数:12,代码来源:ShortContentActivity.java


示例19: onAttach

import com.manuelpeinado.fadingactionbar.FadingActionBarHelper; //导入依赖的package包/类
@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);

    mArguments = getArguments();
    int actionBarBg = mArguments != null ? mArguments.getInt(ARG_ACTION_BG_RES) : R.drawable.ab_background_light;

    mFadingHelper = new FadingActionBarHelper()
        .actionBarBackground(actionBarBg)
        .headerLayout(R.layout.header_light)
        .contentLayout(R.layout.activity_scrollview)
        .lightActionBar(actionBarBg == R.drawable.ab_background_light);
    mFadingHelper.initActionBar(activity);
}
 
开发者ID:ManuelPeinado,项目名称:FadingActionBar,代码行数:15,代码来源:SampleFragment.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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