码迷,mamicode.com
首页 >  
搜索关键字:activity_main    ( 863个结果
findViewById和setContentView的关系
setContentView(R.layout.activity_main); Button b2 = (Button)findViewById(R.id.myButton2); setContentView(R.layout.fragment001...
分类:其他好文   时间:2015-06-15 18:33:51    阅读次数:102
Binary XML file line #7: Error inflating class fragment
这几天一直在学习碎片,想自己写一个相关的程序试试,没想到刚写一点就出了问题。 在加载主布局文件activity_main.xml时候,出现错误 06-12 13:11:12.873: E/AndroidRuntime(2022): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gentleni.de...
分类:其他好文   时间:2015-06-12 22:20:22    阅读次数:138
模仿猫眼电影App一个动画效果
看真正的猫眼效果图 接下来看自己写的粗略图(不足的地方是这里是2个切换选项,如果需要3个切换的话,需要自定义控件,后续在更新。。。) 源码地址 http://download.csdn.net/download/u013210620/8795799 先看主页面xml布局文件--so easy activity_main.xml <RelativeLayout xm...
分类:移动开发   时间:2015-06-11 17:11:55    阅读次数:198
实现页面切换(动画效果实现,不用ViewPager)
源码地址 http://write.blog.csdn.net/postedit/46439929 先看主页面布局activity_main <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" and...
分类:其他好文   时间:2015-06-10 12:19:15    阅读次数:107
Android学习笔记(九)
Android中的四种基本布局1.LinearLayoutLinearLayout称为线性布局,是一种常用的布局。修改activity_main.xml中的代码,如下所示: 上述的代码中,指定了一个垂直的线性布局,而且在布局中添加了三个Button,每个Button的长...
分类:移动开发   时间:2015-06-08 23:19:09    阅读次数:308
监听事件的三种实现方式
1、在activity_main.xml文件中添加三个Button按钮 2、第一种方式:通过内部类实现事件监听 /* 第一种方式:通过内部类实现事件监听 */ btn1.setOnClickListener(new Vi...
分类:其他好文   时间:2015-06-07 18:39:08    阅读次数:129
activity_main.xml: java.lang.NullPointerException
1、错误描述 eclipse.buildId=4.4.0.I20140606-1215 java.version=1.7.0_67 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN Framework arguments: -product org.ecl...
分类:编程语言   时间:2015-06-06 01:42:41    阅读次数:114
字母条索引定位
activity_main.xml <ListView a...
分类:其他好文   时间:2015-06-05 19:46:27    阅读次数:110
ScrollView阻尼效果
activity_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou...
分类:其他好文   时间:2015-06-05 00:45:01    阅读次数:169
ListView阻尼效果
效果图省略。。。 activity_main.xml(只有一个自定义ListView) <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="...
分类:其他好文   时间:2015-06-04 19:31:03    阅读次数:129
863条   上一页 1 ... 55 56 57 58 59 ... 87 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!