爱妃科技WebViewFragment | | 爱妃科技
正在加载
请稍等

菜单

红楼飞雪 梦

15526773247

文章

Home android开发 WebViewFragment
Home android开发 WebViewFragment

WebViewFragment

android开发 by

public class

WebViewFragment

extends Fragment

java.lang.Object
   ↳ android.app.Fragment
   ↳ android.webkit.WebViewFragment

类概述


A fragment that displays a WebView.

The WebView is automically paused or resumed when the Fragment is paused or resumed.

概述


[展开]

继承常量
继承自 interface android.content.ComponentCallbacks2

公有构造函数
WebViewFragment()
公有方法
WebView getWebView()

Gets the WebView.
View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

Called to instantiate the view.
void onDestroy()

Called when the fragment is no longer in use.
void onDestroyView()

Called when the WebView has been detached from the fragment.
void onPause()

Called when the fragment is visible to the user and actively running.
void onResume()

Called when the fragment is no longer resumed.
[展开]

继承方法
From class android.app.Fragment

From class java.lang.Object

From interface android.content.ComponentCallbacks

From interface android.content.ComponentCallbacks2

From interface android.view.View.OnCreateContextMenuListener

公有构造函数


public WebViewFragment ()

添加于 API 级别 11

公有方法


public WebView getWebView ()

添加于 API 级别 11

Gets the WebView.

public View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

添加于 API 级别 11

Called to instantiate the view. Creates and returns the WebView.

参数
inflater The LayoutInflater object that can be used to inflate any views in the fragment,
container If non-null, this is the parent view that the fragment’s UI should be attached to. The fragment should not add the view itself, but this can be used to generate the LayoutParams of the view.
savedInstanceState If non-null, this fragment is being re-constructed from a previous saved state as given here.
返回值
  • Return the View for the fragment’s UI, or null.

public void onDestroy ()

添加于 API 级别 11

Called when the fragment is no longer in use. Destroys the internal state of the WebView.

public void onDestroyView ()

添加于 API 级别 11

Called when the WebView has been detached from the fragment. The WebView is no longer available after this time.

public void onPause ()

添加于 API 级别 11

Called when the fragment is visible to the user and actively running. Resumes the WebView.

public void onResume ()

添加于 API 级别 11

Called when the fragment is no longer resumed. Pauses the WebView.

 

17 2015-04

 

我要 分享

 

 

本文 作者

 

相关 文章