In my project i have 9 editext box one page and am set a background for all these things,am use font serif fonts.in that am going to edit through virtual keyboard.edit text shows only after few seconds how to am going to rectify tat problems..any one know help me...
Likely the background is getting stretched, which Android isn't really good with performance-wise. Use a background color or shape instead of image, or make the background repeat instead.
Related
Does anyone know how to do this? For me, I would try the usual Html or Spannable that everyone recommends on SOF.However,nothing changes - the preference color stays light gray (I am on android 4.2), unless I try coloring the ENTIRE message - then it works. But I just want a single word in the middle of the sentence to be colored - not the whole thing. The rest should be gray (or whatever the default is on my android).
OK, the issue was that I was supposed to wrap the entire text in Html.fromHtml method. Not just the portion with text I was coloring.
I am using this android:textIsSelectable="true" in my TextView for select + copy-paste options and it's working just fine. But I just run into a problem, The selection part appear to be transparent in color. attaching the screenshot for understanding
Now I want to change the color of the selected portion . Is there a way to change the selected portion color.Any help is greatly appreciated.
Edit
Ok ,I seems to have find the issue.The issue was because I was not calling super on onDraw() instead I was drawing the text ie canvas.drawText() I made a small workaround for it, which is not perfect.Does anyone know how to set the highlight path using canvas.drawText() ?
Yesterday I asked a question about the TextView. I read and I see that it's very difficult to understand. So, I'm sorry.
Now I explain better my problem:
I try to personalize my TextView. I tried two different things:
I use photoshop, I made an image text and I use it as a drawable. The image re-sized isn't with right quality
I try to use the text of TextView, but I can't change the family of the text (the app crashed). Then I don't know how to set gradient as text color and border in the text.
What can I do?
Edit: yes! For the point 1 I use an ImageView inside of TextView. In point 2 I use TextView. I have problem in both situation!
I think to customize textview (any view) you have to implement your own custom view by creating your custom class.
Here is link for custom text view,i hope i will find it useful
http://www.jayway.com/2012/06/25/creating-custom-android-views-part-1-extending-standard-views-and-adding-new-xml-attributes/
I want to
use a TextView (or similar) to show dynamic text inside of a free-form shape (as shown below)
enable the user to change the text
render the result into a Bitmap
It's a relative easy task on iOS but it seems nobody did this on Android?!
I hope someone has an idea how to solve it, can't find anything on the net...
I have an image which include 10 boxes on my image view. When I click the one of boxes I want to change color of box (fill with color). How do I do that? Should I use Surface View or something else?
Update:
I found a solution. But if I use AsyncTask the code does not work. If I use a normal class the code works. I do not know why but I think problem is related with invalidate().