私は現在、「人」で使用されているリスト ビューのようなリスト ビューに取り組んでいます。StickyListHeadersライブラリを使用していますが、リスト ヘッダー自体のスタイル設定に問題があります。
現時点では、これは私のxmlです:
<?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="wrap_content"
android:layout_marginTop="5dp"
android:orientation="vertical">
<TextView
android:id="@+id/header_text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="15dp"
android:textColor="@color/ugent_blue_dark"
android:textSize="15sp"
android:textStyle="bold" />
<View
android:layout_height="1dp"
android:layout_width="fill_parent"
android:background="@color/ugent_blue_light">
</View>
</LinearLayout>
前に述べたように、私が達成したいのは、「人」ビューのようなリスト ビューです。この時点で、LinearLayout は透明です。LinearLayout の background プロパティを使用してこれを修正したいと考えています。背景に「溶け込む」には、使用しているテーマと同じ背景を使用する必要があります。明確にするために:透明にしたくないので、背景を適用しようとしています。今、これは私が問題を抱えているところです:私が使用しているテーマは、親Theme.Sherlock.Light
として親として持っていandroid:Theme.Light
ます。
スクリーンショットを見ると; 「12 Feb」のバーが透明になっていることがわかります。アプリの他の部分と同じ背景にしたい。
だから、私の質問は次のとおりbackground:
です。アプリの背景と同じ背景を持つようにするには、LinearLayout に何を適用する必要がありますか?
前もって感謝します!