LinearLayout as custom button, OnClickListener never called
- by ohra
I've been using the common Android Button with both icon (drawableTop) and text. It works really poorly if you want to have a non-standard size button, so I decided to make a custom button with a LinearLayout having the following layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout…