How to set the background color of new activity after clicking tabs
Posted
by androidProgrammer
on Stack Overflow
See other posts from Stack Overflow
or by androidProgrammer
Published on 2010-05-28T15:03:47Z
Indexed on
2010/05/28
15:11 UTC
Read the original article
Hit count: 133
android
Hi, I am switching activities on tab clicks and successful at this. But, in one of my Activity class I am doing the following: ` public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.main);
}
main.xml has the following:
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#BDBDBD"
>
I want to change the background of this layout only and I want tabs to their as it is. But with the current
android:layout_height="fill_parent"in main.xml my background is overwriting the tabs which means I am unable to see tabs. and If I make
android:layout_height="wrap_content"` I cannot see any change taking and tabs are still their.
Please help.
© Stack Overflow or respective owner