android - background transparency in TabWidget -


when set tabwidget transparent, changes shade color of it. use this:

0% (transparent) -> #00 in hex 20% -> #33 50% -> #80 75% -> #c0 100% (opaque) -> #ff

here xml:

<relativelayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent" >      <tabhost         android:id="@android:id/tabhost"         android:layout_width="fill_parent"         android:layout_height="fill_parent" >          <linearlayout             android:layout_width="fill_parent"             android:layout_height="fill_parent"             android:orientation="vertical"               >              <framelayout                 android:id="@android:id/tabcontent"                 android:layout_width="fill_parent"                 android:layout_height="0dip"                 android:layout_weight="1"                  />              <tabwidget                 android:id="@android:id/tabs"                 android:layout_width="fill_parent"                 android:layout_height="wrap_content"                 android:layout_weight="0"                 android:alpha="20"                 android:background="#d9214075" />          </linearlayout>     </tabhost>    </relativelayout> 


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -