以下のコードを使用して、RelativeLayout の角を丸めています。これをフォルダに保存mybackground.xml
します。
角を丸くすることはうまくいきますが、問題は、RelativeLayout の背景として透明な画像を追加したいことです。どうすれば両方を達成できますか?RelativeLayoutで画像とdrawable xml(角を丸めるため)を同時に使用するにはどうすればよいですか...drawable
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding="10dp">
<corners android:bottomRightRadius="30dp"
android:bottomLeftRadius="30dp"
android:topLeftRadius="30dp"
android:topRightRadius="30dp" />
</shape>