Android :: Graphics

Feb 26, 2010

I have rectangle white box. on cliking the rectangle I will draw a toolbar beneath the box and also call relayout to accomodate the toolbar ( size+100) ( i used surfaceview and in secondary thread i draw the toolbar) on click again on rectangle box it will disappear the toolbar and also has to resize the layout to original size (ie size-100) this is where I get stuck. I can disappear the toolbar however I cant call relayout either from secondary thread (says cant call from secondary thread). So I created a while loop in onlayout( this is where i create a thread to draw the toolbar) if i call requestlayout after while loop ends it doesnt do anything it doesnt call onmeasure etc.

Android :: graphics


Games :: Best Game/graphics Demo To Show Off Android Graphics Engine

Mar 31, 2009

I want to show off how good opengl es can display on my G1. Does anyone know a game with good 3D graphics that I should install for this?

View 13 Replies View Related

Android :: 2d Graphics

Jan 14, 2010

I created a 2d game in java that runs as an applet, and i am now trying to translate this over to the android. As the android doesnt used paint() methods, i am thinking that i will have to import images of the game instead of drawing it, but i cannot find out how to do this. Anybody know how to add images to the folder and call them in the app? Also, how can i call a screen repaint() in the android?

View 2 Replies View Related

Android :: Use Graphics

May 16, 2009

I want use the methods in android.graphics to draw one board (board chess,)

View 2 Replies View Related

Android :: Way To Add X-graphics In Editbox

Oct 27, 2010

Is there any way to add the x-graphics in the android Editbox like the of iPhone.So that by clicking on that x graphic it can clear all the values in the Editbox.Is there any way to listen weather i touch a specific part of an edit text

View 1 Replies View Related

Android :: Programs Using Graphics

Sep 1, 2009

I want to do some programs using graphics can anyone send me sample programs about graphics package

View 5 Replies View Related

Android :: Mix 2D Graphics With Layouts

Apr 26, 2009

I'd like to build an activity that is mixing layouts with 2D graphics. So for example, would like to introduce an edittext with an integer value and based on that value the size of a circle is dynamically adjusted and drawn. Any idea how to do this?

For plain graphics I am using this approach here - but how can it be expanded to cover Android layouts (buttons, editboxes, textviews, radiobuttons, etc.)?

CODE:..............

View 2 Replies View Related

Android :: Specs For Graphics

Aug 2, 2010

1. What size should graphics intended to promote your app in the Market be designed for?

2. What about the larger graphics that depict screenshots of the app in the Market?

3. What size should app icons for devices be?

View 2 Replies View Related

Android :: App's With 2D Graphics And Animation

Feb 2, 2010

I have doubts while doing some 2D Graphics and animation. Here is what i have done and what i want to do further: An application starts with a 2D object [ball] rotating and execising in a particular fashion, and after a particular point in time the object [ball] scrolls out of vision. After this point i want to invoke a new activity with a different UI. I m stuck up while trying to transit from this View to a new activity.

View 3 Replies View Related

Android :: How To Know Length Of Character Using Graphics?

Aug 21, 2009

How can I know the length of the each character of word. Actually, I am trying some thing like this:I will show some set of lines on the screen. Later after some time, I would like to set the color to each character in the line at a frequent interval. Now I want to set the color to each and every character of the drawn string.

View 2 Replies View Related

Android :: Size Of Graphics - Picture

Sep 2, 2009

In my application, I will get a instance of android.graphics.picture which is populated by user. Then I use writeToStream to save. After save, I have to check the file size. If the size is too large, then I should delete this file.

I think this save-check-delete operation is not reasonable. I prefer to check the size of android.graphics.picture. If the size is too large, I should not save to local. But I checked android.graphics.picture, it only have getHeight and getWidth member functions.

Could I get the size of android.graphics.picture?

View 2 Replies View Related

Android :: Scaling Transparent Graphics In 2.0.1

Dec 13, 2009

I have some transparent graphics in my game. Up through 2.0.0 they have looked fined. Since Android 2.0.1 though, some parts of the fully transparent regions of the graphics are instead slightly opaque (e.g. a circular gradient that goes to 100% transparency will have a faint halo around it).

I have tried putting my graphics in ../raw/ but that did not help (as described at http://developer.android.com/guide/topics/graphics/2d-graphics.html#d...)

I have also tried exporting the Adobe Illustrator graphics at 16-bit pngs (instead of 8bit), but that did not help either.

View 2 Replies View Related

Android :: Graphics - Tools Recommendation

Oct 13, 2009

I have much experience with Java, and am quickly getting to grips with Android. But I have very little experience with graphics... most of my work has been logical, back end web development. The last time I did any proper screen drawing was in the good old days of Applets (years ago).

I can see that Android has a very complex graphical interface, but I don't know where to start. I've looked at some of the sample apps that come with the SDK, but it's slow progress.

For example, I'm trying to learn by developing a simple rolling ball. Currently I'm using onDraw(Canvas canvas), a paint object, and path.addCircle() to draw a circle, which I then update frequently. However the result is jerky, and slow - I want to see it flying around the screen! Clearly this isn't the right way to go about it.

So two questions I suppose: 1) What graphics tools would you recommend to implement my example? 2) Where can I learn more about the graphics capabilities of android?

