Search in sources :

Example 11 with FadingActionBarHelper

use of com.manuelpeinado.fadingactionbar.FadingActionBarHelper in project FadingActionBar by ManuelPeinado.

the class SampleFragment method onAttach.

@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);
}
Also used : FadingActionBarHelper(com.manuelpeinado.fadingactionbar.FadingActionBarHelper)

Example 12 with FadingActionBarHelper

use of com.manuelpeinado.fadingactionbar.FadingActionBarHelper in project FadingActionBar by ManuelPeinado.

the class ShortContentActivity method onCreate.

@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);
}
Also used : FadingActionBarHelper(com.manuelpeinado.fadingactionbar.FadingActionBarHelper)

Example 13 with FadingActionBarHelper

use of com.manuelpeinado.fadingactionbar.FadingActionBarHelper in project FadingActionBar-Native by ManuelPeinado.

the class NoParallaxActivity method onCreate.

@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);
}
Also used : FadingActionBarHelper(com.manuelpeinado.fadingactionbar.FadingActionBarHelper)

Example 14 with FadingActionBarHelper

use of com.manuelpeinado.fadingactionbar.FadingActionBarHelper in project FadingActionBar-Native by ManuelPeinado.

the class ScrollViewActivity method onCreate.

@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);
}
Also used : FadingActionBarHelper(com.manuelpeinado.fadingactionbar.FadingActionBarHelper)

Example 15 with FadingActionBarHelper

use of com.manuelpeinado.fadingactionbar.FadingActionBarHelper in project FadingActionBar by ManuelPeinado.

the class WebViewActivity method onCreate.

@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");
}
Also used : FadingActionBarHelper(com.manuelpeinado.fadingactionbar.FadingActionBarHelper) WebView(android.webkit.WebView) WebViewClient(android.webkit.WebViewClient)

Aggregations

FadingActionBarHelper (com.manuelpeinado.fadingactionbar.FadingActionBarHelper)15 ListView (android.widget.ListView)3 ArrayAdapter (android.widget.ArrayAdapter)2 WebView (android.webkit.WebView)1 WebViewClient (android.webkit.WebViewClient)1