1

Android: Added Buttons into Scrollview do not have the right size

view story
linux-howto

http://stackoverflow.com – In an Activity I have added a horizontal Scrollview. This contains an "Add new Set" button and all previously added Sets as buttons. These Sets a saved in a SQLLite Database. In the beginning of my App I load all Sets from the database. For each Set I add an own Button into the scrollview. All buttons are shown, but the dynamically added buttons don’t have the right size. They should have the same height and width as the “Add new Set” button. How I can copy the dimensions of the first button to the others? Here my XML: <HorizontalScrollView android:id="@+id/horizontalScrollV (HowTos)