How to make a linearLayout partially transparent in android?

前端 未结 7 1841
刺人心
刺人心 2021-01-31 04:01

I have a RelativeLayout containing 2 LinearLayouts one of them is partially covering the other. I want to make the part of the LinearLayout

7条回答
  •  轮回少年
    2021-01-31 04:58

    set Top Linear Layout's background as

    background="#CCFFFFFF" in your layout.xml file

    change alpha mode for more transparency here "CC".

    ("00" as full transparent)

    https://stackoverflow.com/a/4990254/665561

提交回复
热议问题