Android :: Design For Droid Apps Ever-changing Screen Dimensions?
Aug 2, 2010
I'm a web designer by nature, accustomed to changing resolutions and font sizes, but I'm unsure how to design for the Android platform without knowledge of screen sizes, especially when the screen rotates from portrait mode to landscape.
Should I just do generic things that tile, or is there a way to design things of static size?
By this, I mean for the GUI and graphics, not element nodes of the XML.
View 1 Replies
Jan 14, 2010
I am trying to modify the design of Spinner widget. I can change the background, but I can't find a way to change the arrow icon on the right side. Is there a way to do it?
View 3 Replies
View Related
May 31, 2010
I would like to write a rather simple content application which displays a list of textual items (along with a small pic).I have a standard menu in which each menu item represents a different category of textual items (news, sports, leisure etc.).Pressing a menu item will display a list of textual items of this category.Now, having a separate ListActivity for each category seems like an overkill (or does it?)
Naturally, it makes much more sense to use one ListActivity and replace the data of its adapter when each category is loaded.My concern is when "back" is pressed. The adapter is loaded with items of the current category and now I need to display list of the previous category (and enable clicking on list items too)
Since I have only one activity - I thought of backup and load mechanism in onPause() and onResume() functions as well as making some distinction whether these function are invoked as a result of a "new" event (menu item selected) or by a "back" press.This seems very cumbersome for such a trivial usage.Am I missing something here?
View 1 Replies
View Related
Aug 5, 2010
I have a class that extends LinearLayout and handles drawing to the screen. (it is in the early stages) How would I go about determining the dimensions of a screen and resizing the images, etc., that this class is drawing to the screen on the fly before actually drawing them to the screen?
What I'm trying to accomplish is support for devices that have varying screen dimensions and resolutions from the same code base, with each device being scaled properly.
View 7 Replies
View Related
Jun 19, 2009
I created some custom elements and I want to programatically place them to the upper right corner (n pixels from the top edge and m pixels from the right edge) therefore I need to get the screen width and screen height and then set position:
int px = screenWidth - m;
int py = screenWidth - n;
Does anyone know how to get screenWidth and screenHeight in the main Activity?
View 3 Replies
View Related
Oct 13, 2010
What are the best practices to design webservices for mobile (particularly Android) apps?
Personally I'm focused on using JSON (and not XML) and I try to make it the less verbose I can. But I'm probably missing a lot of things.
View 4 Replies
View Related
Nov 12, 2010
I need to design an android app to communicate with HID Custom USB Device. Are there any standard java library that I can use to implement this?
View 2 Replies
View Related
Oct 7, 2010
I'm seeing that it would be good to have some sort of charting scheme (or possibly just a table-based design strategy) when designing Android apps.Have any such schemes been proposed?
View 4 Replies
View Related
Nov 8, 2010
I write Windows/iPhone/Android apps that mostly display large documents (HTML) in an HTML container view. What is a good strategy to determine where in a document the users has scrolled to so that when the app runs again, it goes to that location in the HTML document? ll of my software can 'listen' to javascript. Is there a way to find in a HTML page, perhaps with javascript, where the visible section is?
View 1 Replies
View Related
Jul 23, 2010
Wondering if anyone has the stock Droid X launcher icons, they appear to be larger than all the rest and I kind of like then so I might try to use them with LP. Does anyone know what the dimensions of these icons are and where I can get them? I am referring to the icons circled in red below:
View 11 Replies
View Related
Aug 23, 2010
I fight with me for some days about asking this question.
Its pretty plain and simple:
If you have an application with a GUI totally working on 2D drawing, what should be the best practice to handle what to draw and where to touch?!
Some example for better understanding:
I have a game with a map. On this map I can build houses and stuff.
I also have a information bar which can be extended. On the extended bar I draw some information about the game and also enables to change different values. If a touch occurs, I have to check, if the information bar is extended or not to determine if I want to change something on the map or something on the bar.
Thats done by the State Pattern, but I have some doubt if thats the right one because I think it can be a bit complex because of possible "sub-states".
So basically the question: Is the State Pattern (from GoF) the best practice to handle a pure graphical GUI?
View 1 Replies
View Related
Nov 8, 2010
I have a requirement where few of my image views form border areas of an application, the application will be running on many screen sizes.
I'll be creating a uniform image for the smallest size possible, which can be repeated as many times as needed, and still presents the same image.
i want the image view to replicate the image contained whenever it is increased.
Perhaps I was able to describe my problem.
Is anything like this possible?
I tried 9-patch images, but I couldn't find nice articles on it which could explain how to create useful images with it which could suite my need.
View 1 Replies
View Related
Jul 17, 2010
What are the best dimensions and resolution for the photo widget? It asks to crop the photo on the phone and it kills the quality and it looks more pixelated when you do.
View 1 Replies
View Related
Jul 16, 2010
I'm not sure If I did something to my phone after hours and hours of playing and installing/uninstalling ... but my screen orientation no longer changes to landscape when I rotate the phone!
View 1 Replies
View Related
Jul 17, 2010
I feel really stupid because I can't find a way in the settings to change the lock screen wallpaper. My droid eris had the option. Can anyone find how to change it with the droid x?
View 1 Replies
View Related
Nov 6, 2009
Is there a way to set a separate picture for you lock screen? If so, how?
View 1 Replies
View Related
Dec 16, 2009
Has anybody figured out how to change icons? For example, I have a web shortcut on my home screen for Google and the default icon for it is a real eyesore.
View 3 Replies
View Related
Apr 11, 2010
My Droid keeps losing the setting for screen timeout. It resets to no option being selected, which means about a 5 second timeout. I have to reselect 30 seconds, etc. I can't seem to find a pattern of situation leading up to it. Started on 2.01 and continued after 2.1 upgrade. Never rooted.
View 3 Replies
View Related
Nov 23, 2010
I am going to develop an Android Application but before developing it i needs to have MockUp for the Android Application,so is there any way to design MockUp/GUI Design tool for the Android Application?
I know about DroidDraw tool , but i think it is not the exact way to prepare Mockup for the android application.
I have already referred this SO Question , but overthere i just found all the tools for the I-Phone only. So please feel free to share with me if you have/found any !
View 3 Replies
View Related
Jun 7, 2010
I'm facing a problem regarding to design issue, to understand problem i uploaded a screen shot.
I checked in emulator, it works well but when i try the same application in HTC Sprint mobile which screen size is 4.3" and resolution is 480*800(HVGA) but there did not display appropriate (check attachment for screen shot).
View 1 Replies
View Related
Nov 5, 2010
I would like to find the dimensions of an ImageView to use to scale a Bitmap, prior to to calling view.setImageBitmap. ImageView.getWidth and ImageView.getHeight return 0 if no image has been set. (Presumably because the ImageView has not yet been measured?). Is there anyway to determine the dimensions of the ImageView prior to setting the Bitmap?
View 1 Replies
View Related
May 7, 2010
I have a image in drawable folder and i need to get dimensions of that image.
i tried BitmapFactory,getHeight etc but it is rerunning me null.
View 6 Replies
View Related
Jun 29, 2010
First let me say I think I'm obsessed with my EVO maybe more so about the Android OS in general. Love reading this message board, XDA, Android Guys and all the other sites to learn more every day.However, one thing I've found is its really hard to stay on top of all the apps that are being released on what seems like a daily basis. What's the best way to find the GOOD apps that are being released? I know there is a "just in" section but most of those are junk. Should I rely on Android Guys or sites like this to simply post them or is there a website that tracks this kind of stuff.I used to be a fanboy but now I'm a droid user for life. Really cool to feel apart of a community and seeing dev's on sites like XDA interacting with normal people rather than the old feeling I had with my Iphone where there was "them" then there was "us" and all they wanted to do was profit off us.
View 1 Replies
View Related
Jul 6, 2010
I'm trying to develop a little game, with 2D Graphics. I want my "gaming board" to be at a specific position on my screen, so that I can display in-game informations above and below the box. But since there is beginning to be a lot of Android phones out there, I was thinking about getting "dynamic" values so that I can adapt my font size to every device.
My game is not in full screen (but it could be, it's no big deal), but in a window with no title bar.
I'm using an extension of the default SurfaceView class, implementing SurfaceHolder.Callback. I tried writing the following method :
CODE:................
But the values returned are zeroes.
(even if it means changing display strategy) ?
View 1 Replies
View Related
Jan 6, 2010
Which are the default dimension of the Home wallpaper/background for the various Android screen configurations (small, normal and large screens with low, medium and high density)?
Are 9-patch PNG files supported for the wallpaper? Should I be using these instead?
I found a method in API level 5 that gives you the minimum size of the wallpaper, but I would like to support previous versions of Android as well.
View 3 Replies
View Related
Jun 18, 2010
My Android app uses a GLSurfaceView so that I can draw to screen directly from native code. As part of the app, I invoke the Android softKeyboard when necessary to receive input. I then feed the input to the native app via JNI. All this works well.. Now, the problem is that I need to know the dimensions of the soft keyboard or any other Input Method windows that are displayed so that I can pan, scroll the native application correctly.
View 4 Replies
View Related
Nov 24, 2010
I found that it is possible to set dimensions of my interface elements in XML layouts using DIPs as in following fragment : "android:layout_width="10dip" But all Java interface takes integer as arguments and there is no way to specify dimensions in DIPs. What is the correct way to calculate this? I figured that I have to use property density of DisplayMetrics class but is this a correct way ? May I rely on that formula:
pixels * DisplayMetrics.density = dip
View 2 Replies
View Related
Nov 7, 2010
The Android Developer guidance on Creating a Custom Dialog specifies a layout that starts:
code:........
If I use this code I get a dialog that sits in the centre of the screen with about 40 pixels of the underlying view visible on each side.
What exactly does "fill_parent" mean (for the width and height)?
View 2 Replies
View Related
Apr 19, 2010
I'm sure my Desire is changing change all by its self. Sometimes when you put it down it goes onto desk clock or weather. ~Presume it does not has a shake to change screen facility or anything.Maybe its just me, the screen is very sensitive.It's just done it again, picked it up and it moved off the HTC scene onto weather.
View 3 Replies
View Related
Jan 29, 2010
How can I size a view based on the size of its parent layout. For example I have a relativelayout that fills the full screen, and I want a child view, say an imageview, to take up the whole height, and 1/2 the width? I've tried overriding all on onMeasu onLayout onSizeChanged etc and I couldn't get it working....
View 3 Replies
View Related