本文整理汇总了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;未经允许,请勿转载。 |
请发表评论