水纹上升的动画
来源:互联网 发布:月课程表软件 编辑:程序博客网 时间:2024/05/11 04:15
public class TitanicMainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_imitate_titanic_main); TitanicTextView tv = (TitanicTextView) findViewById(R.id.my_text_view); // set fancy typeface tv.setTypeface(Typefaces.get(this, "Satisfy-Regular.ttf")); // start animation new Titanic().start(tv); }}
import android.content.Context;import android.graphics.Typeface;import android.util.Log;import java.util.Hashtable;public class Typefaces { private static final String TAG = "Typefaces"; private static final Hashtable<String, Typeface> cache = new Hashtable<String, Typeface>(); public static Typeface get(Context c, String assetPath) { synchronized (cache) { if (!cache.containsKey(assetPath)) { try { Typeface t = Typeface.createFromAsset(c.getAssets(), assetPath); cache.put(assetPath, t); } catch (Exception e) { Log.e(TAG, "Could not get typeface '" + assetPath + "' because " + e.getMessage()); return null; } } return cache.get(assetPath); } }}
0 0
- 水纹上升的动画
- CAlaye的动画 CATransition水纹动画
- 水纹动画
- Android水纹波浪动画
- 水纹波浪效果动画
- 上升动画,缩小动画
- C#实现的水纹特效例子
- 设置简单的类似水纹效果
- 2D中水纹的实现
- 增加listview的item点击水纹效果
- <Shader> 最终版本的水纹效果
- DUIlib 实现渐变上升动画
- Android 5.0 Button 按钮水纹效果的适配问题
- BGRABitmap图像操作9d:渲染前面的水纹
- 播放视频时有残影、水纹的原因
- 水纹效果
- 水纹效果
- 所闻所获1:动画效果的进度球(水面上升、水面涌动)
- php向JavaScript传递json数据并解析
- 自定义控件--titlebar
- 51CTO博客-IT的点点滴滴
- JAVA连接Access过程中出现的bug集
- Asp.net用户控件和委托事件
- 水纹上升的动画
- 自定义N秒倒计时
- 四种创建对象的方法
- a20_TF_Waiting for root device /dev/mmcblk1p2...
- 关于卷积的一个血腥的讲解
- 蓝牙连接外设的流程
- JavaScript下用IE的方式实现文件读取
- 获得程序当前路径System.getProperty("user.dir")
- IOS Table中Cell的重用reuse机制分析