public class OakWebViewFragment
extends android.support.v4.app.Fragment
Modifier and Type | Class and Description |
---|---|
static class |
OakWebViewFragment.BundleBuilder |
Modifier and Type | Field and Description |
---|---|
static int |
PROVIDED_LAYOUT |
android.webkit.WebView |
webView |
Constructor and Description |
---|
OakWebViewFragment() |
Modifier and Type | Method and Description |
---|---|
void |
back() |
boolean |
canGoBack() |
boolean |
canGoForward() |
void |
forward() |
static OakWebViewFragment |
getInstance(android.os.Bundle arguments) |
static OakWebViewFragment |
getInstance(String url) |
void |
onCreate(android.os.Bundle savedInstanceState) |
void |
onCreateOptionsMenu(android.view.Menu menu,
android.view.MenuInflater inflater) |
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
boolean |
onOptionsItemSelected(android.view.MenuItem item) |
void |
onResume() |
void |
onViewCreated(android.view.View view,
android.os.Bundle savedInstanceState) |
void |
refresh() |
void |
setFadeControls(boolean fadeControls)
Sets whether buttons fade out after touch
|
void |
setFadeTimeout(long fadeTimeout)
Sets time in seconds for how long after touch buttons fade out
|
void |
setMaximumAlpha(float maxAlpha)
Sets maximum alpha when buttons fade in
|
void |
setMinimumAlpha(float minAlpha)
Set's minimum alpha when buttons fade out
|
void |
setOpenInBrowserEnabled(boolean openInBrowserEnabled)
Set Whether a "open in browser" option is shown in menu.
|
void |
setRefreshInMenuEnabled(boolean refreshInMenuEnabled) |
void |
setShowControls(boolean showControls)
Sets whether WebView should show controls
|
dump, equals, getActivity, getArguments, getChildFragmentManager, getFragmentManager, getId, getLayoutInflater, getLoaderManager, getParentFragment, getResources, getRetainInstance, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isVisible, onActivityCreated, onActivityResult, onAttach, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateContextMenu, onDestroy, onDestroyOptionsMenu, onDestroyView, onDetach, onHiddenChanged, onInflate, onLowMemory, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onSaveInstanceState, onStart, onStop, onViewStateRestored, registerForContextMenu, setArguments, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setRetainInstance, setTargetFragment, setUserVisibleHint, startActivity, startActivityForResult, toString, unregisterForContextMenu
public static final int PROVIDED_LAYOUT
public android.webkit.WebView webView
public void setFadeControls(boolean fadeControls)
fadeControls
- whether to fade controls after inactivitypublic void setShowControls(boolean showControls)
showControls
- whether to show controlspublic void setFadeTimeout(long fadeTimeout)
fadeTimeout
- timeout for fade in secondspublic void setMaximumAlpha(float maxAlpha)
maxAlpha
- maximum alpha for controls.public void setMinimumAlpha(float minAlpha)
minAlpha
- minimum alpha for controlspublic void setOpenInBrowserEnabled(boolean openInBrowserEnabled)
openInBrowserEnabled
- whether to open links in device default browserpublic void setRefreshInMenuEnabled(boolean refreshInMenuEnabled)
public void back()
public boolean canGoBack()
public boolean canGoForward()
public void forward()
public void refresh()
public static OakWebViewFragment getInstance(String url)
public static OakWebViewFragment getInstance(android.os.Bundle arguments)
public void onCreate(android.os.Bundle savedInstanceState)
onCreate
in class android.support.v4.app.Fragment
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
onCreateView
in class android.support.v4.app.Fragment
public void onViewCreated(android.view.View view, android.os.Bundle savedInstanceState)
onViewCreated
in class android.support.v4.app.Fragment
public void onResume()
onResume
in class android.support.v4.app.Fragment
public void onCreateOptionsMenu(android.view.Menu menu, android.view.MenuInflater inflater)
onCreateOptionsMenu
in class android.support.v4.app.Fragment
public boolean onOptionsItemSelected(android.view.MenuItem item)
onOptionsItemSelected
in class android.support.v4.app.Fragment
Copyright © 2011–2014. All rights reserved.