2012-04-07 3 views
0

조각 모음에 꼬리말을 추가하려고합니다. 나는 조각에 모든 것을 변환하기 전에 잘 일한 무엇, 이제 바닥 글 대신 아래의, 목록 조각 위에 보여줍니다조각에 끈적한 바닥 글 추가

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical" 
    android:layout_height="fill_parent" 
    android:layout_width="fill_parent" 
> 
    <!-- Footer -->  
    <TextView 
      android:id="@+id/footer" 
      android:background="#919191" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      style="@style/Footer" 
      android:layout_alignParentBottom="true" 
     /> 
    <!-- Footer --> 

    <fragment android:name="com.app.ListingFragment" 
      android:id="@+id/fragmentListing" 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:layout_above="@id/footer" 
    /> 

</LinearLayout> 

<style name="Footer"> 
    <item name="android:textColor">#ffffff</item> 
    <item name="android:padding">2dip</item> 
    <item name="android:background">#919191</item> 
</style> 

답변

0

있는 LinearLayout은 "layout_alignParentBottom"와 "layout_above"을 이해하지 못합니다. 그것들을 제거하고 TextView를 조각으로 바꿔야합니다.

"layout_alignParentBottom"및 "layout_above"는 RelativeLayouts에 포함 된보기에서만 작동합니다.

+0

감사합니다. 그렇습니다. 프리 조각 레이아웃은 RelativeLayouts입니다. –

관련 문제