求背景图的原图帮我关下灯谢谢 原图急!

当前访客身份:游客 [
当前位置:
&无详细内容&
共有8个答案
<span class="a_vote_num" id="a_vote_num_
一个比较笨一点的方法(level-list)我这里只做了4个图,你可以做更多
&?xml version=&1.0& encoding=&utf-8&?& &level-list xmlns:android=&/apk/res/android& & &&& &item &&&&&&& android:drawable=& :color/transparent& &&&&&&& android:maxLevel=&0&/& &&& &item &&&&&&& android:drawable=&@drawable/border25& &&&&&&& android:maxLevel=&25&/& &&& &item &&&&&&& android:drawable=&@drawable/border50& &&&&&&& android:maxLevel=&50&/& &&& &item &&&&&&& android:drawable=&@drawable/border75& &&&&&&& android:maxLevel=&75&/& &&& &item &&&&&&& android:drawable=&@drawable/border99& &&&&&&& android:maxLevel=&100&/& &/level-list&
然后把这个xml作为ImageView的src,然后ImageView.setImageLevel(level),这里你可以用Handler设置一定的延时(达到定时器的效果)不停的递增level值并调用setImageLevel()效果就出来了。类似手机电池电量那个指示图片
--- 共有 3 条评论 ---
: 看后面,简单评论字数不够,:)
(2年前)&nbsp&
。。额,那个handle延迟期应该怎么写?那个maxLevel是不是就是说当Level增长到maxLevel才完整的显示出这个maxLevel对应的图片?
(2年前)&nbsp&
恩,我准备做8张图片,看效果会不会好些。谢谢你啊
(2年前)&nbsp&
<span class="a_vote_num" id="a_vote_num_
API文档里面的
&!-- Animation frames are wheel0.png -- wheel5.png files inside the
res/drawable/ folder --&
&animation-list android:id=&@+id/selected& android:oneshot=&false&&
&item android:drawable=&@drawable/wheel0& android:duration=&50& /&
&item android:drawable=&@drawable/wheel1& android:duration=&50& /&
&item android:drawable=&@drawable/wheel2& android:duration=&50& /&
&item android:drawable=&@drawable/wheel3& android:duration=&50& /&
&item android:drawable=&@drawable/wheel4& android:duration=&50& /&
&item android:drawable=&@drawable/wheel5& android:duration=&50& /&
&/animation-list&
Here is the code to load and play this animation.
// Load the ImageView that will host the animation and
// set its background to our AnimationDrawable XML resource.
ImageView img = (ImageView)findViewById(R.id.spinning_wheel_image);
img.setBackgroundResource(R.drawable.spin_animation);
// Get the background, which has been compiled to an AnimationDrawable object.
AnimationDrawable frameAnimation = (AnimationDrawable) img.getBackground();
// Start the animation (looped playback by default).
frameAnimation.start();
--- 共有 1 条评论 ---
哈哈,我终于用AnimationDrawable实现了,谢谢啊。不过在用list-level写的时候那个handler写的总是不对,能不能麻烦写具体点?
(2年前)&nbsp&
<span class="a_vote_num" id="a_vote_num_
handler.sendEmptyMessage(MSG_NEXT_LEVEL);
if ( msg.what()==MSG_NEXT_LEVEL )
&&& mLevel += 10;
&&& img.setImageLevel(mLevel);
&&& handler.sendEmptyMessageDelayed(MSG_NEXT_LEVEL, 100);
<span class="a_vote_num" id="a_vote_num_
可以使用,就是一組圖片形成的動畫,也可以在xml裡配
<span class="a_vote_num" id="a_vote_num_
自定义一个View继承字ImageView
<span class="a_vote_num" id="a_vote_num_
又开源的库可以用的
--- 共有 3 条评论 ---
: 恩,我已经看过那个方法了。谢谢你啊
(2年前)&nbsp&
: 不好意思,最近出差,没上oschina,就是楼下说的SquareProgressBar /mrwonderman/android-square-progressbar
(2年前)&nbsp&
请问库的详细点的介绍有吗?
(2年前)&nbsp&
<span class="a_vote_num" id="a_vote_num_
可以在这个view后面画一个view,draw方法对应画边框就行,其实不一定是边框,后面的在边缘画view
--- 共有 1 条评论 ---
我这个主要动态的加边框,而且边框图片是给定的。请问你说的这个也是动态的吗
(2年前)&nbsp&
<span class="a_vote_num" id="a_vote_num_
SquareProgressBar
--- 共有 1 条评论 ---
(2年前)&nbsp&
更多开发者职位上
有什么技术问题吗?
决定的温度的其它问题
类似的话题小木虫 --- 500万硕博科研人员喜爱的学术科研平台
&&查看话题
紧急求助:请教文章中的图片如何变清晰,谢谢!
我投了一篇文章,编辑说Provide the original files for all the figures. Figures should be sharply focused, have good contrast and any lettering must be clear and legible.
研究生必备与500万研究生在线互动!
扫描下载送金币

我要回帖

更多关于 柳岩不照雅照片原图 的文章

 

随机推荐