Android SDK: Button becomes colored when changing the background color on LinearLayout -


i have linearlayout in android app creating contains default button gradient gray color. linearlayout white when try change background color yellow button becomes yellow don't want happen. tried use color image set background color on linearlayout same thing happens. how solve problem? here code:

  <linearlayout      android:layout_width="match_parent"      android:layout_height="wrap_content"      android:gravity="center"      android:orientation="horizontal"      android:background="@color/yellow">       <button         android:id="@+id/buttoncart"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="button"/>   </linearlayout> 

solved: wait, works now. while buttons become colored , transparent in layout view in eclipse buttons unaffected when run app on phone. thought display same result when app runned. strange how become way in layout view...

in case may set gray background color android:background="#a4a4a4" button also..


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -