user10066258
user10066258

Reputation: 21

Text adjustment in button under scrollbars in android studio

I'm working on scrollView.i have created 20 buttons under Linear Layout inside ScrollView. Now I'm writing the text inside button, I used android:padding_centre-verticle="1dp", but it's fetching warning massage that it can be used only above api level 26.I have to write text inside button centre. Is there other solution. Thanks

Upvotes: 1

Views: 25

Answers (1)

Viswanath Kumar Sandu
Viswanath Kumar Sandu

Reputation: 2274

You can use gravity="center_vertical"

Make sure your are not using layout_gravity

Upvotes: 1

Related Questions