How to create a background with Image, Rounded Corners without borders

后端 未结 6 1279
盖世英雄少女心
盖世英雄少女心 2020-12-20 05:29

I\'m trying to create a background for my LinearLayout that has an Image with rounded corners. I\'ve seen many examples how to do that but not exactly what I want. In most

6条回答
  •  春和景丽
    2020-12-20 05:59

    you can try using ImageView. In Image view set

    android:src="@drawable/yourimage"
    android:background="@drawable/cornershape"
    

    now use the image view in FrameLayout. so that other layouts can be placed over the ImageView

提交回复
热议问题