Android 新人,按《第一行代码》上的例子边敲边学,遇到了这个问题。
自定义控件的用法是在.xml 文件中加入
<com.example.daniel.uicustomviews.TitleLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
</com.example.daniel.uicustomviews.TitleLayout>
那么这个 TitleLayout.java 文件应该放哪里?是放在 /res 目录下还是放在 /java/com.example.xx.xxx 下,或者其他位置?