Can I have a scrolling element inside another?

by Romain Guy » Mon, 17 May 2010 15:53:07 GMT


Sponsored Links
 No you can't and it's not a bug. It's on purpose because with a touch
screen nested scrollable elements can be very awkward/difficult to
use.


Don't give your EditText a limit. The whole point of putting it in a
ScrollView is that you don't have to give it a limited size. Just use
wrap_content for the height and no maxLines.

-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support. All such questions should be posted on
public forums, where I and others can see and answer them

--



Can I have a scrolling element inside another?

by mongd » Mon, 17 May 2010 15:59:44 GMT


 Thank you Romain! You saved me =D!!



>


Sponsored Links


Other Threads

1. Launch ContextMenu from ContextMenu

How can I launch a contextmenu from a contextmenu?

I'm trying to replicate the MediaPlayer action that happens when you
long click a song, then click "Add to playlist" in the resulting
contextmenu. When you click that menu item, another contextmenu pops
up with "Add to playlist" as the title, and "Current playlist", "New",
and however-many-playlists-you-have defined after that.

Ken

-- 

2. How to increase FPS (now ~20, desired ~40-50)

Hi Andre,

you should definitely read the "Designing for Performance" document
from:
http://developer.android.com/guide/practices/design/performance.html

I think you might speed up your onDraw() method a little bit this way,
though I think you might not reach more than 30 or 35 FPS.
At first you should eliminate all function calls in your onDraw()
method. I know this is bad code style, but it really is faster. I am
drawing some bitmaps for a project here this way.
Second, you should create local variables for all attributes you use
more than once.
Third and most importantly: Remove unnecessary code. For example, you
call System.currentTimeMillis() relatively often (I think you used
this code for performance measuring, but anyway).

And last but not least: Android comes with a profiler. Try to use
it. :-)


Regards

Marc Reichelt   ||   http://www.marcreichelt.de/



> }

3. no sound from music players even when alsa is fully functional

4. Problem while sending unicode character via SMS

5. Notification sound from file inside the app package ?

6. Timer and Timer Task

7. program's offline installation