Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of how to make RTL background android without wasting too much if your time.
The question is published on by Tutorial Guruji team.
The question is published on by Tutorial Guruji team.
I m newly in android and making background with gradient from left to right on black to white. I add reference image to make it.
If there is any suggestion, please add me.
Answer
Please add below.
res/drawable/gradient_bg.xml
<shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient android:angle="0" android:endColor="#ffffff" android:startColor="#000000" /> <corners android:topLeftRadius="@dimen/button_radius" android:topRightRadius="@dimen/button_radius"/> </shape>
Explain:
angle
0 : from Left to Right 90 : Bottom to Top 180 : Right to Left 270 : Top to Bottom
corners
If you want to make the rounded background, add tag : corners
We are here to answer your question about how to make RTL background android - If you find the proper solution, please don't forgot to share this with your team members.