-1
I have the following layout on xml on my Android designer:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Ativar Notificações:" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Inativo"
android:id="@+id/checkAtivarNotificacao" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Tempo em Minutos das Notificações:"
android:layout_marginTop="10dp" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="none|number"
android:ems="10"
android:id="@+id/txtIntervaloNotificacao"
android:maxLength="4"
android:focusable="true"
android:focusableInTouchMode="true"/>
</LinearLayout>
</ScrollView>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom|center_horizontal">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Salvar"
android:id="@+id/btSalvarConfiguracao" />
</LinearLayout>
The problem is that according to what I keep adding components on the screen and Scrollview goes down the save button disappears, so I want to leave a footer space with the save button fixed and the content of the flexible layout regardless of how much increase, exactly as it happens in the standard android messaging app illustrated below:
Hugo Fagundes I reformulated the question, maybe now it gets clearer, thank you!
– lima_t
Okay, I edited my answer, take a look ;)
– hugofsousa