<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[六盘的博客]]></title><description><![CDATA[自学技术笔记]]></description><link>https://blog.youkuaiyun.com/LiuPanOne</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; LiuPanOne]]></copyright><item><title><![CDATA[自学JAVA之Cannot make a static reference to the non-static method分析]]></title><link>https://blog.youkuaiyun.com/LiuPanOne/article/details/43569325</link><guid>https://blog.youkuaiyun.com/LiuPanOne/article/details/43569325</guid><author>LiuPanOne</author><pubDate>Fri, 06 Feb 2015 19:28:08 +0800</pubDate><description><![CDATA[根据百度上搜索出来的东西总结如下：
首先我们来看为什么Main方法是静态的：


非静态成员函数在执行前必须先构造并实例化该函数所在的类。
如果允许非静态的main，那么main函数所在的类必须先进行实例化，
那么就需要再写个函数去实例化main所在的类，再调用main，这个实例化代码又写在哪呢？如果它也是非静态的，岂不是又要写个函数去实例化它所在的类嘛？

因此，JAVA]]></description><category></category></item><item><title><![CDATA[自学Android之Spinner和AutoCompleteTextView]]></title><link>https://blog.youkuaiyun.com/LiuPanOne/article/details/43416883</link><guid>https://blog.youkuaiyun.com/LiuPanOne/article/details/43416883</guid><author>LiuPanOne</author><pubDate>Mon, 02 Feb 2015 21:31:53 +0800</pubDate><description><![CDATA[﻿﻿
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  // 定义数组
  String[] str = new String[] { "Cocoa", "China",]]></description><category></category></item><item><title><![CDATA[自学Android之CheckBox]]></title><link>https://blog.youkuaiyun.com/LiuPanOne/article/details/43416847</link><guid>https://blog.youkuaiyun.com/LiuPanOne/article/details/43416847</guid><author>LiuPanOne</author><pubDate>Mon, 02 Feb 2015 21:30:28 +0800</pubDate><description><![CDATA[﻿﻿
source:
protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.activity_main);
 // 获取画面上的控件对象
 CheckBox chk1 = (CheckBox) findViewB]]></description><category></category></item><item><title><![CDATA[自学Android之数组资源]]></title><link>https://blog.youkuaiyun.com/LiuPanOne/article/details/43375549</link><guid>https://blog.youkuaiyun.com/LiuPanOne/article/details/43375549</guid><author>LiuPanOne</author><pubDate>Sun, 01 Feb 2015 21:38:17 +0800</pubDate><description><![CDATA[同样的我们要建立一个AndroidXML文件
res下建立一个叫做Arrays.xml的资源文件


  
   Hello
  bidu



在source之使用方法:
String[] arr = getResources().getStringArray(R.array.asArray);


还可以直接作用于LIstView上
使用方法;

androi]]></description><category></category></item><item><title><![CDATA[自学Android之尺寸资源]]></title><link>https://blog.youkuaiyun.com/LiuPanOne/article/details/43375455</link><guid>https://blog.youkuaiyun.com/LiuPanOne/article/details/43375455</guid><author>LiuPanOne</author><pubDate>Sun, 01 Feb 2015 21:33:24 +0800</pubDate><description><![CDATA[OK，同颜色等资源大同小异
利用已经存在的dimens，添加尺寸标签


    
    16dp
    16dp
16dp


在layout里使用：

        android:layout_width="@dimen/dp10"
        android:layout_height="50dp" />]]></description><category></category></item><item><title><![CDATA[自学Android之颜色资源]]></title><link>https://blog.youkuaiyun.com/LiuPanOne/article/details/43343621</link><guid>https://blog.youkuaiyun.com/LiuPanOne/article/details/43343621</guid><author>LiuPanOne</author><pubDate>Sat, 31 Jan 2015 19:24:44 +0800</pubDate><description><![CDATA[其实颜色资源的使用和字符串资源的使用大同小异，在这里就不再过多的赘述。
只说些使用方法


在res下创建一个颜色资源的XML文件


    #f00
    #0f0
    #00f




在layout里面使用：




如果要使用系统预设的颜色资源，可更改为：]]></description><category></category></item><item><title><![CDATA[自学Android之String资源与国际化]]></title><link>https://blog.youkuaiyun.com/LiuPanOne/article/details/43343497</link><guid>https://blog.youkuaiyun.com/LiuPanOne/article/details/43343497</guid><author>LiuPanOne</author><pubDate>Sat, 31 Jan 2015 19:10:08 +0800</pubDate><description><![CDATA[String资源：
取得String资源，可以通过​
String str = getResources().getString(R.string.app_name);
来获得​​
用String资源在控件上显示可以使用
textView.setText(R.string.hello_world);​
在这里我们没有getResources().getString()这个方法也可以成功]]></description><category></category></item><item><title><![CDATA[自学Android之加速度传感器]]></title><link>https://blog.youkuaiyun.com/LiuPanOne/article/details/43343485</link><guid>https://blog.youkuaiyun.com/LiuPanOne/article/details/43343485</guid><author>LiuPanOne</author><pubDate>Sat, 31 Jan 2015 19:08:54 +0800</pubDate><description><![CDATA[1，为了获取传感器的回传数据要实现SensorEventListener接口；


..extands Activity implements SensorEventListener{...}

2，SensorEventListener接口有两个方法:

// 当传感器精度发生变化时调用方法

onAccuracyChanged（);

// 当传感器数据发生变化时调用方法]]></description><category></category></item><item><title><![CDATA[自学Android之获取传感器列表]]></title><link>https://blog.youkuaiyun.com/LiuPanOne/article/details/43343465</link><guid>https://blog.youkuaiyun.com/LiuPanOne/article/details/43343465</guid><author>LiuPanOne</author><pubDate>Sat, 31 Jan 2015 19:06:32 +0800</pubDate><description><![CDATA[1，用系统API来获取传感服务。


​SensorManager = getSystemService(SENSOR_SERVICE)；




2，调用getSensorList方法来获取全部的传感器类型

List sensors = SensorManager.getSensorList(Sensor.TYPE_ALL);

​​

3，查看每个传感器的名字
]]></description><category></category></item></channel></rss>