Skip to content Skip to sidebar Skip to footer

Android: How To Keep Corner Radius While Setting A Background Drawable?

Copy

and

LinearLayout myLayout=(LinearLayout) findViewById(R.id.myLayout);
myLayout.setBackgroundResource(R.drawable.card1);

I hope this will help you.

Post a Comment for "Android: How To Keep Corner Radius While Setting A Background Drawable?"