- 博客(9)
- 资源 (2)
- 收藏
- 关注
原创 采集手机加速度、陀螺仪、磁场
手机界面:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height=
2016-03-29 20:41:39 2518 5
原创 Date&Time
代码:activity_main.xml:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:
2016-03-21 21:17:19 456
原创 button
贴代码:activity_main.xml中代码:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" andr
2016-03-21 19:32:11 277
原创 EditText
EditText的一些属性:textColorCapitalize sentences每一句话第一个字母大写 words单词首字母大写 characters每一个字符都大写Hint 没有字符输入时,默认显示字符textColorHint hint字符的颜色cursorVisible 光标是否显示,true显示,false不显示Enable 是否可正常使用E
2016-03-20 15:23:48 186
原创 activity之间的跳转(activity传参)
Intent intent = new Intent(你的activity.this, 目标activity.class);startActivity(intent);
2016-03-11 20:16:55 441
原创 ImageButton
能添加图片的button。先在drawable文件夹里添加所需要的图片,Imagebutton的src设为@drawable/图片名。这样图片不一定会大小正好,只要将content_main.xml文件中的src改成background就可以自动缩了。点击的话还用onClick就可以了。
2016-03-11 19:49:06 214
原创 WebView
学WebView科花费了好长时间啊……首先要新建一个activity,把WebView空间的大小设为全屏,在新的activity的onCreate里面贴上下面的代码://WebView webView = (WebView) findViewById(R.id.京东);//假设id为京东 webView.getSettings().setJavaScript
2016-03-10 21:26:28 320
原创 button
新手学习Android中……每学会一个东西,都要写到博客里保留下来。关于button的使用,我只学会了用onClick来调用activity里的方法。在contect_main.xml文件的button里加入一句android:onClick="methodName",然后在MainActivity中写methodName方法(methodName只是一个方法的名字,可以使任何一个合法
2016-03-10 21:13:57 202
原创 ZOJ1041
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=41先选出在圆内的点,然后枚举一个点与圆心连线,作为一个半径,然后枚举枚举每一个点,用叉乘判断是否在同一个半圆内,累加在半圆内的点,取其大者。#include#includeusing namespace std;struct point{ in
2016-03-01 14:06:57 280
TensorFlow简单应用实例
2018-07-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人