2011-12-03 44 views
0

カスタムアダプターが挿入されているListViewがあります。私は、ListViewコントロール(これは私の質問に適用された場合でも、わからない)の各行のためにかなり基本的なレイアウトがあります。私は、リストビューの下部にある単一のTextViewをオーバーレイしたいListViewの下部にTextViewオーバーレイが表示されます

<RelativeLayout 
xmlns:android="http://schemas.android.com/apk/res/android" 
style="@style/BaseStyle" 
android:orientation="vertical" 
android:paddingLeft="5dip" 
android:paddingRight="5dip" 
android:paddingTop="8dip" 
android:paddingBottom="8dip" 
    > 

<TextView 
    android:id="@+id/text" 
    style="@style/BaseStyle.Title" 
/> 

</RelativeLayout> 

を、しかし、 Androidのレイアウトを使って作業することは、無駄をなくすための練習になる可能性は十分にはわかりません。 :)

答えて

1

FrameLayoutでメインレイアウトを折り返し、最後の子として重ねて表示するビューを配置します。私は、これはあなたが探しているものであることを確認していないあなたの説明から、

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/home_container" 
    android:layout_height="match_parent" 
    android:layout_width="match_parent"> 

     ... 

     your ListView 

     ... 

     your text view (it is gonna be on top of your layout) 
</FrameLayout> 

、あなたは私が知っている、あなたの質問でいくつかのより多くの情報を与える必要があります。

あなただけの各リスト項目の内部のTextViewについて話している代わりにした場合は、その後、あなたは自分のテキストビューのアライメントをspecifiyする必要があります。

android:layout_alignParentBottom="true" 
関連する問題