android - Listview transparency is not working -


i have tried , nothing working... can me make list transparent background...

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:paddingbottom="@dimen/activity_vertical_margin" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" tools:context="com.example.myapp.main$placeholderfragment2" >   <autocompletetextview      android:id="@+id/edittext1"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:hint="@string/addproduct"     android:singleline="true"     android:visibility="gone"     android:imeactionlabel="add" />     <!-- required singleline ime -->  <listview     android:id="@+id/list"     android:layout_width="match_parent"     android:layout_height="0dip"     android:layout_weight="1"     android:background="#00000000"     android:cachecolorhint="#00000000"     android:listselector="#00000000" > </listview> </linearlayout> 

kindly note im using adapter custom item layout , here layout -single- list item

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#00000000" >     <textview         android:id="@+id/product"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="@string/txt"         android:textappearance="?android:attr/textappearancelarge"          android:background="#00000000" />     <textview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="@string/sep" />     <textview         android:id="@+id/price"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="@string/num" />      <textview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:paddingleft="5dp"         android:text="@string/currency" />  </linearlayout> 

i using #00000000 in every view stoping transparency , no use

update: have tried .setalpha((float) 0.0); in code , got whole list transparent, in fact want background , not text in it..

you should not setting background @ if want transparent.

if doesn't work may want try:

android:background="@null" 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -