Tôi là một ứng dụng Android có hộp văn bản để tìm kiếm, một số nút, xem web (1 hiển thị 2 ẩn) và tiếp thị AdMob. ứng dụng chỉ tìm kiếm trên một số trang web đặc biệt và nó hoạt động tốt trên trình mô phỏng, thiết bị Samsung Galaxy. nhưng tôi đã gặp vấn đề với HTC One X (không biết về các mẫu HTC khác).HTC One X - Webview trở nên trắng/trống sau khi chạm
Vấn đề là, khi bạn nhấp vào nút tìm kiếm, chế độ xem web sẽ tải trang. sau đó "đôi khi" khi bạn cố chạm vào ngay cả khi cuộn, chế độ xem web chỉ trở lại vùng trắng hoàn toàn với các thanh cuộn. điều này xảy ra đặc biệt sau khi làm mới quảng cáo. thậm chí đôi khi nền và vùng văn bản của quảng cáo hoàn toàn trở thành màu trắng - cũng không thể đọc được. trên quảng cáo chỉ mũi tên màu xanh lam và hình ảnh cuộc gọi điện thoại màu xanh luôn hiển thị!
có ai có bất kỳ vấn đề nào như thế này và giải pháp nào không? cảm ơn trước.
đây là xml bố trí của tôi:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ffffff"
android:orientation="vertical" >
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/layoutDashboard"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:background="@drawable/border_shape"
android:orientation="vertical"
android:paddingTop="1sp" >
<EditText
android:id="@+id/editxtKeyword"
android:layout_width="fill_parent"
android:layout_height="43dp"
android:layout_marginLeft="1dp"
android:layout_marginRight="1dp"
android:layout_marginTop="2dp"
android:ems="10"
android:hint="@string/editxtKeyword_hint"
android:singleLine="true" >
</EditText>
<HorizontalScrollView
android:id="@+id/horizontalScrollView1"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_gravity="center_vertical"
android:layout_weight="0.30"
android:paddingBottom="2dp"
android:paddingLeft="1dp"
android:scrollbars="none" >
<LinearLayout
android:id="@+id/layoutButtons"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_gravity="center_vertical"
android:layout_marginTop="0dp"
android:layout_marginBottom="1dp"
android:layout_marginLeft="1dp"
android:layout_marginRight="1dp"
android:orientation="horizontal" >
<
<Button
android:id="@+id/btnAk"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_margin="1dp"
android:background="@drawable/custom_button_shape"
android:text="asd" />
<Button
android:id="@+id/btnCm"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_margin="1dp"
android:background="@drawable/custom_button_shape"
android:text="csm" />
</LinearLayout>
</HorizontalScrollView>
</LinearLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<WebView
android:id="@+id/webV"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/linlaylay1"
android:visibility="visible" />
<WebView
android:id="@+id/webVAnalytics"
android:layout_width="1dp"
android:layout_height="0dp"
android:visibility="invisible" />
<WebView
android:id="@+id/WebVSahibinden"
android:layout_width="1dp"
android:layout_height="0dp"
android:visibility="invisible" />
<LinearLayout
android:id="@+id/linlaylay1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_margin="0dp"
android:orientation="vertical"
android:padding="0dp" >
<com.google.ads.AdView
android:id="@+id/adViewSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|top"
ads:adSize="BANNER"
ads:adUnitId="a123123"
ads:loadAdOnCreate="true"
ads:testDevices="TEST_EMULATOR" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/layoutProgress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|center_horizontal"
android:layout_marginBottom="50dp"
android:layout_marginTop="5dp"
android:background="@drawable/progress_shape"
android:padding="2dp"
android:visibility="invisible" >
<TextView
android:id="@+id/lblLoading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="2dp"
android:text="@string/msg_loading"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#000000" />
<ImageButton
android:contentDescription="@string/dialog_cancel"
android:id="@+id/btnStop"
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@drawable/stop" />
</LinearLayout>
</FrameLayout>
không nhìn lại, hãy nhìn vào phía trước! có một số lần xuất hiện cho lỗi. Nhưng HTC phát hành các thiết bị mới, và vấn đề không xảy ra trong các thiết bị này. – Yaya