How to give bold shadow over normal text in android textview? - java

i need to give shadow over text view in android.
i have already tried using this code
android:shadowColor="#c3c3c3"
android:shadowDx="0"
android:shadowDy="0"
android:shadowRadius="15"
but not getting result the shadow is very thin.
i want exact as
.
in picture shadow is very strong shadow over text but by using above code with many values i am not getting that effect any suggestion for it.

Related

How to put security patch on Text view?

I don't know what to say to this but I want mask or put patch on Text view.
See the picture below. I want effect like this. I've searched lot but didn't find any post with same requirement. How to achieve this?
You can pass two images in one TextView Like below Code:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="#drawable/icon"
android:drawableRight="#drawable/pacth_icon"
/>
use
android:drawableLeft
and
android:drawableRight
to set your images in TextView.And you can setText and background Image as well.

How to customize FlowTextView for RTL?

I'm using "Flow Text View" to wrap my text around a picture.
But them problem is, I'm using Persian language so I have to set text direction to "RTL" but have no idea how to do it for the Flow Text View.
Here is a picture of how my texts get while direction is LTR...
I hope to help me how to set direction to rtl, I will provide any code you need and I will answer immediately.

How do I set the opacity of a WMS requested layer in Android Google Maps API

Hi I've followed the instructions on this page: http://www.azavea.com/blogs/labs/2013/01/wms-on-android/ to overlay an image using WMS request to Google Maps from Geoserver. It's working already. The problem is I want the layer/image to be a little less visible (more transparent) so that the map can be seen more. Been searching for days but I can't seem to find solutions using Java Android. Please help. Thank you very much!
The best way to do this is to edit that particular image/layer declared in the XML file. As you have map beneath that layer which you want users to see inspite of an XML element (might be a button) which is at the top of the map its better to configure that XML element so that it is transparent.
This is a small code snippet that shows how to do that:
<ImageButton android:id="#+id/button/layer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="#drawable/ic_your_button/layer"
android:background="#android:color/transparent">
Hope this would Help!!

How to remove underline from current composing text in Android

Is there a way to remove the underline from the text currently being typed in an EditText?
I need to keep the suggestions area as well.
XML:
android:inputType="textNoSuggestions"
Code:
yourEditText.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);

I want the TextView to end in one Line...how to do it

i am developing an app, i would have linked an image but i don't have enough reputation to do so....my problem is The text doesn't fit in one line it goes to the second line,obviously thats because i have set the height to "wrap_content",but i want it to show the text only in one line and not 2 or more,what should i change the height to?i don't want any java code for this,my fragment is already heavy with lots of code,is there any way to do this on xml, so that it doesn't display different results for different screen size?also is there any way i can append "..." to the end of the name? like "backupRestoreConf..." or something like that?
use android:maxLines="1" (or android:singleLine="true", but it was deprecated and now it is not anymore. What to think.)
android:maxLines="1"
Use this in your XML
you need to set this in xml for your textview:
android:singleLine="true"

Categories

Resources