Android: Nested linear layout with different alpha value

前端 未结 5 1028
深忆病人
深忆病人 2021-01-14 12:14

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

5条回答
  •  死守一世寂寞
    2021-01-14 12:46

    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. 
    

提交回复
热议问题