세상이야기

안드로이드 웹보기 예제 URL

쿠카곰돌이 2017. 3. 23. 17:49
반응형

http://www.viralandroid.com/2015/08/simple-android-webview-example.html



오류

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

WebView myWebView = (WebView)
findViewById(R.id.myWebView);
myWebView.loadUrl("http://www.viw.co.kr");



<WebView
android:id="@+id/myWebView"
android:layout_width="375dp"
android:layout_height="400dp"
tools:layout_editor_absoluteX="7dp"
tools:layout_editor_absoluteY="55dp"
xmlns:android="http://schemas.android.com/apk/res/android"/>


반응형