我想为android制作一个色彩效果应用程序。 如何通过Android Studio上的代码将颜色效果应用于图像?示例图像;
答案 0 :(得分:-1)
在图像顶部创建一个视图,并将背景颜色设置为所需的颜色并减少增加透明度
<FrameLayout
android:height="wrap_content"
android:width="wrap_content">
<ImageView
android:height="yourheight"
android:width="yourwidth"
android:src="@drawable/yourimage" />
<View
android:height="match_parent"
android:width="match_parent"
android:background="yourcolorinAGBRformat">
</FrameLayout>
谢谢!