码迷,mamicode.com
首页 >  
搜索关键字:drawable animation 循环播放    ( 4617个结果
android 背景图片的设置
在java文件中对控件设置背景图片layout.setBackgroundDrawable(getResources().getDrawable(R.drawable.bgimage))在设置中,通过发送广播对整个布局中的背景进行更改。menu_bg1.setOnClickListener(new ...
分类:移动开发   时间:2014-05-27 03:07:20    阅读次数:402
Drawable转换为Bitmap两种方法
如果通过网络加载了一张位图,想拿到这张位图的Bitmap,有两种办法,至于那种好,可能要看是在什么情况下了1,根据已有的Drawable创建一个新的Bitmap:private Bitmap bitmap;private void drawableToBitamp(Drawable drawable...
分类:其他好文   时间:2014-05-23 11:04:39    阅读次数:323
Android Property Animation动画
3.0以前,android支持两种动画模式,tween animation,frame animation,在android3.0中又引入了一个新的动画系统:property animation,这三种动画模式在SDK中被称为property animation,view animation,dra...
分类:移动开发   时间:2014-05-23 09:14:24    阅读次数:310
Button颜色选择器进阶
drawable/button_color.xml 最后,需要在包含button的xml文件里添加两项。假如是activity_main.xml 文件,我们需要在里加两项。 android:focusable="true" android:backgroud="@drawable/button_co...
分类:其他好文   时间:2014-05-23 07:26:47    阅读次数:287
java.lang.ClassCastException: android.content.res.XmlBlock$Parser cannot be cast to android.view.ani
java.lang.ClassCastException: android.content.res.XmlBlock$Parser cannot be cast to android.view.animation.Animation...
分类:移动开发   时间:2014-05-22 09:26:20    阅读次数:590
2C01-View-Layout-Animation-Grid-Fade
介绍一个grid layout 顺序显示的代码 LayoutAnimation1.java /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use th...
分类:其他好文   时间:2014-05-21 16:58:47    阅读次数:214
2C02-View-Layout-Animation-list-Cascade
描述list layout item有上倒下依次显示的代码实现形式 LayoutAnimation2.java /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may no...
分类:其他好文   时间:2014-05-21 09:02:15    阅读次数:250
2C03-View-Layout-Animation-list-Reverse-Order
介绍list  item倒序显示 LayoutAnimation3.java /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file e...
分类:其他好文   时间:2014-05-21 08:25:44    阅读次数:278
cocos2dx 3.0 简单使用 CocoStudio Animation Editor
原来有一两个人说我不帅的时候,我不以为意,逗我玩而已,后来几乎所有人都说我不帅,我才真正意识到事态的严重,这社会骗子真是越来越多了... 好吧我承认,这个笑话不好笑,其实我想说的是,做人一定要坚持自己的原则,哪怕有一天所有人都和你背道而驰,都不要放弃自己当初的梦想,如果有一天,我们淹没在人海之中,庸碌一生,那是因为我们不够努力,不够勇敢的去面对生活。 每天积累一点点,嗯,满足简单的快乐...
分类:其他好文   时间:2014-05-20 14:54:12    阅读次数:237
使用代码为textview设置drawableLeft
xml中的textView中设置android:drawableLeft: 如程序中所见我在xml中设置了 DrawableLeft。我想在代码中改变drawable。有什么方法可以使用代码为textview设置drawableLeft呢?解决方案publicvoidsetCompoundDrawa...
分类:其他好文   时间:2014-05-19 12:06:03    阅读次数:407
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!