Android :: Relationship Between Pixels And Scaled Pixels?
Jan 4, 2010
I used the layout editor in eclipse to mock up my ui layout and then I created the code to populate it dynamically and things are showing up as different sizes. The XML I use to add the star images looks like this:
<ImageView
android:src="@drawable/star_gold"
android:layout_height="22sp"
android:layout_width="22sp"
android:adjustViewBounds="true"
android:layout_marginLeft="2sp"
android:layout_marginRight="2sp" />...............
View 4 Replies
Aug 21, 2010
What is the max x, y size of a Android screen in pixels? Is there a standard set by the OS or does it mostly just depend upon the phone hardware.
View 1 Replies
View Related
Sep 7, 2010
I want to publish an application that specifically runs only on 800x480 or higher screens. I don't want users with 480x320, 320x240 etc devices to get it from Android Market. How do I configure it? Market Filters seems to have the answer but I still don't get it.
View 4 Replies
View Related
Jul 14, 2010
I want to make use of the trackball or d-pad to scroll my ListView smoothly. Without implementing anything, by default the list scrolls by one item, which is not appropriate for my app, since list items have different heights and I just want to scroll it by a fixed amount.
Is there anything to call to let's say, emulate a 10 pixel drag down?
View 3 Replies
View Related
Jan 29, 2010
In ActionScript development, there are two classes, Bitmap, and BitmapData. Bitmap uses information from BitmapData to create a Bitmap. Is there an equivalent to BitmapData in the android API? I did some digging and BitmapFactory seems to be the closest, however, I'm facing problems with it.
I tried Bitmap bitmap = BitmapFactory.decode Resource(getResources(), R.drawable.buster);
As that was what I was seeing in most of the examples I came across, but it is telling me that the method getResources is undefined. I'm not really sure what is causing this as in another tutorial I did, getResources didn't cause any problems.
I'm not looking to simply draw a bitmap to the screen, I want to copy a section of the bitmap and place it on a new bitmap. In ActionScript, the method is bitmapData.copyPixels(), and I'm looking for a similar method in the Android API. The closest thing I could find was copyPixelsToBuffer(), but I'm not really sure if that does what I think it does.
View 2 Replies
View Related
Jan 4, 2010
How can I make certain pixels of an DrawableBitmap transparent?
View 3 Replies
View Related
Nov 20, 2010
Cn anyone suggest me how to use device independent pixels(dip),sip and convert px to dip with a sample code..
View 1 Replies
View Related
May 25, 2010
How can I quickly access the screen resolution (width, height) as integer values? I've tried this one, but it always shows zero on my emulator:
DisplayMetrics dm = new DisplayMetrics();
int width = dm.widthPixels / 2;
In my case I want to dynamically create a table with tableRows, each containing two cols. This cols all shall fill half of the screen in width.
View 1 Replies
View Related
Aug 31, 2010
I want to make a Whiteboard app, but i don't know how to make only some pixels black and let the others white.
View 2 Replies
View Related
Oct 17, 2009
Anyone know if you can make part (i.e. a section which you could measure in pixels) of an image transparent? What graphics features would I need to look at?
View 4 Replies
View Related
Sep 25, 2010
I am trying to learn opengl stuff on Android. In the gl.gltranslatef(x,y,z) call, I am shifting my texture by some units in the +ve x direction. But I am unable to find the number of pixels does 1 unit of x belong to?
Here is what I am doing:
I call gl.glviewport(0,0,width,height); // This will set my rectangle with 0,0 as lowerleft corner and then extend it to accommodate width and height.
Then
I call to gl.glfrustrum(-5,5,-7,7,3,7); // I am little confused how this call is using the dimensions I set in gl.glviewport.
How will -5 to 5 units from left to right in the above call, translate to pixels on the screen of android?
I mean if width = 320 and height = 533 pixels, then what will be the number of pixels occupied on the screen due to the gl.glfrustrum call?
I am experimenting in the gl.gltranslatef call by specifying xshift as 5.0, but it does not translate the bitmap at the right or left corner of the screen, when I increase it to 6, part of it is still visible on the screen.
I am searching for the maximum number of units (in terms of X) which will represent extreme corners of my android phone screen.
View 1 Replies
View Related
Nov 17, 2010
I need to scroll a MapView programatically to make sure something is in view. I know how many pixels it needs to scroll in each direction. I see methods (in MapController) to animate it to a particular GeoPoint, and to scroll it by pixels without animation. But nothing to do it by pixels, with an animation.
What is an easy way to do this?
View 1 Replies
View Related
Mar 13, 2010
I've determined an estimate of the size of my Android emulator's screen in pixels, although I think its resolution can be changed to other numbers. Quite frankly though that doesn't eliminate the general problem of not knowing how many pixels on each axis I have to work with on my Android applications in general.The main problem I'm trying to solve is this: How do I make sure I don't use a faulty resolution on Android applications if I want to keep things' sizes constant (so that if the application screen shrinks, for instances, objects will still show up just as big - there just won't be as many of them being shown) if I wish to do this with a single universal resolution for each program? Failing that, how do I make sure everything's alright if I try to do everything the same way with maybe a few different pre-set resolutions?
Mainly it seems like a relevant question that must be answered before I can come across a complete answer for the general problem is how big can I always make my application in pixels, NOT regarding if and when a user resizes the application's screen to something smaller than the maximum size permitted by the phone and its operating system.I really want to try to keep this simple. If I were doing this for a modern desktop, for instance, I know that if I design the application with a 800x600 canvas, the user can still shrink the application to the point they're not doing themselves any favors, but at least I can basically count on it working right and not being too big for the monitor or something. Is there such a magic resolution for Android, assuming that I'm designing for API levels 3+ (Android 1.5+)?
View 1 Replies
View Related
Jun 16, 2010
I got my incredible yesterday, it's all going well, except that I noticed this line of pixels, not really any color in particular, but when you move the phone and look closely, they are very slightly distorted, and it makes them stick out slightly. I've noticed this problem on TVs before but I never understood it. I'm thinking it may be the invisible shield I had the person at the store install for me? I'm hoping it's not the screen...but here's a picture. I understand it may be hard to see, but if you move away from the picture you can sort of see what I'm talking about.
View 1 Replies
View Related
Aug 14, 2010
What is the simplest way to draw pixels, lines and circles on a View?I want to move a cross cursor around, so nothing particularly intensive.I thought I could extend SurfaceView and add it to an XML and it would just work, but it just appears black, however, when I look at the layout view of localmap.xml in eclipse, the graphics appear as expected. Any ideas? My onDraw is never called on the emulator, and even calling invalidate on the class makes no difference. I shall keep trying but can anyone see anything I've missed? or is there a better way entirely? Code...
View 1 Replies
View Related
Aug 13, 2009
in xml file we can define measuring units along with the values. If I want to set some property through code it only takes "int" value. What is the default unit for this int? px(pixels) or dp(density independent pixels) ?
View 7 Replies
View Related
Feb 7, 2009
I'm trying to make an image darker, but the image has some pixels transparent. I want to keep those pixels intact. I tried DARKEN and couple other filters, but they seem to alter transparent pixels as well.
Do you know if there is a way to keep transparent pixels intact while applying a color filter?
View 6 Replies
View Related
Dec 24, 2009
I have had my Eris for about three weeks now and noticed three dead pixels at the top where the signal is meter is. They are pretty much hidden all the time unless the phone is on a black screen. I've also noticed a few dust particles sitting in the lower right hand corner of the screen. Anyone else getting dead pixels or dust under their screen? Small issues, but irritating knowing they're there.
Will Verizon swap it out for a new handset? When i first upgraded I got the Motorola droid, but returned it for the eris. Will that be an issue if they swap out the phone, as I've already exchanged it once?
View 13 Replies
View Related
Sep 17, 2010
Have a new X on the way... and I know for certain it wasn't there when I first received it because I specifically checked for dead pixels before I started customizing everything.... it just showed up one day, no drops, nothing significant.
View 7 Replies
View Related
May 13, 2010
I currently have a 8830 Blackberry. I really want a droid phone and the HTC Hero has gotten good reviews.
A concern I always have when buying new stuff like this is.. have dead pixels been common with the HTC Hero?
Also I see some negative threads.....
What is the general consensus of the Hero? A good phone? Worth paying the full price (since my contract isn't up)? Is it worth waiting for a different model? Etc etc.
View 9 Replies
View Related
Jan 10, 2010
I got my Eris on Friday, and it has 4 pixels (2x2 square) that are significantly brighter than all of the others on the screen and they stand out like a sore thumb. This really bugs me and is distracting when that area of the screen is white or colored (doesn't show up when black).Has anyone else had this problem? Will Verizon exchange my phone for a new one? Seems like if I buy this phone and I'm stuck with it for two years, it should be flawless when I get it.
View 1 Replies
View Related
Oct 5, 2013
So, I have had a Nexus 10 for a while, I love the thing. One of my big reasons for buying? More pixels than any other tablet at the time. I am a big fan of being able to see as much as possible, but sadly it doesn't work that way...
A website I frequent recently changed to add advertisements to the right side. Somewhat annoying, but hey, gotta make money. In doing so they added a 300 pixel margin to the right side of their pages to allow for the ad. On my 1080p monitor, it's no issue, plenty of pixels to go around. The content on this page is also set to 100% wide, making it use up my entire screen very nicely. Then I view the same page on my Nexus 10, or any mobile browser for that matter, and it looks like garbage, because everything has been over doubled in size.
I get why the browser does this, to make everything easier to view and interact with. I don't care about that, I want to be able to see as much content as possible at once, I want all of my pixels to be used. So that is what I want to find out, is there any way to make any android browser display things at actual size, instead of zoomed in size? The main browser I use is the stock one because of the Desktop user agent (several sites, like Wikipedia, are so awful to navigate in Chrome since it mobile formats them) and I have tried Dolphin as well (which has a zoom setting but it doesn't make a difference). I know Dolphin has an option to add a custom user agent, so is there any user agent that fix this issue that I should put in? Or is there an app that addresses this?
View 1 Replies
View Related
Nov 10, 2010
Can I use DrawBitmap with display independent pixels on android?
If not, is there a suitable alternative?
View 1 Replies
View Related
Jun 26, 2010
Well after going thru 4 Evo's.they all had either dead pixels on the screen or dust particals under the glass.and i noticed either one screen was more brighter then the other an so on..well I just said hell with it an got rid of the Evo all together..I just cant take the dust under the screen issue..all off them have dust under the screen right out of the damn box..hell just walk outside in teh sunlight an you will see dust or lint under the screen..very annoying ..Also i was very dissapointed that HTC would use such CRAPPY TFT screens in these phones.I'm sorry but the screen on this phone looks like Garbage..Anyway I will just wait til Sprint comes out with another android phone..hopfully with the new SUPER AMOLED screen..my Palm Pre will be just fine for now....sorry for the rant..but its pretty sad that these phone come with so many defects/or with dust under the screen..hell I went thru 4 htc heros with the same problem DUST .......hopfully htc will get there head out of there ass an beef up there quality control.
View 49 Replies
View Related
Jul 21, 2010
I had my DroidX Cell Phone since when it was released last week.
The Cell Phone was working very well with no dead pixels on any of the menu screens, none on any of the software applications, and none on the Camera or Camcorder applications.
I had checked for the dead pixels using different colored backgrounds, and using dark screens especially with the Camera and the Camcoder application.
On Tuesday afternoon I downlaoded and installed the DroidX 1.13.604 Update.
The DroidX now has some dead pixeks in the same location only in the Camera and Camcorder applications, and not in any of the other applications or menu items.
You need to use the Camera and Camcorder applications in very low light and viewing a dark screen and you will definitely see the white colored dead pixels.
If you using the Camera and Camcorder applications and you are looking at an object in a bright light or in an outdoors setting you will probably not notice the white colored dead pixels.
Since the dead pixels only occur in the Camera and Camcorder applications it is probably a software related bug.
View 15 Replies
View Related
May 6, 2010
So today I noticed what seems to be a dead pixel (Not really dead, it just stays the same color). I'm not 100% sure if it is,but I notice that it's pretty much always a blue-green color. I tried doing a pixel fix by using one of those videos on youtube, but no luck. I did notice, however, that if i paused the video, the pixel would be filled in on a blue or green picture, but on red it would turn black. Anyone have any suggestions? If not, do you think I should try exchanging it?
View 15 Replies
View Related
Mar 20, 2010
Just wondering if something specific could cause them or simply a quality issue.
My first N1 (T-Mobile purchased day one) developed a tiny dead pixel after about a week of use. I returned it to HTC and the replacement I got didnt have any but about a week after I got it, a dead pixel appeared on it. The phone was stolen so I never called HTC. I just bought an ATT N1 and again it's perfect to start. I know nothing about how electronics work but I wonder if:
-Could a specific live wallpaper cause this? I used the Grass one on both previous models.
-Could the dock cause this? When you place it in dock the screen dims and you get that floating clock. I wonder if extended stay on the dock could be the cause?
Or like I said maybe just not the best quality parts.
View 4 Replies
View Related
Aug 11, 2010
They're barely noticeable only when there is a black background on the screen and the bottom four buttons are lit- then light will shine through the dead pixels....but when the home buttons deactivate after 4 seconds, the shine through the dead pixels are gone.
View 2 Replies
View Related
Oct 11, 2010
I recently dropped my evo for the 2nd time. 1st time no noticeable damage. 2nd time (it has a Seido Inocase II) at the bottom of the screen a large ironic smile appeared all in green and black dead pixels. I have insurance, but its pretty pricy to replace this right now I also noticed 2 weeks into this phone (which is a replacement for my first 30 day phone) that I have dust under the screen (same reason I replaced the first at RadioShack) in the top left corner. Do I have grounds for a manufacturing defect from HTC? Or am I completely boned into paying the 100? Please anyone with insurance and/or HTC defect experience let me know!
View 3 Replies
View Related
Oct 10, 2010
My phone was completely fine since day one and when i plugged my charger a little later I noticed that there is a whole line of dead pixels going across 1/3 down the screen.... restarted, rebooted, battery pull, factory reset: none solved the problem
View 9 Replies
View Related