android学习记录
blingblingcsdn
这个作者很懒,什么都没留下…
展开
-
中心向右对齐效果
想做出下图中球员列表的数字靠右对齐的效果,但。。。菜鸟无能。。。下图是目前做出的效果,左边数字可以向右对齐,但不知道为什么右边的数字对不起。我想做出数字垂直中心对齐,而不是整齐向右对齐。。。这个难题,留着,以后解决布局文件代码<LinearLayout xmlns:android="http://schemas.android.com/ap原创 2015-10-07 21:59:47 · 516 阅读 · 0 评论 -
bmob
好无语,百度说是adt版本问题,花了一天时间更新了adt和sdk(别问我为什么花了这么长时间,害羞),结果还是报错原创 2016-05-27 19:42:37 · 385 阅读 · 0 评论 -
TextView属性大全【转】
android:autoLink设置是否当文本为URL链接/email/电话号码/map时,文本显示为可点击的链接。可选值(none/web/email/phone/map/all) android:autoText如果设置,将自动执行输入值的拼写纠正。此处无效果,在显示输入法并输入的时候起作用。 android:bufferType指定getText()方式取得的文本类别。转载 2016-05-03 19:27:34 · 264 阅读 · 0 评论 -
判断字符是否为汉字【转】
1、用ASCII码判断 在 ASCII码表中,英文的范围是0-127,而汉字则是大于127,具体代码如下: 复制代码 代码如下:string text = “是不是汉字,ABC,柯乐义”; for (int i = 0; i < text.Length; i++) { if ((int)text[i] > 127)转载 2015-12-07 21:42:22 · 653 阅读 · 0 评论 -
短信验证
步骤:1.在mob.com后台新建应用获取对应的APPKEY和APPSECRET2.在eclipse中导入SMSSDK(SMSSDK与短信验证的项目所属根目录必须一致)3.将SMSSDK作为library导入项目中4.短信验证的项目操作(1)初始化SDKSMSSDK.initSDK(this, APPKEY, APPSECRETE);(2)配置信息添加权限转载 2016-01-03 14:37:20 · 342 阅读 · 0 评论 -
webView的使用
用webView显示html页面第一种:WebView wv;String urlS="http://www.xxx.com";wv.loadUrl(urlStr);第二种:WebView wv;String urlS="http://www.xxx.com";Uri uri=Uri.parse(urlStr);Intent intent=new Intent(原创 2015-11-09 14:28:04 · 322 阅读 · 0 评论 -
计算器
Layout布局<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_h原创 2015-09-21 08:42:28 · 214 阅读 · 0 评论 -
表单(单选,复选,文本输入)
Layout<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_hei原创 2015-09-21 08:54:27 · 480 阅读 · 0 评论 -
ImageView图片轮播,放大缩小,改变图片透明度
Layout<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_hei原创 2015-09-21 08:58:10 · 533 阅读 · 0 评论 -
layout
layout_weight 即布局比重若使用比重布局,通常android:layout_width属性不起作用,将其设置为“0”,根据想要布局的比例,设定android:layout_weight的值,值越大,所占布局越大 相当于原创 2015-09-09 18:03:38 · 195 阅读 · 0 评论 -
ListView
<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="match_p转载 2015-09-21 14:15:39 · 237 阅读 · 0 评论 -
晒圈数据库设计
E-R图设计——初稿回复表还没想明白,不过看到了一个论坛帖子表设计http://wiki.blueidea.com/index.php?title=Discuz!X/%E6%95%B0%E6%8D%AE%E5%BA%93%E5%AD%97%E5%85%B8/pre_forum_post只有comment是否有评论字段,没有具体的评论回复。原创 2016-04-20 19:23:20 · 555 阅读 · 0 评论