xml

  1. Home
  2. chevron_right
  3. xml

How to make a background button selector in XML?

turned_in_not, , , ,
comment2 Comments
Step 1: Create an XML in the drawable folder and name it selected_item.xml (or any another name you want but to be suggestive). The code in this xml will be: <shape android="http://schemas.android.com/apk/res/android" shape="rectangle"> <solid color="#80000000"></solid> </shape> The color=”#80000000″ is transparent black.…
Menu