I have a rectangular LinearLayout that has some margin, some round corners and an alpha value of 0.3. Inside this layout I have 4 different layouts as I display different im
You can solve your problem with this solution. It works perfect.
parentView.getBackground().setAlpha(128); //your parent view's visibility is now %50 and child view's visibility remains same.