相关疑难解决方法(0)

Android上视图背景颜色的动画更改

如何动画Android上视图背景颜色的变化?

例如:

我有一个红色背景颜色的视图.视图的背景颜色变为蓝色.如何在颜色之间进行平滑过渡?

如果无法通过视图进行此操作,则欢迎使用其他选项.

animation android view background-color

313
推荐指数
16
解决办法
21万
查看次数

将PNG和颜色添加到背景中

我有LinearLayout,我有png我用作瓷砖 - 但我也想要它背后的颜色是白色的.

那可能吗?

我的代码是:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="vertical" android:id="@+id/LinearMain" android:background="@drawable/bcktiles">
Run Code Online (Sandbox Code Playgroud)

而且可绘制的是:

    <?xml version="1.0" encoding="utf-8"?>
 <bitmap xmlns:android="http://schemas.android.com/apk/res/android"
    android:src="@drawable/bgsite" android:tileMode="repeat">
    </bitmap>
Run Code Online (Sandbox Code Playgroud)

我不知道在哪里放#fff

谢谢

android

3
推荐指数
1
解决办法
2494
查看次数

标签 统计

android ×2

animation ×1

background-color ×1

view ×1