Widget - Listview Selector

listview1.setSelector(android.R.color.transparent);


//You can change the color & radius too.
//1.create gradient

android.graphics.drawable.GradientDrawable style = new android.graphics.drawable.GradientDrawable();

//2.set the gradient color & radius

style.setColor(Color.parseColor("#B3E5FC"));
style.setCornerRadius(17);

//.set listview1 selector to it

listview1.setSelector(style);

Komentar

Cara pembuatan Apps paling Populer

Create Stopwatch App in Android using Sketchware

How to enable download in webview in Sketchware apps?

TextInputLayout in Sketchware

Create Stopwatch App in Android using Sketchware

How to integrate Admob Ads in Sketchware project using AIDE?

How to find and​ highlight a word in a text field in Sketchware?

Code for implementing Notifications in Sketchware

A Flash Light App in Sketchware

Create a Stopwatch App using Chronometer in Sketchware

Create app to save all passwords, protected using voice key