Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
不透明度を設定したいビューがあります。Eclipse は、0 から 1 の間の任意の値を使用できると教えてくれますが、データ型が double であるため、たとえば 0.5 は機能しません。
v.setAlpha(1);
データ型は float である必要がありますが、それが何を意味するのかわかりません。たとえば、不透明度を 50% に設定するにはどうすればよいですか?
ありがとう。