Skip to main content

Posts

Showing posts with the label alignment

Android UI align button at the bottom of scrollview

I want to place a button of the screen in the below layout. The challenge is that there is a scroll view in the layout that does not have enough content to fill the parent. Here is the layout <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:weightSum="100" > <ScrollView android:id="@+id/svAnsSum" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="100" > <LinearLayout android:id="@+id/llAnsSum2" style="@style/CodeFont.BlueText" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" >