我目前正在处理像'People'中使用的列表视图的列表视图。我正在使用StickyListHeaders库,但我在自己的列表头文件中遇到问题。使用Theme.Light背景作为LinearLayout背景
目前,这是我的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上使用背景属性来解决这个问题。为了与背景“融合”,它必须使用与我使用的主题相同的背景。澄清:我不希望它变得透明,这就是为什么我试图应用背景。 现在,这是我遇到问题的地方:我正在使用的主题以父母Theme.Sherlock.Light
作为父母android:Theme.Light
。
如果你看截图;你可以看到'2月12日'的酒吧是透明的。我希望它具有与应用程序其余部分相同的背景。
所以,我的问题是:我需要什么background:
应用上的LinearLayout,使其具有相同的背景,我的应用程序的背景是什么?
在此先感谢!
'将图像设为浅'?没有图像。 – Silox 2013-02-09 22:34:28