I have requirement of creating two activities and their layout programmatically. And I want to create something like this,
Create a first activity and with a fixed background and second activity which will have a transparent area at all side so there the view of first activity will be shown.
Right now I am creating one activity and it shows OK.
and
setTheme( android.R.style.Theme_Translucent );
when i open second activity the view shows with margin but with the plain background and not the transparent view of first activity.
I have set the back ground of second activity like this, rLayout.setBackgroundColor(Color.parseColor("#80000000"));
It is showing the grey color at background.
I know a one work around by creating dialog, But it would be better to use activity as per our requirement.