android - Sign panel layout above buttons layout -
i trying define relativelayout buttons aligned @ bottom of screen , under sign panel layout, avoid overlapping. can't it.
could please explain how can this?
<relativelayout android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_alignparentbottom="true"> <linearlayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignparentleft="true" android:layout_alignparentstart="true" android:background="@drawable/customborder" android:id="@+id/sigpanel" android:baselinealigned="false" android:layout_marginbottom="5dp"> </linearlayout> <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentbottom="true" > <button android:id="@+id/button_next" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginbottom="15dip" android:layout_marginright="10dip" android:layout_marginleft="10dp" android:layout_weight="1" android:background="@drawable/gradient_green" android:drawableleft="@drawable/ic_next" android:layout_alignparentbottom="true" android:gravity="left|center" android:shadowcolor="#014927" android:shadowdx="0.0" android:shadowdy="0.0" android:shadowradius="2.5" android:text=" next" android:textcolor="#001b51" android:textsize="20sp" android:textstyle="bold"/> <button android:id="@+id/button_cancel" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginbottom="15dip" android:layout_marginright="10dip" android:layout_alignparentbottom="true" android:layout_weight="1" android:background="@drawable/gradient_red" android:drawableleft="@drawable/ic_cancel" android:gravity="center" android:shadowcolor="#014927" android:shadowdx="0.0" android:shadowdy="0.0" android:shadowradius="2.5" android:text="cancel" android:textcolor="#001b51" android:textsize="20sp" android:textstyle="bold" /> </linearlayout> </relativelayout>
i checked code, solution. can use xml code.
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignparentbottom="true"> <linearlayout android:id="@+id/sigpanel" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_above="@+id/button_panel" android:layout_alignparentleft="true" android:layout_alignparentstart="true" android:baselinealigned="false" android:orientation="horizontal"> </linearlayout> <linearlayout android:id="@+id/button_panel" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentbottom="true"> <button android:id="@+id/button_next" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:layout_marginbottom="15dip" android:layout_marginleft="10dp" android:layout_marginright="10dip" android:layout_weight="1" android:background="@drawable/gradient_green" android:drawableleft="@drawable/ic_next" android:layout_alignparentbottom="true" android:gravity="left|center" android:shadowcolor="#014927" android:shadowdx="0.0" android:shadowdy="0.0" android:shadowradius="2.5" android:text=" next" android:textcolor="#001b51" android:textsize="20sp" android:textstyle="bold" /> <button android:id="@+id/button_cancel" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:layout_marginbottom="15dip" android:layout_marginright="10dip" android:layout_weight="1" android:background="@drawable/gradient_red" android:drawableleft="@drawable/ic_cancel" android:gravity="center" android:shadowcolor="#014927" android:shadowdx="0.0" android:shadowdy="0.0" android:shadowradius="2.5" android:text="cancel" android:textcolor="#001b51" android:textsize="20sp" android:textstyle="bold" /> </linearlayout> </relativelayout>
Comments
Post a Comment