android - I want to bring my relative layout in bottom -
what changes shall make bring relative layout in bottom?
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <relativelayout android:layout_width="match_parent" android:layout_height="86dp" android:layout_alignparentbottom="true" android:layout_weight="0.08" android:gravity="bottom" > </relativelayout> </linearlayout>
you need change parent layout relativelayout
, since attribute android:layout_alignparentbottom
nothing linearlayout
children:
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <relativelayout android:layout_width="match_parent" android:layout_height="86dp" android:layout_alignparentbottom="true" > </relativelayout> </relativelayout>
Comments
Post a Comment