Android酷炫的碎纸机
plhy4346
8年前
<h2>碎纸机动画,点子出自 <a href="/misc/goto?guid=4959675523118734930" rel="nofollow,noindex">dribbble</a></h2> <h2>预览</h2> <p><img src="https://simg.open-open.com/show/d0a814a2421849173046c9772460ab89.png"></p> <p><img src="https://simg.open-open.com/show/507e00fd8b9b175fec14ef237a43c539.gif"></p> <p><img src="https://simg.open-open.com/show/2b26ce60e96835d34737f87167acefad.gif"></p> <p><img src="https://simg.open-open.com/show/40e8bb9f0b57cae0e8acf21109a3940a.gif"></p> <h2>使用</h2> <h3>xml</h3> <pre> <code class="language-java"><com.ldoublem.PaperShredderlib.PaperShredderView android:layout_width="200dp" android:id="@+id/ps_delete2" android:layout_height="220dp" paper:sherderBgColor="#f4c600" paper:sherderText="清理中" paper:sherderType="0" paper:sherderPaperEnterColor="#56abe4" paper:sherderTextShadow="false" paper:sherderTextColor="#99101010" paper:sherderPaperColor="#dbdbdb" paper:sherderProgress="false" /></code></pre> <h3>java</h3> <pre> <code class="language-java">mPaperShredderView.setShrededType(PaperShredderView.SHREDEDTYPE.Piece);//纸片效果和纸条效果 mPaperShredderView.setSherderProgress(false); mPaperShredderView.setTitle("清除数据"); mPaperShredderView.setTextColor(Color.BLACK); mPaperShredderView.setPaperColor(Color.BLACK); mPaperShredderView.setBgColor(Color.WHITE); mPaperShredderView.setTextShadow(false); mPaperShredderView.setPaperEnterColor(Color.BLACK); mPaperShredderView.startAnim(1000); mPaperShredderView.stopAnim();</code></pre> <p> </p>