- 博客(10)
- 资源 (2)
- 收藏
- 关注
原创 android中简单的listview代码
1.主界面布局xml代码<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_pare
2016-03-30 15:25:06 571
原创 标题布局
1.布局对应的xml文件<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/common_title_bar" android:layout_width="match_parent
2016-03-30 14:47:14 400
翻译 android布局优化的三大标签
1、布局重用 <include />标签能够重用布局文件,简单的使用如下:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width=”match_parent” and
2016-03-30 10:05:20 2094 2
原创 数据转换工具类汇总
数据工具类汇总public class DataUtil { private static StringBuffer sbTime; private static String now, year, month, day, hour, min, ss; private static SimpleDateFormat sdf = new SimpleDateFormat(
2016-03-30 09:27:30 525
原创 解析json数据
1.根据这样的json数据,写成的相应的bean类型public class SmartControlBean { // Status 0 // getDeviceByMobile Array public List<BLEDeviceInformationBean> getDeviceByMobile; public int St
2016-03-22 23:51:59 322
原创 简单的警告对话框
1.布局文件<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="250dp" android:layout_height="wrap_content" andro
2016-03-22 23:26:30 396
原创 app按手机返回键,弹出Toast提示用户功能。
/** * 退出程序提醒 */ @Override public boolean dispatchKeyEvent(KeyEvent event) { if (event.getAction() == KeyEvent.ACTION_DOWN && event.getKeyCode() == KeyEvent.KEY
2016-03-22 00:23:11 2376
原创 java中字符串“abcdefgh”转换为“ab:cd:ef:gh”
/** * 字符串abcdef变为ab:cd:ef * * @param BLEDeviceMACAddress * @return */ private String toString(String BLEDeviceMACAddress) { // 字符串abcdef变为ab:cd:ef String r
2016-03-22 00:18:32 1682
原创 关于远程控制器发送指令问题。
这是上一篇博客指令格式代码boolean tag = device.getIsOpen1(); // 远程控制 if (Content.isyauncheng == true) { String str = "";
2016-03-19 00:46:32 1793
原创 (WIFI)远程控制基本流程
第一步,某个控件的点击事件 /** * 一路开关 */ mviewHolder.button1.setOnClickListener(new OnClickListener() { @Overr
2016-03-18 11:22:54 2910
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人