0

i have taken a layout like this having the designed background image enter image description here

i need a suggestion which is the best approach either using background image or rounded corner at one end XML

<LinearLayout 
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal"
    android:layout_weight="1"
    android:background="@drawable/test_back"
    android:padding="10dp">

   <TextView
       android:id="@+id/textView2"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:text="TextView" />
</LinearLayout>
SilentKiller
  • 6,944
  • 6
  • 40
  • 75
Issac Balaji
  • 1,441
  • 1
  • 13
  • 25

1 Answers1

0

Here i have attached some links, Please go through it, If you have any doubt let me know.

If you want to add rounded corner to any kind of android view like linear layout, relative layout, button etc., follow the below links which i have attached.

keep this drawable as background for the view to which you want to keep rounded corner border. Let’s keep it for a LinearLayout.

Rounded Corner Reference1

Rounded Corner Reference2

Rounded Corner Reference3

Community
  • 1
  • 1
KesaVan
  • 1,031
  • 16
  • 32