I want to create custom button class to create buttons dynamically in code. General request is opportunity to dynamically changing button size so that total button row width must fit screen width regardless of amount of buttons (1 or 4 or 10.. it doesn't matter). And in addition there is request to make square buttons. Thanks.
UPD: May be i need use another layout istead of button. My purposes is find good way to implement a few games with square field with many square buttons (elements) like tik-tac-toe, sudoku etc.