Webdzinez
Webdzinez

Reputation: 15

Text below buttons in android

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

Answers (1)

sat
sat

Reputation: 41106

I would use this layout structure for your purpose

<LinearLayout>
<Button/>
<TextView/>
</LinearLayout>

Upvotes: 5

Related Questions