My list view displaying darker color of background color
My list view as
<ListView
android:layout_below="@+id/tags_activity_list_empty_msg"
android:id="@+id/select_names_tags_lv"
android:background="@android:color/transparent"
android:fastScrollEnabled="true"
android:paddingLeft="0dip"
android:paddingTop="10.5dip"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fadeScrollbars="true"
android:cacheColorHint="#00000000"
android:layout_gra开发者_开发百科vity="center_vertical"/>
when I run my application list items shows darker color of same as I used in background color of layout. I tried 1 and 2 and 3 but could not find my solution. I also used view.setBackgroundColor(android.R.color.transparent);
in getView method but problem is same. What should be the solutions?
view.setBackgroundColor(android.R.color.transparent);
should be view.setBackgroundResource(android.R.color.transparent)
cause setBackgroundColor take a hex color value as parameter.
精彩评论