FrameLayout and WebView

by Jell » Tue, 24 Jun 2008 16:13:41 GMT

Sponsored Links

I have been trying to implement the demo API "3d Transition" to switch
between a custom View of mine and a WebView, and it's working fine,
but while scrolling on the WebView, the parts of the WebView that was
not on screen at the first place is replaced by a blanck...

It's just as if that was the FrameLayout that was scrolling instead of
the WebView.

I used the same code that is in the classes "" and
"", only changing the Views types.

Here is my XML file:

        xmlns:android="" ;
        android:id="@+id/container" android:layout_width="fill_parent"
        android:layout_height="fill_parent" android:scrollbars="none">
        <WebView android:id="@+id/imwebview"
                android:visibility="gone" />
        < android:id="@+id/imview"
                android:layout_height="fill_parent" />

Could you give me some advice?


FrameLayout and WebView

by Jell » Wed, 25 Jun 2008 10:07:39 GMT

 After looking closer, it seems that applying an animation to the
FrameLayout disable the WebView's scroll animation...


Sponsored Links

FrameLayout and WebView

by Jell » Wed, 25 Jun 2008 12:16:24 GMT

 Ok i found a solution but it does not please me.

I encapsulate the WebView within a LinearLayout and I apply the
animation to the linear layout instead of the WebView...

If you have something less dirty, let me know!


Other Threads

1. market://details not working?

Apparently, I supposed to be able to open the Market page of my app by
querying an intent with an URL like:


where <app_id> seems to be the package name:

However, while this seems to indeed open the Market app with the
details activity, it always gives me "A Server error occured".

I'm trying both launching the intent through code, as well as on an
adb shell as, say:

am start "market://details?id=com.NamcoNetworks.PacMan"

Neither works.

Any ideas?


2. question about sensor, orientationListener and light sensor

Hi all:

I studying set rotation by sensor now. I modify
SCREEN_ORIENTATION_SENSOR. So OrientationListenerwill be enabled
at initial time. When enable mOrientationListener, sensorManager
should register a listener by registerListener and retuen true. But it
return false. I traced the code in and found I do
not have a sensorList.
There are some questions:
1.How can I build up a sensor list (or I should ask : How can I init
SensorManager or SensorService)?
2.When enable mOrientationListener, there is a parameter :
SENSOR_ACCELEROMETER , is this parameter used for rotation detector?
What functin is SENSOR_ORIENTATION used for?.
3.Does android support SENSOR_LIGHT? If I want add light sensor, how
should I do?

Thanks a lot

3. Great Android Market Article

4. Ilegal

5. How to track memory consumption? (Bitmaps)

6. Question about path to take

7. How to set default orientation to landscape mode as part of build?