2014年3月28日

[转]Android的userlogin登录

摘要: 本文转自:http://hteqc6o.blog.sohu.com/199334086.html 用户注册1.首先,先画你想要编译出的界面根据草图,仅仅使用linearLayout的布局是不够的,还需要与RelativeLayout嵌套使用编写String.Xml Hello World, UserLoginActivity! 用户注册界面 用户名 年龄 注册 性别 喜好 城市 密码 兵乓球 篮球 足球 网球编写parameters.xml:这是存放属性信息,如字体、TextView和EditText的宽度。 22px 90px 160px再编写main.xml / ... 阅读全文

posted @ 2014-03-28 22:08 freeliver54 阅读(1365) 评论(0) 推荐(0)

[转]android-学习笔记之按钮事件

摘要: 本文转载自: http://zhangkun716717-126-com.iteye.com/blog/761080前备知识: 1.需要了解怎么得到界面元素。那么如何得到界面元素呢?在界面配置文件:例如 main.xml 中,比方一个id为idButtonTest1的Button定义如下:在string常量配置文件string.xml中,配置如下常量 测试按钮1 测试按钮2那么得到该Button的做法就是findViewById(R.id.idButtonTest1); 比如:Button buttonTest1 = (Button)findViewById(R.id.idButt... 阅读全文

posted @ 2014-03-28 22:06 freeliver54 阅读(370) 评论(0) 推荐(0)

导航