【问题标题】:android make a view display slowlyandroid使视图显示缓慢
【发布时间】:2013-07-24 04:33:36
【问题描述】:

当视图在屏幕上慢慢可见时,我想制作一个 UI 效果。

     <View
            android:id="@+id/header_vertical_divider_3"
            android:layout_width="fill_parent"
            android:layout_height="60dp"
            android:background="@drawable/engraved_bg" />

可绘制的“engraved_bg”在哪里:

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
  <gradient
      android:startColor="#880096ff"
      android:endColor="#88001d5e"
      android:angle="180" />
</shape>

如何达到可绘制对象不可见且透明度降低到当前颜色的效果?

提前致谢!

【问题讨论】:

  • 在 Android 中一切都很慢...

标签: android user-interface opacity transparent


【解决方案1】:

您需要为此制作动画 - 查看 this answer 并调整持续时间参数。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-03-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-09
    相关资源
    最近更新 更多