android.webkit.WebViewFragment Java Examples

The following examples show how to use android.webkit.WebViewFragment. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Constants.java    From rss with GNU General Public License v3.0 6 votes vote down vote up
static
void saveInitialConstants(FeedsActivity activity)
{
    s_activity = activity;
    s_resources = activity.getResources();
    s_displayMetrics = s_resources.getDisplayMetrics();
    s_fragmentManager = activity.getFragmentManager();
    s_actionBar = activity.getActionBar();
    s_windowManager = activity.getWindowManager();
    s_eightDp = Math.round(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 8.0F, s_displayMetrics));

    s_fragmentFeeds = (FragmentFeeds) findFragment(R.id.fragment_feeds);
    s_fragmentFavourites = (ListFragmentFavourites) findFragment(R.id.fragment_favourites);
    s_fragmentManage = (ListFragmentManage) findFragment(R.id.fragment_manage);
    s_fragmentSettings = (FragmentSettings) findFragment(R.id.fragment_settings);
    s_fragmentWeb = (WebViewFragment) findFragment(R.id.fragment_web);
    s_fragmentDrawer = (FragmentNavigationDrawer) findFragment(R.id.fragment_navigation_drawer);

    s_drawerLayout = (DrawerLayout) findView(R.id.drawer_layout);
}
 
Example #2
Source File: AboutActivity.java    From xunmi_android with Apache License 2.0 5 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_about);
    actionBar = getActionBar();
    actionBar.setDisplayHomeAsUpEnabled(true);
    aboutWebView = new WebViewFragment();
    if (savedInstanceState == null) {
        getFragmentManager().beginTransaction()
            .add(R.id.container, aboutWebView).commit();
	
    }
}
 
Example #3
Source File: About.java    From iZhihu with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    actionBar.setDisplayHomeAsUpEnabled(true);
    fragWebView = new WebViewFragment();
    getFragmentManager()
            .beginTransaction()
            .replace(android.R.id.content, fragWebView)
            .commit();
}