2015年11月20日

ViewPage显示Fragment集合实现左右滑动并且出现tab栏--第三方开源--SlidingTabLayout和SlidingTabStrip实现

摘要: 注意:有关Fragment的方法和ViewPager的全部是android.support.v4包的,否则会报很多的错误MainActivity: 1 package com.zzw.fragmentteb; 2 3 import java.util.ArrayList; 4 5 import ... 阅读全文

posted @ 2015-11-20 20:55 Z2 阅读(2094) 评论(0) 推荐(0)

Fragment的创建以及与activity的参数传递

摘要: 点击下面不同的TextView变化不同的Fragmentavtivity与Fragment之间传递消息不能使用构造器传递,用bunder传递首先写一个含有FrameLayout(这个布局最佳),里面最好没有其他的控件的xml: 1 7 8 13 14 15 19 20 ... 阅读全文

posted @ 2015-11-20 16:25 Z2 阅读(933) 评论(0) 推荐(0)

(转)Android属性设置android:noHistory="true"

摘要: 设置 android:noHistory="true"后,该Activity在statck中不留历史痕迹。默认的值是false。举例说明,假设有三个Activity分别是:A,B,C。这三个Activity可以依次顺序启动下一个Activity,比如,在A中做一个Button,用户点击后跳转到B ;... 阅读全文

posted @ 2015-11-20 13:58 Z2 阅读(1178) 评论(0) 推荐(0)

(转)Android如何编程设置APP安装位置(外部存储或内部存储)?

摘要: Beginning with API Level 8, you can allow your application to be installed on the external storage (for example, the device's SD card). This is an opt... 阅读全文

posted @ 2015-11-20 13:49 Z2 阅读(502) 评论(0) 推荐(0)

怎样使android的view动画循环弹动

摘要: 在res中建立文件夹anim,分别写下cycles.xml,shake1.xml,shake2.xmlcycles.xml:1 2 3 shake1.xml: 1 2 3 4 5 6 shake2.xml: 1 2 3 4 5 6 activity_main.xml: 1 6 ... 阅读全文

posted @ 2015-11-20 01:36 Z2 阅读(602) 评论(0) 推荐(1)

QQ消息99+形成--第三方开源--BezierView

摘要: Android第三方开源的BezierView实现了上述QQ的99+条未读消息气泡显示。Android开源BezierView在github上的项目主页是:https://github.com/chenupt/BezierDemo使用Android BezierView只需要写一个布局即可:acti... 阅读全文

posted @ 2015-11-20 00:28 Z2 阅读(780) 评论(0) 推荐(2)

导航