Reputation: 15
I have an application which has many icons (Buttons). I want to put a text below the icons (just like mainscreen). My icon size is 128x128 for high resolution, so android:drawableTop strategy doesnt work because I couldnt figure out a way of programmatically reducing the size of the drawable to 80x80dp. I would prefer not to create several little icon files.
Another idea offered was to put a text view below each button. This is possible but sounds very clunky way of achieving this.
Could someone suggest a way of achieving a text below the icons ?
Thanks
Upvotes: 1
Views: 1145
Reputation: 41106
I would use this layout structure for your purpose
<LinearLayout> <Button/> <TextView/> </LinearLayout>
Upvotes: 5