
How to apply shadow as per above image? I used
android:ellipsize="none" for ellipsize of text from TextView.
Thanks in advance...

How to apply shadow as per above image? I used
android:ellipsize="none" for ellipsize of text from TextView.
Thanks in advance...
Try below code:
TextView txt = (TextView) findViewById(R.id.textView1); Shader textShader=new LinearGradient(0,0, 60, 20, new int[]{Color.WHITE,Color.TRANSPARENT}, new float[]{0, 1}, TileMode.CLAMP); txt.getPaint().setShader(textShader); I guess all you need to adjust (if required) is those values like 60,20 in above.
I am attaching the screenshot of the result, for reference.