saeed saeed - 1 year ago 99
Android Question

how to set alpha to fragment dynamically

I have an activity and 8 fragment in it. I want to set 50% alpha to one my fragments dynamically, when user click button .But it seems there is no alpha attribute for fragment.
My main questions is "how to st alpha or visibility dynamically "
any help will be appreciated thanks
i can set visibility by this code but its not perfect


and can i cast fragment like view?

Answer Source
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download