Problem is that, when screen changes orientation, textview background color is gone. here is TextView definition:
<TextView
    android:id="@+id/nomResult"
    android:layout_width="fill_parent"
    android:layout_height="80sp"
    android:text="Nom result"
    android:layout_below="@id/svitrkods"
    android:layout_alignRight="@+id/svitrkods" 
    android:layout_above="@+id/exit_button"
    android:freezesText="true"
    />
App is inventory app. When product is already in inventory, then i am displaying text in textview with red background. vaiIrInvent.setBackgroundColor(0xfff00000); that works. but when screen rotates, background color is gone...
When application stars, i save original background color of textview defBackColor = vaiIrInvent.getBackground();
then in app i am switching to red or default.
if (isInInventory)
{
    vaiIrInvent.setBackgroundColor(0xfff00000);
}
else
{
    vaiIrInvent.setBackgroundDrawable(defBackColor);
}
Maybe there is some option like android:freezesText ? Thanks.
 
     
     
    