View 3 Replies View Related

Android :: Curved Graphics In OpenGL ES

Aug 18, 2009

I was disappointed to discover that OpenGL ES, the flavor of OpenGL implemented in Adroid, doesn't appear to support the usual techniques for drawing graphics involving curves. I'd be happy with either OpenGL's low-level Bezier evaluators, or the more advanced NURBS approach, but AFAICS neither is supported - only straight-line graphics are possible. Does anyone know, am I missing something basic here? Is there a way to generate curves of any sort in Android's OpenGL implementation? I am still fairly new to Android development, so that's certainly possible. Note that I'm not talking about functions related to Canvas - I know about drawOval, for example - but I specifically need 3D.

View 2 Replies View Related

Android :: Graphics Speciall Effects

Jun 12, 2009

When you turn on the phone, after the G1 screen, there's a black screen with the word Android in blue, and a glossy shine running across it. Can you tell me how imitate that effect? Maybe point me in the right direction, like what classes to look at?

View 2 Replies View Related

Android :: Scalable Vector Graphics

Jun 26, 2009

Does the current API support scalable vector graphics? If so which file formats? If not, will it be added in the future? I ask because I'd like my animations to based off of SVGs - in order to better support different screen resolutions while reducing file size.

View 2 Replies View Related

Android :: How To Keep From Running Out Of Memory On Graphics For App

May 10, 2010

I've been working on an Android app in Eclipse, and so far, my program hasn't really grown past midget size. However I've already run into an issue with an Out of Memory error. You see, I've been using graphics comprised solely of bitmaps and PNGs in this program, and recently, when I tried to add a little bit more functionality to the program (mainly including a few more bitmaps and causing an extra sprite to be created), it started crashing in the graphics thread's constructor -> sprite's constructor. When I tracked the problem down, it turned out to be an Out of Memory error that is seemingly caused by adding too many picture files to the program and creating Drawables out of them.

This would be a problem, as I really don't have that many picture resources worked into that program...maybe 20 or so. I haven't even started to include sound yet. These images aren't all that fancy. My questions are this:

1) Are programs for the Android phone really that limited on how much memory they can employ, or is it probably something other than the 20-30 resource pictures causing that error?

2) If the memory for Android apps is so awful it can't even handle 20-30 picture resources being loaded into Drawables that exist at the same time, then how in the world are you supposed to make decent graphics and sound for that thing?

View 4 Replies View Related

Android :: How Can I Minimize Stuttering Of Graphics?

Dec 31, 2009

How can I minimize the stuttering of my graphics?I am using MANY ImageView's in my program (and JUST ImageView's). I change their positions directly, when I need to change them without using "onDraw" to redraw everything. Is it ok, If I do not overwrite onDraw? I have in average 10 objects which I added to the mainscreen-layout.These 10 objects are 5 trees and 5 flowers. The trees and flowers have 5 different states and therefore 5 different ImageViews which I all added to the layout, whose just are invisible. So I have about 50 ImageViews added to my main screen When one of these objects changes its state, I just make its ImageView invisible and the ImageView of the new state visible.Is it ok to do it like that?I realized that if I just use one ImageView for every object and change the ressource of it when its state changes, all objects, which are currently added to the mainscreen-layout, change their position to (0;0). That was the reason, I have so many ImageView's added to the mainscreen-layout.Is there a better solution for that?

View 4 Replies View Related

Android :: How To Put Graphics On Top Of My Camera Preview

Sep 10, 2010

I see a couple of threads on this topic, but none of them seem to answer the question, so, I'm giving it another go...

Very simple idea... I want to some portion of the screen to preview (and shoot) the camera and the other portions of the screen to add my own graphical elements (buttons, colorful frame around the camera preview, etc).

