Scaling will not work, and yes, I need to scroll in both directions.

This is for an Android port of Nethack:

http://www.nethack.org/

For reference, here's an image of the WinCE port:

http://images.google.com/imgres?imgurl=http://freewareppc.com/images/products/games/nethack.gif&imgrefurl=http://freewareppc.com/games/nethack.shtml&usg=__V2gViMypkQ0c-uVhdy-kZnJhC9Q=&h=206&w=168&sz=16&hl=en&start=1&sig2=LE6i0h0F_Y4qJ38HDPfA7g&um=1&tbnid=3nSzvzw93Y2NeM:&tbnh=105&tbnw=86&prev=/images%3Fq%3Dwince%2Bnethack%26hl%3Den%26client%3Dfirefox-a%26rls%3Dorg.mozilla:en-US:official%26sa%3DN%26um%3D1&ei=veq6SpzDFqiQtAPlp6mYCQ

There's a large map, the tiles are 16x16 pixels, and scrolling in both
directions is absolutely required.

This is really something that should be easy in Android, but I have no
idea how to do it.

On Sep 23, 1:04 pm, "Balwinder Kaur (T-Mobile USA)" <balwinder.k...@t-
mobile.com> wrote:
> It would be a matter of debate from the UX folks, and I say this from
> years of prior working at a handset manufacturer. On a small screen,
> the need for  scrolling in both directions is not really that common,
> nor that desirable. I don't have insights on why Android does not
> support scrolling functionality in both directions in a single view/
> widget, but I guess it maybe for the same reason.
>
> That being said, have you solved your current issue of displaying the
> image as you wish to ?
>
> You could also scale your image to fit the screen, but I assume you
> already thought about that.
>
> Take care,
> Balwinder Kaur
> Open Source Development Center
> ·T· · ·Mobile· stick together
>
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Sep 23, 12:07 pm, jsera <gall.blad...@gmail.com> wrote:
>
> > The image is being dynamically created by the app, and so doesn't
> > exist on the web. I don't need network connectivity, or the ability to
> > parse HTML, so a full WebView is overkill.
>
> > I just figure that since WebView has the scrolling functionality I
> > want, and that it seems like that method of should be pretty common,
> > it should exist as a separate component.
>
> > On Sep 22, 11:49 am, "Balwinder Kaur (T-Mobile USA)" <balwinder.k...@t-
>
> > mobile.com> wrote:
> > > You are right. ScrollView only supports vertical scrolling and
> > > HoriontalScrollView supports horizontal scrolling.
>
> > > Since WebView scrolls like you want to it, why don't use it ?
>
> > > WebView w = (WebView)findViewById(R.id.webkit);
> > > w.loadUrl("http://www.android.com/goodies/android_vector.jpg";);
>
> > > Use the url of the image, not a web page.
>
> > > Balwinder Kaur
> > > Open Source Development Center
> > > ·T· · ·Mobile· stick together
>
> > > The views, opinions and statements in this email are those of the
> > > author solely in their individual capacity, and do not necessarily
> > > represent those of T-Mobile USA, Inc.
>
> > > On Sep 22, 5:05 am, jsera <gall.blad...@gmail.com> wrote:
>
> > > > I have a large image, and I'd like to scroll around it like you'd
> > > > scroll around inside a WebView.
>
> > > > This means horizontal, and vertical scrollbars.
>
> > > > Since ScrollView and HorizontalScrollView only have vertical, and
> > > > horizontal  scrollbars respectively, neither of these will do what I
> > > > want. Sticking a HorizontalScrollView inside a ScrollView doesn't
> > > > work, because the horizontal scroll bar disappears when you scroll up.
>
> > > > WebView scrolls exactly like what I want, but I don't want to display
> > > > a web page, just an image created dynamically. There has to be some
> > > > way of doing this without writing an entirely new class.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to