android - Unable to align bottom feature for included layout in other xml -
i have footer xml file. including file in other files like....
<relativelayout android:id="@+id/footer" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentbottom="true"> <include layout="@layout/footer" /> </relativelayout>
but getting warning "invalid layout param in linearlayout: layout_alignparentbottom" can 1 tell me how align included xml @ bottom without using sizes
you can't use property alignparentbottom
in linearlayout. that's relativelayout.
for linearlayout, can use layout_gravity
<linearlayout> <!-- container linearlayout --> <linearlayout android:id="@+id/footer" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="bottom"> <include layout="@layout/footer" /> </linearlayout> </linearlayout>
hope helps.
Comments
Post a Comment