The example that comes with Android fills the screen. The obvious solution (that doesn't seem to be working) is to use my own SurfaceView (rather than the one they do in the example) and have it sitting in my XML. The code (beneath) doesn't crash and reports that it's firing up the camera... it just never renders on the screen.

I have no idea what I'm doing incorrectly. My guess is that it has something to do with the display thread never having the urge to redraw anything after it renders the initial screen, but I even tried adding a button and initiating the camera to render on the surface view upon button click, but that has not provoked it any further.
(most of this code is pulled directly out of the Android sample code, so, I'm sure it's correct. I'm just doing something wrong in how I pull my View in after the fact, I think).

CODE:........................

View 1 Replies View Related

Android : Should Graphics By 480x800 / 480x854?

Aug 27, 2010

I'm wanting to target WVGA (480x800) and FWVGA (480x854) devices with my program. My question is: for my full screen background bitmaps which resolution should I make them?

View 3 Replies View Related

Android : Need To Optimize Some Graphics Calls

Oct 13, 2010

I'm looking for some help optimizing some bitmap drawing code.

Here's my pseudo-code ...

View 5 Replies View Related

Android :: Home Screen Widget Graphics

Sep 17, 2010

HI took a look at the home screen widget design recently and I tried to deploy a simple widget with 4x1 portrait background provided in Widget.I tried it in HVGA emulator (screen size 320x480 or something) and on Nexus One (screen size 480x800) and the widget seems to be the same size with respect to other UI elements (search widget etc) on both devices. How is that possible when one screen is 320px wide and the other one is 480px? Is the graphics in png format being automatically resized somehow based on screen width? If so, is it better to create the home screen widget graphics to make it perfectly fit to HVGA screen with 320px or is it better to create the graphics to fit the largest screen width possible so it would shrink itself on smaller screens (based on assumption shrinking an image is always better than magnifying it)?

View 2 Replies View Related

Android :: Application Priority - Graphics Stutter

Nov 18, 2009

I have an app which within the main Activity a SensorListener is setup. The listener detects changes from the accelerometer and sends updates to various child views, which update the display. When the app first start up, it's great - the graphics are smooth and the sensor notifications are immediately reflected in the views. Then after a few minutes it starts to stutter, making the display very jerky - and for the purpose of this app quite unusable. I've done some logging and the sensor updates are still being passed, but they start stacking up and all get sent in batches. It's like the system has put this app down the priority list after it's been running a while. I've added some garbage collecting but it only seemed to help a little. What could be happening here? How can I try and keep this app at the top of the priority list?

View 3 Replies View Related

Android :: Loop Drawing First Graphics To X0 Y0 If More Than 1 Iteration

Oct 30, 2010

Anyone have any idea why when i run this for loop to add a graphic to my screen, the first iteration coordinate get discarded if the loop runs more than once?

For Example, I have a column of 7 graphics in a graphic array list, when I remove a graphic the code below runs to insert a new graphic, and it works perfectly if there is only 1 graphic removed/added. The problem is when I remove 2 or more graphics from the column, the first 1 that is readded get written to x0 and y0 instead of x64 y64 but the second graphic is correctly added to x64 y128. I am using OnDraw canvas to draw.

CODE:...............

View 12 Replies View Related

Android :: OpenGL ES 1.1 Vs 2.0 For 2D Graphics - With Rotated Sprites

Mar 14, 2010

I am having trouble finding information related to which i should choose, OpenGL ES 1.1 or 2.0 for 2D graphics.

OpenGL ES 1.1 on Android is a bit limited to my knowledge, and based purely on sprite count the only useful renderer is draw_texture() (as far as i know). However, that does not have rotation and rotation is very important to me.

Now with the NDK adding support for OpenGL ES 2.0, i am trying to figure out if there is anything that preforms as well as draw_texture(), but can handle rotation.

Anyone have any information on if 2.0?

View 2 Replies View Related

Android :: Way To Persist Graphics On A Canvas (map Overlay)?

Feb 16, 2009

I've been searching around and can't seem to find a way to do this properly. I am doing some tracking where I want to draw dots on a map overlay recording previous positions. When onDraw of the overlay is called it seems the canvas is cleared so I have to redraw all of the history on every invocation. This could result in several thousands of dots being draw over time which seems to not be very efficient. Is there some flag somewhere that I have not found which tells a map overlay to be persistent? Or is there some way I can save and restore the canvas so I'm only maintaining/drawing the current point on each onDraw?

View 4 Replies View Related

Android :: Graphics - Path Editor Or SVG Converter

Apr 20, 2010

Anyone know of a graphical editor that will generate a android.graphics.Path? I'm looking for something like inkscape that would generate appropriate commands to generate a android.graphics.Path or some kind of conversion utility that would map SVG to an android.graphics.Path so it can be used for drawing on a canvas...

View 6 Replies View Related

Android :: Overlaying Graphics On A Camera Preview?

Oct 4, 2009

I am interested in putting some simple graphics (lines, a bit of text, etc) over a live camera preview.

I've looked at the examples, and fiddled around a bunch, but just don't see how to do it.

The examples use a GLSurfaceView as a camera preview surface, but in that mode the view apparently cannot be drawn on. They also fill the whole screen with it. I tried putting it in a normal layout, rather that setting it as the content view, but it does't work.

Anyone know how to: 1) draw graphics over a camera preview when it is the whole view for the activity? 2)do the same thing with a camera preview in a layout shared with other (small) views?

View 3 Replies View Related

Android :: Graphics.Point - All Methods Are Stubs?

Jul 4, 2010

I'm trying to use the Point class from android.graphics, but it appears that all the methods are stubs.

For example, the line Point p = new Point(1, 1); causes java.lang.RuntimeException: Stub!.

If I look at the bytecode for Point, I see a bunch of stubbed methods, e.g:

CODE:.......................

What's the deal here? Surely they didn't ship a class that's 100% stubs.

View 1 Replies View Related

Android :: Keeping Graphics Running Through Orientation Change

Aug 3, 2009

How does one create a graphics canvas that is visible by the user through orientation (port->land->port) changes? If one defines layout land and port, there is a noticeable pause during the switch. Yet, I downloaded a bubble level application that never pauses as orientation changes - even when it switches from a circular level (gravity vector through back of device) to a flat level (gravity vector through side or bottom edge).

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved