项目地址:https://github.com/baoyongzhang/SwipeMenuListView Usage Step 1:import swipemenulistview.jar Step 2:add activity_main.xml in layout xml <RelativeL
分类:
其他好文 时间:
2016-03-10 22:04:16
阅读次数:
293
步骤:一:自定义ViewGroup 1、自定义属性 a、attr.xml b、在布局文件中使用activity_main.xml c、在自定义控件中进行读取 2、onMeasure 3、onLayout 4、设置主按钮的旋转动画 为menuItem添加平移动画和旋转动画 实现menuItem的点击事
分类:
移动开发 时间:
2016-03-10 20:17:31
阅读次数:
343
首先是布局文件,如下: activity_main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:
分类:
移动开发 时间:
2016-03-09 12:26:57
阅读次数:
166
参考链接:http://www.jianshu.com/p/7bc9a1ff137ehttp://www.devstore.cn/code/info/245.htmlhttp://www.tuicool.com/articles/FfeiumV本人参考了三篇文章来写这个页面,但是运行这上面给出的源码,发现每个fragment的flag并不能实现切换。要实现的效果如下:在activity_main...
分类:
其他好文 时间:
2016-02-23 19:08:19
阅读次数:
172
/layout/activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" an
分类:
移动开发 时间:
2016-02-22 20:51:44
阅读次数:
230
1. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //得到SensorManager对象 s
分类:
移动开发 时间:
2016-02-22 16:39:50
阅读次数:
208
一、简介 运行结果 二、代码1.xml(1)activity_main.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/and
分类:
移动开发 时间:
2016-02-22 15:47:59
阅读次数:
266
一、代码 1.xml(1)activity_main.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 a
分类:
移动开发 时间:
2016-02-22 13:39:38
阅读次数:
347
一、代码 1.xml(1)activity_main.xml 1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/to
分类:
移动开发 时间:
2016-02-21 22:33:41
阅读次数:
298
一、简介 二、代码1.xml(1)activity_main.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
分类:
移动开发 时间:
2016-02-21 15:30:31
阅读次数:
200