Display small portion of HTML file in WebView

by mansur » Wed, 21 Apr 2010 10:39:59 GMT


Sponsored Links
 Hi All,

We have a large HTML which contents 1000's of lines. But we want to
show content of the HTML file that fits a
single screen.  We want provide a '>'  kind of to show the next
contents of the same HTML file.

Our objective is to only display the HTML contents that fits the
screen.Similar to reader application  For user, it seems there are
several pages.

Is there any way in which we can achieve this functionality. Whether
WebView has any function related to full fill the requirement.

Thanks and Regards,
Mansur Agasar

--



Other Threads

1. Multitouch problems on 10 finger's Drawer developed by SDK 2.2

Hi, all:
          We have touch panels for 10.1 inches that support up to ten
fingers and set it on EeePC. We use Android 2.2 SDK to develop a
drawer to show 10 fingers' gesture. But there are some problems
about different finger's id. If we leave fingers in differnet
order, the 2.2 SDK can't decide the right order and pass the wrong
leave event for the drawer. We also can find those problems on
"DevTools
=> Pointer Location" application. Please refer to the following link:
http://www.youtube.com/watch?v=ZFPnjAyZqyo

      Anyone has the same problem with us? Or it's the problem on our
hardware?
Thanks.

-- 

2. How to re-initialize PreferenceActivity ui?

I would like to refresh the ui views when changing the preferences. If
there an elegant way of notifying the views that the preferences has
changed?

I have a custom preference that will reset settings to the default
values. The default values are specified per preference in a
preference.xml.

Reset the preferences is easy:

SharedPreferences prefs = PreferenceManager
    .getDefaultSharedPreferences(getBaseContext());
prefs.edit().clear().commit();
PreferenceManager.setDefaultValues(getBaseContext(), R.xml.settings,
true);

But I would also be able to re-initialize (re-bind) the ui to reflect
the values of the preferences. This is automatically done when
PreferenceActivity is created.

As a work-around I'm starting a new copy of the PreferenceActivity and
closing down the current one with finish().

startActivity(new Intent(getBaseContext(),
SettingsPreferenceActivity.class));
finish();

This works, but is visually ugly as the ui flickers.

Any suggestions that does not involve getting each and every ui view
with getPreferenceScreen().findPreference("key")?




-- 

3. Announcing: San Francisco Game Developer's Workshops!

4. App Not Showing Up for Some Devices (1.5?)

5. MediaStore.Images.Thumbnails sort order

6. IMO X2

7. If Google stops making Nexus One what happens.....