Currently I’m creating a button with Image and Text. My problem is I want to move the text to teh buttom of the button.
<Button
android:layout_weight=".30"
android:layout_margin="2dp"
android:background="@drawable/btnforgot"
android:layout_height="60dp"
android:layout_width="100dp"
android:text="Forgot "/>
Hope someone can help me out in this regard. Searched many places but couldn’t come up with a solution.
Thanks in advance.
Simply add
android:gravity="bottom|center"to yourButtondeclaration. If you want to lift it from the bottom slightly, then addandroid:paddingBottom="4dp"as well.