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.
私は現在TextView.SetBackgroundColor(Color.WHITE);、Javaコードで次のようなものを使用しています。Javaを介してテキストビューに透明性を追加できるようにしたいと思います...これはXML経由の#AARRGGBB形式で簡単に実行できますが、プログラムでこれを実現する方法が見つかりません。
TextView.SetBackgroundColor(Color.WHITE);
#AARRGGBB
TextView.SetBackgroundColor(Color.argb(a_int, r_int, g_int, b_int));
または:
TextView.SetBackgroundColor(Color.parseColor("#AARRGGBB"));
使用できます