I have two buttons in xml like this:
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:background="@drawable/button1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_margin="10dp"/>
<Button
android:background="@drawable/button2"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_margin="10dp"/>
</LinearLayout>
</ScrollView>
However the buttons appear square while my image's height is 1/3 of its width. How can I make the buttons height 1/3 of its width?