[android-developers] Background image is shrinking when opening keypad
You can add android:windowSoftInputMode=adjustPan to your activity tag on the manifest file -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] background image causes view to stretch
hey everybody, My first post here :) so I've been trying to set some backgrounds on my views but they cause the view to stretch to the size of the background bitmap let's say I have an image that's 500px height and my view is 200px after setting it as background the view becomes 200px height :s the view height is set to wrap content... the reason my bitmaps are bigger than the views is because the view can change size depending on its content... bitmap xmlns:android=http://schemas.android.com/apk/res/android; android:src=@drawable/old_wall android:tileMode=repeat android:gravity=top|left|clip_horizontal|clip_vertical / as you can see I tried to set the bitmap gravity to clip_vertical and clip horizontal but that didn't help either... I've been searching for a solution for a week now anybody? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] background image
-- Forwarded message -- From: arun kumar arun.kata...@gmail.com Date: Fri, Jul 15, 2011 at 12:45 PM Subject: arun To: android-developers@googlegroups.com ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:id=@+id/ll android:background=@drawable/circle6 TextView android:text=Country android:id=@+id/t1 android:layout_height=wrap_content android:layout_width=115dip/TextView TextView android:text=State android:id=@+id/t2 android:layout_height=wrap_content android:layout_width=105dip/TextView TextView android:text=District android:id=@+id/t3 android:layout_height=wrap_content android:layout_width=wrap_content/TextView /LinearLayout am having a circle shaped background image in which text is placed ...but when am checking on different screen resolution then my text is displaying in an improper way. ---how to make background image look similar in all devices Thakyou arun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] background image
Using the 9patch-tool, you can try adding equal 1 pixel regions on all 4 sides of the text-area such that the guidelines surround the text-area but do not intersect the text-area in the image. [image: 9patch-guideline.png] regards CVS -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en9patch-guideline.pngattachment: 9patch-guideline.png
[android-developers] Background image on a spanned portion of text in a TextView (how?)
Hi, I am trying to write an app that involves paragraphs of text which I would like to display images behind. What I mean by this is that within a paragraph I would have (for example) the first 3 words with a certain background (ideally a nine-patch style image) then the next 1 word with a different image and the last 7 words with a another image. Now I know I can achieve a rudimentary version of this with setSpan and BackgroundColor. But instead of a colour I want to set an image as the spans background. I need to do it in a TextView because I require the wrapping of text to occur as normal. Or in other words I need these image spans to be able to cope with being split across 2 lines. Just like a selection can be. I've toyed with using a combination of LinearLayouts, and TextViews to represent spans (which makes the 9 patch easier) but this method makes it tricky to work out how to split the textviews across lines (as the linear layouts work in only one direction). I hope you get what I mean here :) If anyone has any idea how I can achieve this I would be very grateful! I've looked at the available spannable objects here : http://developer.android.com/resources/faq/commontasks.html#selectingtext but I can't find one that seems to do what I want (the descriptions of what they do are a little lacking mind). Well, fingers crossed :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] background image for item on ListView
Hi I have a listview, and inside I have items. Each item is a LinearLayout with many items inside. (texts , images, etc) So the LinearLayout has a background image so its looks very nice. Also I set another image with list.setSelector() so the selection is highlighted, and I set setDrawSelectorOnTop(false) so the selector is on the back , and its not over the texts and images. The problem is that the image from the LinearLayout is on top of the selected image, so the item is never highlighted. Where should I put the background so this doesn't happen? Thanks Daniel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---