Android registration form -
i designing registration form application.
i trying make that;

meanwhile have succeeded designing components want (with linear layout , rounded corners), can not identify why button not appear on screen?

if can please guide me thankful
this xml file
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:background="@drawable/main_background" tools:context="managers.sessionmanager.clientregistration"> <scrollview android:layout_width="match_parent" android:fillviewport="true" android:layout_height="match_parent"> <linearlayout android:layout_width="match_parent" android:orientation="vertical" android:layout_height="match_parent"> <linearlayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:background="#ffffff" android:layout_marginbottom="110dp" android:layout_marginleft="40dp" android:layout_marginright="40dp" android:layout_margintop="110dp" android:id="@+id/textfieldslayout" android:paddingleft="20dp" android:paddingright="20dp"> <linearlayout android:layout_width="fill_parent" android:layout_height="40dp" android:background="@drawable/item_holder" android:orientation="vertical" android:layout_alignparenttop="true" android:layout_alignparentleft="true" android:layout_alignparentstart="true" android:id="@+id/firstnamelayout" android:layout_margintop="10dp"> <edittext android:id="@+id/firstnameet" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_info" android:gravity="center|left" android:hint="first name" android:paddingbottom="8dp" android:textcolorhint="#f7941e" android:paddingleft="16dp" android:paddingright="16dp" android:paddingtop="8dp" android:textcolor="#6d6e71" android:textsize="20sp"> </edittext> </linearlayout> </linearlayout> <button android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/orange_button_selector" android:text="@string/register" android:id="@+id/okbtn" android:textcolor="@android:color/background_light" /> </linearlayout> </scrollview> </linearlayout> i using itemholder , iteminfo if can can add it.
thanks in advance help, eden ben simon
the linearlayout sibling of button has height = match_parent has wrap_content allow button visible.
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" tools:context="managers.sessionmanager.clientregistration"> <scrollview android:layout_width="match_parent" android:fillviewport="true" android:layout_height="match_parent"> <linearlayout android:layout_width="match_parent" android:orientation="vertical" android:layout_height="match_parent"> <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" <!-- update attribute --> android:orientation="vertical" android:background="#ffffff" android:layout_marginbottom="110dp" android:layout_marginleft="40dp" android:layout_marginright="40dp" android:layout_margintop="110dp" android:id="@+id/textfieldslayout" android:paddingleft="20dp" android:paddingright="20dp"> <linearlayout android:layout_width="fill_parent" android:layout_height="40dp" android:orientation="vertical" android:layout_alignparenttop="true" android:layout_alignparentleft="true" android:layout_alignparentstart="true" android:id="@+id/firstnamelayout" android:layout_margintop="10dp"> <edittext android:id="@+id/firstnameet" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center|left" android:hint="first name" android:paddingbottom="8dp" android:textcolorhint="#f7941e" android:paddingleft="16dp" android:paddingright="16dp" android:paddingtop="8dp" android:textcolor="#6d6e71" android:textsize="20sp"> </edittext> </linearlayout> </linearlayout> <button android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="register" android:id="@+id/okbtn" android:textcolor="@android:color/background_light" /> </linearlayout> </scrollview> </linearlayout> however have used relativelayout plus linearlayout design form.
Comments
Post a Comment