Images in android app getting a weird background gradient -


i decided run same exact app 1 day , figured images getting these weird black gradient-like background instead of transparency. seems images not being rendered correctly.

the image transparent. , seems background of image being replaced error.

anyone know how fix this?

enter image description here

enter image description here

here xml layout file:

<tablelayout     xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:padding="@dimen/padding_small"     android:stretchcolumns="2" >      <tablerow         android:id="@+id/tablerow1"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:padding="@dimen/padding_small" >          <textview             android:id="@+id/textview1"             android:layout_width="wrap_content"             android:layout_height="match_parent"             android:gravity="center|fill_horizontal"             android:padding="@dimen/padding_medium"             android:text="@string/vincentidesc2"             android:textappearance="?android:attr/textappearancemedium"             android:textstyle="italic"              android:layout_weight="1"             android:ellipsize="none"             android:maxlines="100"             android:scrollhorizontally="false" />     </tablerow>      <tablerow         android:id="@+id/tablerow2y"         android:layout_width="wrap_content"         android:layout_height="wrap_content">          <imageview             android:id="@+id/yes_button"             android:layout_width="80dp"             android:layout_height="50dp"             android:layout_gravity="center"             android:background="@drawable/abs__btn_cab_done_default_holo_light"             android:scaletype="fitcenter"             android:src="@drawable/yes_button" />     </tablerow>      <tablerow         android:id="@+id/tablerow2"         android:layout_width="wrap_content"         android:layout_height="wrap_content" >          <imageview             android:id="@+id/no_button"             android:layout_width="80dp"             android:layout_height="50dp"             android:layout_gravity="center"             android:background="@drawable/abs__btn_cab_done_default_holo_light"             android:scaletype="fitcenter"             android:src="@drawable/no_button" />     </tablerow>      <tablerow         android:id="@+id/tablerow3"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:padding="@dimen/padding_small" >          <textview             android:id="@+id/textview2"             android:layout_width="wrap_content"             android:layout_height="match_parent"             android:gravity="center|fill_horizontal"             android:padding="@dimen/padding_medium"             android:text="@string/vincentinotedesc2"             android:textappearance="?android:attr/textappearancesmall"             android:textstyle="normal"              android:layout_weight="1"             android:ellipsize="none"             android:maxlines="100"             android:scrollhorizontally="false" />     </tablerow> </tablelayout> 

and fragment

public class description2fragment extends sherlockfragment {     onnextpressedlistener mlistener;     view nobutton;     view yesbutton;      //update personal info variables  private long piid; public personalinfo newpi; private personalinfodatasource datasource;  @override public view oncreateview(layoutinflater inflater, viewgroup container, bundle savedinstancestate) {          return inflater.inflate(r.layout.intro_description2, container, false);  }  @override public void onstart() {     super.onstart();      nobutton = getactivity().findviewbyid(r.id.no_button);     nobutton.setonclicklistener(new view.onclicklistener() {         public void onclick(view v) {             datasource = new personalinfodatasource(getactivity());             datasource.open();              list<personalinfo> l = datasource.getallpersonalinfos();             if(l==null) {                 newpi = datasource.createpersonalinfo("", "", "", "", "", false,"","","","");             } else if (l.size()==0) {                 newpi = datasource.createpersonalinfo("", "", "", "", "", false,"","","","");             } else {                 newpi = l.get(0);             }              datasource.updatepersonalinfostat(newpi.getid(), false);              datasource.close();             mlistener.nextpressed(1);          }     });      yesbutton = getactivity().findviewbyid(r.id.yes_button);     yesbutton.setonclicklistener(new view.onclicklistener() {         public void onclick(view v) {                            //update stat 1 = true             datasource = new personalinfodatasource(getactivity());             datasource.open();              list<personalinfo> l = datasource.getallpersonalinfos();             if(l==null) {                 newpi = datasource.createpersonalinfo("", "", "", "", "", false,"","","","");             } else if (l.size()==0) {                 newpi = datasource.createpersonalinfo("", "", "", "", "", false,"","","","");             } else {                 newpi = l.get(0);             }              datasource.updatepersonalinfostat(newpi.getid(), true);              datasource.close();             mlistener.nextpressed(1);          }     }); } } 

thank you!

edit 1: upon implementing actionbarsherlock & running layout (subbing images stock ic launcher icons), , putting in background color visibility, this: enter image description here.

you can see abs transparent line right of android icons.

so without seeing issue in layout, i'd check images themselves. resaved? actionbarsherlock iconset hasn't been removed @ all? make sure abs icon exists of appropriate resolutions in drawable-res folders.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -