안드로이드 개발 질문/답변
(글 수 45,052)
웹뷰를 사용하려고 하는데여
디바이스 반정도를 webview로 채워 놓고 거기서만 보게 하고 싶은데
네이버를 들어가라고 하면 화면이 전환 되면서 그냥 전체화면으로 브라우져가 보여지네여
어떻게 하면 제가 지정한 크기로 웹을 볼 수 있을가여?
밑에 소스 적어 놓습니다
// .java
Button webButton;
WebView mWeb;
WebSettings set;
web_text = (EditText)findViewById(R.id.web_text);
webButton = (Button)findViewById(R.id.web_button);
mWeb = (WebView)findViewById(R.id.webview);
set = mWeb.getSettings();
// xml
<WebView
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>




webview 크기를 fill_parent로 지정하셨으니 당연히 다 차서나오겠죠?