Android layout with scrolling middle and fixed button bar at bottom of screen (button bar not showing) -
i'm working on screen layout having problem.
it has toolbar (being set action bar), scrolling pane , button bar @ bottom fixed bottom of screen visible.
for reason though button bar , buttons not visible if scroll bottom of screen, there no sign of them.
below xml layout
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/res-auto" android:layout_height="match_parent" android:layout_width="match_parent"> <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <include layout="@layout/toolbar" /> <scrollview xmlns:ads="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content"> <linearlayout android:id="@+id/relativelayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" > <android.support.design.widget.textinputlayout android:layout_width="match_parent" android:layout_height="wrap_content"> <edittext android:id="@+id/db_txtconnectionname" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="database connection name" android:singleline="true" android:inputtype="textnosuggestions" /> </android.support.design.widget.textinputlayout> <android.support.design.widget.textinputlayout android:layout_width="match_parent" android:layout_height="wrap_content"> <edittext android:id="@+id/db_txtserver" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="server" android:singleline="true" android:inputtype="textnosuggestions" /> </android.support.design.widget.textinputlayout> <android.support.design.widget.textinputlayout android:layout_width="match_parent" android:layout_height="wrap_content"> <edittext android:id="@+id/db_txtusername" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="username" android:singleline="true" android:inputtype="textnosuggestions" /> </android.support.design.widget.textinputlayout> <android.support.design.widget.textinputlayout android:layout_width="match_parent" android:layout_height="wrap_content"> <edittext android:id="@+id/db_txtpassword" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="password" android:singleline="true" android:inputtype="textpassword" /> </android.support.design.widget.textinputlayout> <edittext android:id="@+id/db_txtdatabase" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="database" android:singleline="true" android:inputtype="textnosuggestions" /> <android.support.design.widget.textinputlayout android:layout_width="match_parent" android:layout_height="wrap_content"> <edittext android:id="@+id/db_txtport" android:layout_width="fill_parent" android:layout_height="wrap_content" android:maxlength="6" android:hint="port" android:text="3306" android:singleline="true" android:inputtype="number"/> </android.support.design.widget.textinputlayout> <checkbox android:id="@+id/db_chkstorepassword" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/store_password" android:checked="true" /> <checkbox android:id="@+id/db_chkconnectviasshtunnel" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="connect via ssh tunnel"/> <textview android:layout_width="match_parent" android:layout_height="wrap_content" android:textstyle="bold" android:text="ssh connection settings" /> <android.support.design.widget.textinputlayout android:layout_width="match_parent" android:layout_height="wrap_content"> <edittext android:id="@+id/db_txtsshhost" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="ssh host" android:singleline="true" android:inputtype="textnosuggestions"/> </android.support.design.widget.textinputlayout> <android.support.design.widget.textinputlayout android:layout_width="match_parent" android:layout_height="wrap_content"> <edittext android:id="@+id/db_txtsshusername" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="ssh username" android:singleline="true" android:inputtype="textnosuggestions"/> </android.support.design.widget.textinputlayout> <android.support.design.widget.textinputlayout android:layout_width="match_parent" android:layout_height="wrap_content"> <edittext android:id="@+id/db_txtsshpassword" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="ssh password" android:singleline="true" android:inputtype="textpassword"/> </android.support.design.widget.textinputlayout> <android.support.design.widget.textinputlayout android:layout_width="match_parent" android:layout_height="wrap_content"> <edittext android:id="@+id/db_txtsshport" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="ssh port" android:text="22" android:singleline="true" android:inputtype="number"/> </android.support.design.widget.textinputlayout> <textview android:layout_margintop="10dp" android:layout_margin="10dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:layout_gravity="center_horizontal" android:text="leave database blank connect database on server" /> </linearlayout> </scrollview> <linearlayout android:id="@+id/buttoncontainer" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" style="?android:attr/buttonbarstyle" android:layout_alignparentbottom="true" android:layout_gravity="bottom"> <button android:id="@+id/db_btntest" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="test connection" /> <button android:id="@+id/db_btncreateedit" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="create" android:enabled="false" /> </linearlayout> <com.google.android.gms.ads.adview android:id="@+id/adview" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" ads:adsize="banner"/> </linearlayout> </relativelayout>
thanks can provide.
Comments
Post a Comment