Android :: Adding Smooth Scrolling Functionality Into Application?
Nov 23, 2010
I would like to add the smooth scrolling functionality into my application. i.e. I have a huge text and I want to scroll it automatically (like in book readers) Could anyone offer any examples of smooth scrolling?
View 2 Replies
Sep 17, 2010
I am working on a application, in which I want to show Image gallery containing full screen images. I have put the gallery in the application successfully. But I am failing to apply some properties to the gallery as per the app design demands. I am using android.widget.Gallery library of android. The things I am failing to do are:
1) I wanna scroll the gallery images one at a time, as now its getting scrolled more than one images in one scroll.
2) And on scrolling the gallery, the images coming next from left/ right should move smothly into the screen and should stop at the screen edges. It should not scroll beyong that in one scroll.
View 2 Replies
View Related
Nov 24, 2010
Probably this question is answered. If it is, could you point me in the right direction then.
I would like to add the smooth scrolling functionality into my application.
i.e. I have a huge text and I want to scroll it automatically (like in book readers)
Could anyone offer any examples of smooth scrolling?
View 1 Replies
View Related
Feb 15, 2009
I am showing a RSS feed in my application using Webview as ListItem and it works great except that it is very sluggish at times. Since I don't know the size of the content then I can't set the height of each Webview and therefore I have the following code (this is the code for a single ListItem)...
But the "wrap_content" causes the Webview to readjust size when scrolling. The scrollbar-indicator of the listview also has problems knowing the size of the complete list so it changes size when scrolling. All this causes a very "jerky" experience when scrolling.
Is there any better way of doing this?
View 2 Replies
View Related
Jan 31, 2010
Following this : http://stackoverflow.com/questions/2125354/best-approach-for-oldschool-2d-zelda-like-game
I got a simple 2D tiles generator working, im reading an int map[100][100] filled with either 1's or 0's and draw tiles according to their tile id, 0 is water, 1 grass.
Im using some basic Numpad control handler, using a camIncr (32.0f), i set the camera position according to the movement :
CODE:.......
In my draw loop, im just drawing enough tiles to fit on my screen, and track the top left tile using cameraOffsetX and cameraOffsetY (its the camera position / tile size )
Im using a GLU.gluOrtho2D for my projection.
Here is the draw loop inside my custom renderer :
CODE:.............
my tiledBackground draw function :
CODE:..............
The waterTile and grassTile .draw function draw a 32x32 textured tile, might post the code if relevant.
Everything is fine, i can move using numpad arrows, and my map 'moves' with me, since im only drawing what i can see, its fast (see http://stackoverflow.com/questions/2129125/android-opengl-es-simple-tile-generator-performance-problem where Aleks pointed me to a simple 'culling' idea)
I would like my engine to 'smooth scroll' now. I've tried tweaking the camIncr variable, the GLU.gluOrtho2D etc, nothing worked.
View 2 Replies
View Related
Jul 14, 2010
I implemented a gallery, and inside it I have many listviews from left to right. For some reason Gallery works great with all views but not with listview. With listview, when scrolling on the gallery, sometimes I get little jumps.
Some notes: The gallery uses an adapter to find out what to show, and then the listview is created based on the adapter
View 2 Replies
View Related
Nov 25, 2009
I have an HTC Hero from Sprint in the US and was curious about the how the Stocks HTC widget scrolls text like a ticker. It is only the 4x1 sized widget that scrolls quotes. As far as I know, homescreen widgets can only use RemoteViews for the layout, which is limited to the following layouts and widgets (from http://developer.android.com/guide/topics/appwidgets/index.html#Creat...
* AbsoluteLayout * FrameLayout * LinearLayout * RelativeLayout * AnalogClock * Button * Chronometer * ImageButton * ImageView * ProgressBar * TextView
Descendants of these classes are not supported.
I know that this could be done in an app with android.widget.scroller, but that can't be used in a homescreen widget. Would this functionality be specific to the Sense UI homescreen capabilities? I guess, my main question is if this can be replicated for a standard Android widget and if so how.
View 4 Replies
View Related
Apr 5, 2010
I want to put "Go" button in android application softkeyboard for search and other related scenarios can any one guide me how to achieve this? with example.any help would be appreciated.
View 3 Replies
View Related
Jun 17, 2010
My friend own a samsung galaxy s(available in Singapore) and i lent it to use.I find it having some lagging issue. Example when clicking application tab and back to home it isn't smooth at all and when i open AMPED(A Singtel application) the phone hang for like 15second and said the application is not responding. Samsung galaxy s should be a better phone compared to hd2 however my friend own a htc hd2 he doesn't have any lagging issue. Any idea why?
View 24 Replies
View Related
Sep 13, 2010
Does anybody know of a metronome app that really works well and has similar functionality to this. Tempo (Metronome with Setlist) Music App | Macworld, but of course works on our much better platform.
View 4 Replies
View Related
Nov 16, 2010
I want to display the images in my Application added to my "raw" folder of the Ecllipse as it gets started.
How do I add those particular images to an Array and rotate the loop untill all the Images are displayed?
View 1 Replies
View Related
Oct 6, 2010
I have been trying for weeks to try and tether my XBL with my Android. I have been trying it wireless type and wired. The wireless type I've been using the WiFi tether app along with the xbl WiFi. When I turn on the WiFi router on the XBL, the Droid tether shows up and connects just fine, however, It will not connect the profile to xbl. Any one have any ideas here ?
The other I've been trying to get to work is doing the wired route and by going into all my settings and changing them over like you would doing the open server deal. I dunno threw the properties and adding the XBL ports. Now the problem I have with this I can change just about every port to one another by port 2 and port 5. Port 2 needs to be 53 TCP / UCP < that one. When I switch to accept it tells me that I have the same ports being used. I've tried this method on a friends computer who is using Windows 7 and it works just fine changing ports wise.
View 12 Replies
View Related
May 3, 2010
I am building an app on android and running into an error and while searching on net, came across your posting on this and changed the eclipse.ini to increase Xms and Xmx params but still this error does not go away. I am using Eclipse IDE for Java with Andrioid SDK 2.1 on Mac OS. Please help or please point me to someone who might know. Btw, this error only happens when i add external jar files (which i need for my project). here are the list of external jar files that i have in my classpath.)
// httpclient-4.0.1.jar from apache
// httpcore -4.0.1.jarfrom apache
// commons-codec-1.3.jar from apache
//commons-logging-1.1.1.jar from apache
// json_simple-1.1.jar from google ........
View 3 Replies
View Related
Jul 22, 2010
In my android application, I create shortcuts by code to some activities within my application. I do this feature by using the broadcast:
intent.setAction("com.android.launcher.action.INSTALL_SHORTCUT");sendBroadcast(intent);
And that's cool, that really work!
Now I would like to do something different: I have seen that some actions can "register" somewhere to be added in the Android menu, when you long press on the Home like this one:
http://www.androidtapp.com/wp-content/uploads/2010/02/UltimateFaves-Add-Home-Screen-Shortcut.jpg
So my main question is the next one:
How is that possible to register for this menu. I guess there is some line to add in the manifest, but cannot see where to do that!
There is a secondary question: once i will have succeed doing that, may I add a different number of shortcuts in my menu ( imagine That I would like to do that for a multi-account twitter client, I would like to see a different for each twitter account in this list.) So the number of shortcut is programmaticaly computed.
View 1 Replies
View Related
Nov 11, 2010
Recently dived into the Android world, buying myself a HTC desire about 2 weeks ago.
So far, I love the setup, features and feel, the only thing I'm a little worried about is a little bit of lag.
I know the phone is renown for its processor speed and RAM, but scrolling through things like my SMS threads, the application list, and Friend Stream it is a bit 'jittery' and a little laggy. Every now and then an application like Facebook or the SMS application will crash on me. And I know I'm a rather fast texter, but when I'm texting sometimes the phone cannot quite keep up with what I'm writing.
I have no unusual applications installed and do not use task killers.
Is this normal? Or might there be some reason why its functioning a little slower than it should.
View 8 Replies
View Related
Jul 17, 2010
I use Gmail for my email, but I find the Email app is easier to use. There is also a Messaging app, but that incorporates texting, etc. I don't want that. I just can't figure out how to add multiple email accounts under the Email app. Under email settings I see where it says default mail account and it shows both of my account, but the front screen doesn't show both accounts?
View 4 Replies
View Related
Nov 24, 2009
I am looking to add controls to adjust screen brightness locally in my app menu but can't seem to figure out how to do it. I have seen examples to max-out or dim brightness but I am looking to add controls so that the user can control and set the brightness level. Does anyone have any examples, tutorials, source code, or just a place to point me in the right direction?
View 3 Replies
View Related
Jul 26, 2010
In my app i have gradient as drawable which i am using as background and i want it to make it look as smooth as possible. After googling and trying by myself i came up with the following. On nexus one if you call only setDither(true) your gradient is still banding so you have to set PixelFormat like this Window.setFormat(PixelFormat.RGBA_8888). But on the other side G1 does not support RGBA_8888 so calling it make the gradient even uglier than before so Window.setFormat(PixelFormat.RGBA_8888) will not work well on devices that don't support it.What is the correct way smooth my gradient on all devices on which my app will run.
View 1 Replies
View Related
Sep 14, 2010
im currently playing around with a Game that architecture is basically like the example 2d Games like JetBoy / LunarLander and so on. But as things now running (and animating continuously) they have kind of "hiccups" when the GC is running. I have done all i can to allocate as much Objects in front. There is nearly nothing that is created "new" besindes some Strings that are used to set the Score and so on. (TextView doesn't take int's =( - So do you have similar Problems that the GC is "lagging" your 2s game ? any solutions ?
View 12 Replies
View Related
Apr 16, 2009
I am using opengl es for images to translate from one position to other. But, the transition is not going in a smoother manner they are just jumping from one position to other. How can I get smooth transition of images? Rightnow I am using glRotatef() and gltranslatef(). Do I need to add anything extra? Please do respond.
View 4 Replies
View Related
Oct 27, 2010
I am working on an porting an application supporting segmented video streaming to Android. For those who are not familiar with segmented streaming, it is when a complete video is divided into multiple segments. Each segment can then, for example, be encoded at different qualities to support different clients.
Anyway, my problem is that I am not able to get a smooth transition between segments. Currently, the only way I have gotten segmented streaming working, is to write the segments into independent, temporary files, and then load each file into the MediaPlayer once the previous has finished. This causes an interruption in playback between each segment, probably due to the I/O involved.
I have looked around for different solutions, among others, playlists and storing the videos directly in memory. However, none seem to work or be supported by Android. Also, I tried creating two MediaPlayer- objects and do something similar to double-buffering by preparing the next segment well ahead of the previous, but it only made the application unstable.
My question is therefore: Does anyone have any hints, tips or examples for how to do smooth transition between video segments? The segments I am working with are independent, so there is no dependency and they can be viewed as X number of independent video files.
View 6 Replies
View Related
May 3, 2010
I want to add a contact just to my phone and not to my gmail account.Whenever I start to add a contact (phone, 208544.menu, +contact, create new contact,) the next thing it forces me to do is to choose an account to create the new contact under and it lists my 3 gmail accounts.I have no option to just put it on the phone.Any ideas here?We do the same thing on the Incredible but it gives us the gmail account and the phone to choose from but not on the Motorola.
View 4 Replies
View Related
Feb 1, 2010
I am drawing a pretty simple scene, with one large texture the about size of the screen (two triangles). I notice that the frame-rate is irregular: in most of cases, a frame finishes in 17 ms. However, in about 1 of 10 times, the frame finishes in 33ms.
My guess is probably some background services need to run. However, the Linux scheduler is biased towards my FG app, so the BG services are usually starved, until they can't take it anymore and they grab the CPU from my app ....
I am seeing stuttering in the animation. Is this due to the irregular frame rate? Should I delay each frame so that all frames are rendered with 33ms frame time? If so, what's the best technique of achieving this?
Is there an API that I can call to guarantee CPU resources for the render thread .... I really hope Android runs on some sort of real time kernel ...
View 7 Replies
View Related
Jul 5, 2010
On iPhone, Mobile Safari is WebKit based and supports hardware-accelerated -webkit-transform CSS properties. To be specific, I use the translate3d() transform.
What alternative is there for the Android browser? I need it to work on Android 1.5.
View 1 Replies
View Related
Aug 26, 2009
I am creating an app that show some histograms off your traveling speed in different time periods (histogram for the last minute, histogram for the last 2 minutes etc.) I would like to have an animation, and have discovered that drawing everything takes around 300-400ms. Which is to long for making my animation smooth, the animation itself is quite simple (2 lines and 2 dots). What I draw every frame right now is 20 antialised strings, size 14, in average ~5chars 8 of these strings will change every second. 1 of the string will change with the animation (this will become 5 strings if there is time).
The main part of the screen, the one showing the histogram data, consist of a lots of squares which needs to be updated every second. (450 squares). The presentation is split into 5 frames in the same view (has to be same view as arrows in one frame might point into another frame). Invalidating only a part off the screen makes almost no difference (it does becomes a bit faster, but i still execute all my drawing stuff). I have tried to add a flag whether or not the main part is dirty, but if I don't draw it, it is cleared. I might be missing something here. One possibility could be to render all the mostly static stuff to a bitmap, and then simply draw the bitmap. That would mean 10 strings only had to rendered on orientation change.
I think it would make sense since the slowest routine is the one drawing all the text. (the following is a typical timing for the drawing routines, accumulated).
V/HMMULTIBAR( 352): 0 - Drawing time: 0 ms V/HMMULTIBAR( 352): 1 - Drawing time: 53 ms V/HMMULTIBAR( 352): 2 - Drawing time: 62 ms V/HMMULTIBAR( 352): 3 - Drawing time: 85 ms V/HMMULTIBAR( 352): 4 - Drawing time: 280 ms V/HMMULTIBAR( 352): 5 - Drawing time: 303 ms
I would really appreciate comments about whether or not offscreen rendering is the way to go, or if there is a simpler way.
View 6 Replies
View Related
Dec 28, 2009
I'm drawing a rect to a surfaceview. Nothing special, just a test like this, in the surfaceview-extended class:
private int mPosX = 0; private Paint mPaint = new Paint(); Code...
the rect just bounces around the screen. I'm watching DDMS, I still see the garbage collector being called, even with this simple draw loop. There is no other application code being executed.
I'm wondering if it's realistic to expect the gc to not be called at all if we take care to not allocate any objects during our draw loops. I'm trying to extend this example to do some smooth animations, but every once in awhile the gc is called and you can see the drawing stutter. Although none of my application code is allocating any new objects, I don't know what the underlying API is doing inside surfaceview etc, and I doubt we can control that. Just wondering if this is not possible, I'd prefer to abandon this game idea up-front if we can't guarantee smooth animation.
View 5 Replies
View Related
Nov 11, 2009
My girlfriend just got an HTC hero and I got a chance to play with it.
Even though it's specs are obviously less than those of the Droid it worked so much smoother, and I just don't understand why. Does android 2.0 just need to go through some growing pains?
View 49 Replies
View Related
Aug 26, 2010
Originally this was posted in the Velocity ROM thread but I'm sure most Ally ROMs will be able to benefit from these fixes:
The following will enable JIT and tweak your windowsmgr to allow for smoother scrolling. Using ADB pull your build.prop:
abd pull /system/build.prop
add this line to the end of the file:
windowsmgr.max_events_per_sec=60
This will enable smoother scrolling.
Next, find the following line to enable jit:
#dalvik.vm.execution-mode=int:jit
and uncomment it by removing the # before it
Save the file and push back to /system/build.prop
reboot and your phone should be a little more responsive
I was having some permission denied errors when pushing the build.prop back via adb, so here's what i did:
(this part is optional, if your phone pushes the build.prop fine, then don't worry about this)
adb shell
su
mount -t refs -o remount,rw /dev/stl5 /system
cd sdcard
busybox cp -R build.prop /system
mount -t rfs -o remount,ro /dev/stl5 /system
sync
reboot
**to those having trouble w/ the busybox command, make sure the build.prop is in the sd card, the sd card is not mounted in the computer, and you are in the adb shell of the phone
also, make sure you are cd into /sdcard/ and can see build.prop in the root of your sdcard with ls then try to
busybox cp -R build.prop /system
alternatively if that doesnt work maybe try adb push build.prop /system/build.prop
Tested on Velocity 0.1.1 but may work with other ROMs.
View 2 Replies
View Related
Aug 5, 2010
Has anyone noticed that the lock screen seems to be a little less smooth than before? I know it's something little but I was curious if I was the only one who noticed this.
View 2 Replies
View Related
Aug 4, 2012
Looking to buy an android tablet such as the tf700, and the only thing holding me back is the browsing experience. Now i had the tf200 on ics and the browser was no where near as smooth. So have things changed at all?
View 3 Replies
View Related