Hello folks,

There appears to be a bug in focus handling when a WebView is  
partially overlapping a ListView. I am able to reproduce this problem  
via  a simple change to one of the ApiDemos example.

If you change the file ApiDemos/res/layout/linear_layout_9.xml to be  
as given below, and run the demo "Views/Layouts/LinearLayout/9.Layout  
Weight", this change causes a WebView to be overlaid on top of the  
list such that the list is partially obscured. Now, any mouse motions  
on top of the WebView seem to make their way to the ListView. The  
embedded WebView object never gets focus. for example, one can hold  
the mouse on top of the WebView and cause the ListView (which is  
obscured) to respond to scrolling action. If you replace the WebView  
with a TextView instead, then the TextView intercepts all mouse events  
as expected.

Any thoughts on where this bug lies and potential workarounds will be  
greatly appreciated.

Thanks,
DS.

---linear_layout_9.xml---
<?xml version="1.0" encoding="utf-8"?>
<!--
     Demonstrates a simple linear layout. The layout fills the screen,  
with the
     children stacked from the top.
     -->
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android 
"
     android:orientation="vertical"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent">

     <ListView android:id="@+id/list"
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:layout_weight="1.0" />

     <Button
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:text="@string/linear_layout_9_button" />

        <WebView
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_x="500px"
                android:layout_y="200px"
                android:background="#FFFFFFFF"
                android:clickable="true"
        />

</AbsoluteLayout>
<!--
  * Copyright (C) 2007 Google Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or  
implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  -->




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to