You made your button transparent. The first byte is the alpha.
Try v.setBackgroundColor(0xFF00FF00);
More Related Contents:
- setBackground vs setBackgroundDrawable (Android)
- How to set custom ActionBar color / style?
- Android : change button text and background color
- How to change the activity background from fragment inside it [closed]
- Android layout with one side round [closed]
- Android ImageView Scaling and translating issue
- Difference between a View’s Padding and Margin
- Get root view from current activity
- How can I dynamically set the position of view in Android?
- Error referencing an inner class View in layout/main.xml
- Change background color of android menu [duplicate]
- How do I clone a View?
- Change clickable TextView’s color on focus and click?
- When a Fragment is replaced and put in the back stack (or removed) does it stay in memory?
- How to change the track color of a SwitchCompat
- android change text color of items in spinner
- Android 2.1 View’s getDrawingCache() method always returns null
- android set custom font to a paint
- Android Custom Layout – onDraw() never gets called
- How to make a view with rounded corners?
- Android OpenGL ES Transparent Background
- How can I change the background of Android alert dialogs?
- Loop through all subviews of an Android view?
- how to add background image to activity?
- Change progressbar color through CODE ONLY in Android
- Android count down timer in background
- How to use view flipper with three layouts?
- Awful background image quality in Android
- How to change alert dialog header divider color android
- Hex colors in Android are sometimes eight digits. How? What is the difference between #FFFFFF and #FFFFFF00?