Saturday, 19 August 2017

Create Web View


public class WebviewActivity extends AppCompatActivity {

    WebView webView;

    @Override

    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_webview);

        webView=(WebView)findViewById(R.id.webview);

        //webView.loadUrl("https://www.javatpoint.com/");

        String data = "<html><body><h1>Hello, Javatpoint!</h1></body></html>";

        //webView.loadData(data, "text/html", "UTF-8");

        webView.loadUrl("http://www.javatpoint.com/");

    }

}

No comments:

Post a Comment

HOW TO CREATE CIRCLE IMAGE VIEW

Step 1: implementation 'de.hdodenhof:circleimageview:3.0.0' Step 2: <de.hdodenhof.circleimageview.CircleImageView xmlns:ap...