When setting bounds this.getLayoutParams().width/height is used, however when user specifies the width/height as WRAP_CONTENT or MATCH_PARENT it will return a constant -1 for MATCH_PARENT or -2 for WRAP_CONTENT, which just kills it. Using getWidth() seems to work, but I haven't fully tested it yet!
When setting bounds this.getLayoutParams().width/height is used, however when user specifies the width/height as WRAP_CONTENT or MATCH_PARENT it will return a constant -1 for MATCH_PARENT or -2 for WRAP_CONTENT, which just kills it. Using getWidth() seems to work, but I haven't fully tested it yet!