0
我必须在webview中执行它的url加载视图,并在Linearlayout中的两个相对布局我隐藏一个在webview中显示url时,它有垂直和水平滚动,我现在面临的问题在这里是 只有水平滚动只,但我还需要查看它也垂直,问题在图像垂直滚动
这里布局
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_marginTop="5dip" android:layout_marginBottom="5dip"
android:scrollbars="none">
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:id="@+id/jr_lb_view_preview">
<ProgressBar android:id="@+id/jr_lb_content_iv_progress"
android:layout_centerInParent="true" android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminateDrawable="@drawable/pb" />
<ImageView android:id="@+id/jr_lb_content_iv"
android:layout_centerInParent="true" android:layout_width="150dip"
android:layout_height="225dip" android:background="@drawable/border"/>
</RelativeLayout>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:id="@+id/jr_lb_wb_view" android:background="@drawable/border"
android:scrollX="1dip">
<WebView android:id="@+id/jr_lb_view_preview_switcher2"
android:layout_width="308dip" android:layout_height="305dip"
android:background="@drawable/border" android:scrollbars="vertical"
android:scrollbarAlwaysDrawVerticalTrack="true"/>
</RelativeLayout>
</LinearLayout>
活动代码的XML代码
public void onClick(View v) {
preview.setVisibility(View.GONE);
g.setSelection(gPosition);
webview = (WebView) findViewById(R.id.jr_lb_view_preview_switcher2);
webview.getSettings().setBuiltInZoomControls(true);
new Task_Item_Selected().execute();
webview.loadUrl(product_img_large[gPosition]);
webview.setVisibility(WebView.VISIBLE);
preview2.setVisibility(View.VISIBLE);
// applyRotation(0, 0, 90);
}
有人帮我解决这个问题, 提前感谢