Android :: Confused About 9-patch Files
Mar 2, 2009
Can someone please explain or provide examples (links) of some valid 9- patch files? From reading the API description, I think my understanding is flawed. As an example, there's a 9-patch located at: http://www.maladroid.net/test.9.png Code...
View 9 Replies
Nov 5, 2010
I have T-Mobile, with the old Hotspot@Home billing feature that gives me unlimited UMA minutes (used to have two blackberries and used UMA a lot). I have really missed this with my Nexus One. With TMO rolling out Kineto's application for "WiFi Calling" I am trying to figure out what is possible for my Nexus One, currently at Android 2.2.1 (FRG85).Is the Kineto deal only going to be for TMO builds of Android? I have read that Kineto's business model is to not sell direct, hence no availability in the Market. Since my Nexus One gets its Android system updates independently, this would mean I can never get an update with Kineto built-in, right? If I were able to install Kineto, would it look like UMA to TMO so the calls would be covered under my unlimited H@H plan? Any bright ideas on how I can get WiFi Calling (the TMO supported plan that uses my TMO number, not some SIP implementation or Google Voice)? I prefer not to root, but if I have to root to get UMA, I will.
View 1 Replies
View Related
Jul 25, 2010
I'm confused a little bit i read in the Tips and tricks sticky but still lost,what i'm trying to do is create folders in the galery but i'm not seeing folders that i made when plugged into the PC all i see is pics not folders when i can click on and open to view a folder, Say i have folder(s) named Friends, Family, Pets, Etc, Etc,I even downloaded Astro file manager and made a folder named Friends added some pics but still if i went straight to the galery icon in All Apps there is no folders just photos i have scattered all about. Does this mean i have to use Astro each time to view the folders/photos?
View 7 Replies
View Related
Oct 17, 2010
I hope that this is an easy one for the root masters on here.Firstly i have successfully rooted my Desire by using the unrevoked3 app so now went though without a hitch and root was successful as i have installed ROM Manger from the Market.ive clicked on the ClockworkMod Recover and that has installed fine.Ive done the Backup Current Rom and its created a folder on my SD card with the back up.Now i want to simply add A2SD or even A2SD+ as they both appear to do the same to me?Ive manually backed up my SD card as i know it needs to partition it but is it simply a case of going through that option or do i need to flash a custom ROM to it?LeeDROID looks like a good option as i like the standard set up pretty much just with launcher pro rather than Sense which i could add after?Lastly, if it all goes wrong how do i restore the backup ive created?
View 4 Replies
View Related
Aug 31, 2010
I've rooted my DIncredible, and have S-OFF through unrevoked. I know that when the OTA hits, I will lose root access. But with S-OFF I will be able to re-root.My question is, how would I go about doing that? Is my phone safe to let the update go through? Also, I've read around, but there's no all-inclusive guide that I can see that has how to get root back once I get the OTA 2.2.I'm kind of wary about using a leaked ROM instead, but that might be the easiest way to do this and keep root unless there's a guide out there.
View 7 Replies
View Related
Aug 12, 2010
I'm running BB V0.4, but I would like to install UD Extreme 6.0 from what I've read all I need to do is flash with SPrecovery now here's where I get confused..do I need to find a theme to use with UD? or do I just install it and I'm done...if i wanted to install a custom theme how would I go about doing it.
View 2 Replies
View Related
Aug 6, 2010
So I was doing this comparative study between the application security model between android and now I need a benchmark for it to compete against. The problem though is I am pretty new to mobile application development and barely know the names and probably used a phone or two in the process with each of the OSes. Now the dilemma I am in is, which OS should I pitt against the Andorid to compete with for a security model study. At most I can pick two because I literally will not have the time to complete developing applications for all the Operating Systems in the market to do a comparative study.Which one would be the best choices according to you? (Please elaborate as to why its a worthy competitor).
View 2 Replies
View Related
Sep 21, 2010
I try to implement a hover effect (effect when button is pressed) through putting a semi transparent PNG file on top of the button background and the button icon. Unfortunatly the button background file is a 9-PATCH-PNG which causes some trouble here: It "swallows" everything on top of its layer and doesn't allow to cover the stretchable areas (the fine light line around) of the nine-patch-png. In other words, the black lines the top and left edge of the 9 PATCH PNG cause not only stretching, but also padding behavior.
View 4 Replies
View Related
Jul 16, 2009
Android has a nice way of defining stretchable images called a nine-patch. See these docs for a description of the concept. The idea is to surround a png image with a 1-pixel border where you can define the stretchable areas and the padding dimensions of the image. This is absolutely brilliant and I'd like to use the idea in my iPhone app. Before writing my own nine-patch to UIImage loader I thought I'd see if one already exists. Google doesn't return any results so I don't have much hope, but it doesn't hurt to ask, right?
View 4 Replies
View Related
Aug 4, 2010
I want to know how can we create 9-patch images.
View 8 Replies
View Related
Sep 24, 2009
I wish to customize the button images, but after I opened the png file, changed the color, reimported back into the draw9patch editor, the compiler spew out errors. how can I modify the 9 patch image of the default button?
View 2 Replies
View Related
Nov 29, 2009
I'm trying to create on of these images, but Eclipse won't accept it once I've used the draw9patch tool. I've found other people having the same problem, and saw this comment: I discovered later that the problem I was having was caused by the image not being exactly true to the nine-patch spec as defined in the documentation. Once I fixed the image to have a clean (i.e., no gradients etc) one pixel border it was fine. "'m not much good when it comes to image design. What does this mean, how do I create my original png file to meet the specification for Nine Patch?
View 2 Replies
View Related
Jan 5, 2010
I have some 9-patch images on my app, and they work great on the medium density. When I load the app on a High density emulator/device, these images look grainy. It happens only to 9-patch images. The others look great after the pre- scaling. Is there a way to make them look good after the scaling, like the non-9-patch images?
View 10 Replies
View Related
Jan 24, 2010
I'm trying to draw a nine patch onto a Canvas object on the Android. What seems strange is that although I generated my nine patch using the draw9patch tool, the constructor for NinePatch requires an additional byte array called the "chunk" to construct the nine patch. Why isn't this simpler? What is the "chunk"? And if you have done this yourself, how did you go about it?
View 1 Replies
View Related
Sep 10, 2010
I am having problems with nine patch images ( **.9.png ). I have a widget layout and would like to use nine patch images for the widget's backgroud. Here is my background.xml...
View 2 Replies
View Related
Nov 17, 2010
I am having a serious problem. What i have in my hand : Linux Kernel 2.6.29 with Android Eclair patches and some board specific patches(as .patch files). Linux Kernel 2.6.32 with Android Froyo patches.
View 1 Replies
View Related
Sep 7, 2010
I'm wondering if there is something like 9-patch in Android, but for web development? Disclosure: I have no idea about web development at all, but I was curious to know if it exists. And a simple web search with the term 9-patch didn't bring up any related results, so I figured it has either another term or it doesn't exist or is not used widely enough.
View 1 Replies
View Related
Feb 3, 2010
I have a question regarding 9 patch images. Is it possible to download 9 patch png files from a webserver then display it as a background of a layout while keeping the information inside the file like the stretchable pixel? I have tried using a 9 patch image coming from the resource drawable directory of my project and it displays correctly...stretching only those pixels marked as stretchable but when I tried to download a 9 patch image from my web server then the application will use the downloaded 9 patch image the stretchable pixels does not take effect..i mean instead of stretching only those pixels that where marked as stretchable it stretched the whole image.
View 4 Replies
View Related
Sep 22, 2010
I want to set a specific background image for all my buttons. So, I changed my PNG file into a Ninepatch drawable using the "draw9patch" tool(by specifying the line of strecth).Then, I applied this as background to my button using
"myBtn.setBackgroundResource(R.drawable.new_png);"
Now, the background appears for the button, but the lines of stretch are also visible on the android screen, wherever I'd specified them in the tool. Can you help? Is there something wrong in how I'm using the tool?
View 1 Replies
View Related
Oct 8, 2010
I have an image with a fixed size , ex. 300 x 300 ; it was a background image of my view. But my view size was dynamic , so i need an image which can stretch , according to desired size. can any one tell me how to make it ? I know we have to use nine oatch drawable ? i don't know how to tool given with android sdk ? can any one tell me how to make image to png?
View 1 Replies
View Related
Oct 11, 2010
I encountered this problem when updating my background to use a 9-patch image. The layout is fine on different screens using different sizes of the same image, but when I change the image to be a 9-patch it breaks the entire layout mysteriously.
View 1 Replies
View Related
Jun 21, 2010
I am trying to use a nine patch image as a background in an android game. The image expands well in multiple resolutions but, my game has slowed down by 10 fps. I used to get a consistent 45 to 50 fps now I get 35 fps. The question is when we use a nine patch as a drawable and set it as a background in a view does it have any performance implications as opposed to a plain bitmap drawing.
View 1 Replies
View Related
Nov 23, 2009
In my application I would like to mark different spots on a map. What I'm now wondering is if there's a way to use a simple 9-patch image and add the spot's name as text to it or would I need to draw everything myself (including the text) in the draw() method of ItemizedOverlay?
View 1 Replies
View Related
Mar 12, 2013
I have a "Energy Android Smart TV Box" (ICS 4.0.3, ARM Cortex A9, 512MB RAM, WiFi, DVB-T, 3xUSB ...) energysistem.com/en/products/android_tv
The only way to connect to the Internet is through a VPN connection (PPTP), but it bothers me a bug in Android.The error I'm getting in the log is as follows:
Creating PPPoX socket
Socket () Protocol not supported.
I found a patch for it, and the manufacturer provides kernel available for download.Patch is here: code.google.com/p/android-x86/issues/detail?id=451...I tried to manually apply patch. I replaced some code in files if_pppolac.hi if_pppopns.h. But I do not know how compile kernel
I also tried to install latest fw update, several alternative ROMs and several VPN clients but nothing worked. always the same error: Socket () Protocol not supported. The best would be if I could put Jelly bean on box. In Jelly Bean pptp works fine.
View 3 Replies
View Related
Mar 18, 2010
Sorry if this thread seems inconsequential but I have been rendering myselves sleepless nights over the past couple of days ( and nights ) due to my inability to choose between the above two said android phones. I like the i5700 for its zippy 800 MHz processor and that its got the 2.1 update. I like the i7500 for its 5 MP camera and flash + a larger screen to play with I would have gone in for the i7500 but have been hearing about Samsung deciding against not updating it to version 2.1 which can off course be done taking the un-official channel. Moreover the 528 Mhz processor is certainly lagging.
But still I see people in here Going after the i7500 .... Adding to it there is more threads and discussions going around on the i7500 as compared to the i5700. Am I missing something in the i7500 or is it just that i am a stupid newbie ... I have gone through many many pages of information on this thread before posting this query.
View 12 Replies
View Related
Jan 11, 2010
Trying to figure out which kernel source Samsung took to maybe extract a patch set and create a newer kernel. Has anybody figured out where they exactly took the kernel from? I found that they have which are not found in the android/msm.git, but in the MSM/QSD git repo here: Has anyone tried to figure out the exact version/commit that they took?
View 1 Replies
View Related
Feb 15, 2010
i have list views with image views and text views etc in them, and i'm trying to fix up a situation where the background image of a list element changes in the "pressed" state. if there's a straightforward way of doing that, please let me know! right now, i override onTouchEvent() in the topmost view, and also in those child views who don't just delegate to their parents which would be image views. i have to check for long clicks myself, but basically this scheme works. the list views are potentially different sizes depending on how much text is in the views etc, so i thought i would use a 9-patch as the background. however, when the background changes from flat white to the 9-patch, this seems to indent the view a bit - ie give it margins. eh? if i change the image to a non-9-patch, the margins remain as they are. i've tried different sizes of 9-patch, from 320x150 or so down to 100x30 etc, no change. what's going on?
View 3 Replies
View Related
Aug 21, 2010
As the title says, I cannot get padding around the text.Here's my xml:
<style name="StandardButton" parent="@android:style/Widget.Button">
<item name="android:background">@drawable/nine_patch_3</item>
<item name="android:textColor">@color/white</item>
<item name="android:textStyle">bold</item>
<item name="android:paddingLeft">10dp</item>
<item name="android:paddingRight">10dp</item>
</style>
View 1 Replies
View Related
Sep 20, 2010
is it possible to draw a 9-patch that tile its border instead of stretching it?
View 2 Replies
View Related
Oct 29, 2010
I'd like to use a 1x1 size Nine-patch image from Android drawable resources. When I'm trying to display it with <ImageView> in my layout xml file, this one is never showing up on the Android emulator device. Here's the xml code below. Code...
View 1 Replies
View Related