Android little
<TextView
android:id="@+id/xh_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginBottom="4dp"
android:labelFor="@+id/node"
android:text="@string/chmln_node_name" />
<AutoCompleteTextView
android:id="@+id/node"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:inputType="text"
android:maxLength="100"
android:textSize="12sp" >
</AutoCompleteTextView>
--------------------------------
android中空格的表示: android文本中的空格是不能直接用空白来表示的,需要用到“ ”
就像html中用“ ”表示空格一样。
-----------------------------
”This text field does not specify an inputType or a hint“
在ExitText中添加属性android:inputType = "text"; //不一定是text
---------------------------
No label views point to this text field with an android:labelFor="@+id/@+id/***" attribute”
参考上面给的例子
----------------------------------
@hide和internal API
Android有两种类型的API是不能经由SDK访问的。
第一种是位于com.android.internal包中的API。我将称之为internal API。第二种API类型是一系列被标记为@hide属性的类和方法。从严格意义上来讲,这不是一个单一的API,而是一组小的被隐藏的API,但我仍将其假设为一种API,并称之为hidden API。
idden API之所以被隐藏,是想阻止开发者使用SDK中那些未完成或不稳定的部分(接口或架构)。对于internal API来说,从来都没有计划将其开放出来。它就是Android的“内部厨房”,对开发者来说,应该将其视作黑盒。
可以利用Java反射调用@hide的API