안녕하세요.
<WebView
android:id="@+id/readreviewread_webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:focusable="false"
android:focusableInTouchMode="false"
android:longClickable="true"
android:scrollbars="none" />
WebView web = (WebView)findViewById(R.id.readreviewread_webview);
web.getSettings().setBuiltInZoomControls(true);
web.getSettings().setSupportZoom(true);
web.loadUrl("String.format("URL", mStrBoardIdx));
두손가락으로 확대 축소를 하고싶은데요.....
인터넷검색해서 소스를 찾아보면 위의 소스가 될것 같은데, 안됩니다......
좋은하루 되시구요, 답변 부탁 드리겠습니다.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/color_white"
android:orientation="vertical" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/navi_top" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="@string/title_review"
android:textColor="@color/color_white"
android:textSize="@dimen/dimens_top_title" />
</RelativeLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical" >
<WebView
android:id="@+id/readreviewread_webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:longClickable="true"
android:scrollbars="none" />
</LinearLayout>
</LinearLayout>
public class ReadReviewReadActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.read_review_read);
Intent intent = getIntent();
String mStrBoardIdx = intent.getStringExtra("board_key");
String mStrMiIdx = intent.getStringExtra("miIdx");
WebView web = (WebView)findViewById(R.id.readreviewread_webview);
web.getSettings().setBuiltInZoomControls(true);
web.getSettings().setSupportZoom(true);
web.loadUrl("String.format("URL", mStrBoardIdx));
}
}
소스는 이렇습니다.
android:focusable="false"
android:focusableInTouchMode="false"
true 로 바꿔보세요