Bamas
Bamas

Reputation: 1

ScrollView with 2 Buttons which are fixed at the bottom

I just know how to fix two buttons at the bottom of RelativeLayout. But the problem is that small displays can not see everything, so I want to have a scrollLayout but also a Relative Layout so the two buttons are at the bottom of the display every time. Does anyone have an idea how to implement it? Thanks very much :)

Upvotes: 0

Views: 635

Answers (1)

Mark
Mark

Reputation: 156

Try it like this:

  <LinearLayout>
        <ScrollLayout>
            <RelativeLayout>
                Your content here
            </RelativeLayout>
        </ScrollLayout>
        <RelativeLayout>
            Your two buttons here
        </RelativeLayout>
  </LinearLayout>

Upvotes: 1

Related Questions