2016年8月19日
摘要: import android.net.Uri;import android.os.Bundle;import android.app.Activity;import android.content.Intent;import android.view.Menu;import android.view 阅读全文
posted @ 2016-08-19 17:12 巫山老妖 阅读(1039) 评论(0) 推荐(0) 编辑
摘要: // 在onCreate方法--中 创建popwindow布局 --pop_item View view=LayoutInflater.from(this).inflate(R.layout.pop_item, null); //找到两个按钮控件 登录 和我的 bt_pop_login = (But 阅读全文
posted @ 2016-08-19 16:59 巫山老妖 阅读(581) 评论(0) 推荐(0) 编辑
摘要: // 1 在eclipse--中去除标题 在 setContentView(R.layout.activity_home);之前加 requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉标题栏 // 2 视频播放实现横竖屏切换 在配置文件中 VideoV 阅读全文
posted @ 2016-08-19 16:52 巫山老妖 阅读(159) 评论(0) 推荐(0) 编辑
摘要: // baseadapter适配器中的 getView方法中 @Override public View getView(int position, View convertView, ViewGroup parent) { final ViewHolder holder; ShiPin shiPi 阅读全文
posted @ 2016-08-19 16:38 巫山老妖 阅读(222) 评论(0) 推荐(0) 编辑
  2016年8月17日
摘要: new Thread(){ public void run() { try { //获得输入框内容 String phonenum=et_phone_num.getText().toString().trim(); String password=et_password.getText().toSt 阅读全文
posted @ 2016-08-17 14:37 巫山老妖 阅读(164) 评论(0) 推荐(0) 编辑
摘要: // 全局变量 //注册Url private String urlPath="http://101.200.142.201:8080/VideoPlay/regist"; // onCreate中 实现zhuce();方法 // 注册方法 //注册方法 private void zhuce() { 阅读全文
posted @ 2016-08-17 14:33 巫山老妖 阅读(1220) 评论(0) 推荐(0) 编辑
  2016年8月10日
摘要: 1、ZXing库介绍 这里简单介绍一下ZXing库。ZXing是一个开放源码的,用Java实现的多种格式的1D/2D条码图像处理库,它包含了联系到其他语言的端口。Zxing可以实现使用手机的内置的摄像头完成条形码的扫描及解码。该项目可实现的条形码编码和解码。目前支持以下格式:UPC-A,UPC-E、 阅读全文
posted @ 2016-08-10 16:05 巫山老妖 阅读(263) 评论(0) 推荐(0) 编辑
  2016年8月9日
摘要: 当ListView放在ScrollView中的时候,无论你设置高度为match_parent(填充父窗体)和wrap_content(包裹内容)都只显示一行,这是你把ListView放在LinearLayout中,再给listview一个具体的高度,就可以显示多行了。 如: <ScrollView 阅读全文
posted @ 2016-08-09 12:33 巫山老妖 阅读(430) 评论(0) 推荐(0) 编辑
摘要: // 自定义MyView继承Imageview package com.bw.yuanhuan; import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import an 阅读全文
posted @ 2016-08-09 10:29 巫山老妖 阅读(174) 评论(0) 推荐(0) 编辑
  2016年8月7日
摘要: //通过xml解析串 private void XMLtoStr(String result) { News news=null; try { //将读取到的结果码 添加到XML里面 XmlPullParser Parser = Xml.newPullParser(); ByteArrayInput 阅读全文
posted @ 2016-08-07 21:27 巫山老妖 阅读(150) 评论(0) 推荐(0) 编辑