I am setting background for login screen in java with following line:
getActivity().getWindow().setBackgroundDrawableResource(R.drawable.bg_wood);
But when user logins to app,i have to remove this background.How can I do this ?
I am setting background for login screen in java with following line:
getActivity().getWindow().setBackgroundDrawableResource(R.drawable.bg_wood);
But when user logins to app,i have to remove this background.How can I do this ?
Try this
getActivity().getWindow().setBackgroundDrawableResource(0);
Or
getActivity().getWindow().setBackgroundDrawableResource(new ColorDrawableResource(R.color.transparent));
make background white using this code in oncreate method
getActivity().getWindow().setBackgroundDrawable(new ColorDrawable(Color.WHITE));
you can change background color by changing color of ColorDrawable.