문제

How to make AndroidBootsrap buttons height smaller?

The padding between the button top/bottom and the text is too important compared to standard buttons. Using the bootstrapbutton:bb_size="small" button property also reduces the text and still keeps an important top/bottom padding.

도움이 되었습니까?

해결책

(Self-answered question, as it may help other users)

Edit AndroidBootstrap project > src > com.beardedhen.androidbootstrap > BootstrapButton.java:

Replace

    layout.setPadding(0, paddingB, 0, paddingB);

By

    layout.setPadding(0, (int)(paddingB*0.7), 0, (int)(paddingB*0.7));
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top