xmlns:custom="http://schemas.android.com/apk/res/com.example.titlebar"
之前說錯了 這樣才是對的 沒有刪除功能真的好尷尬
之前說錯了 這樣才是對的 沒有刪除功能真的好尷尬
2017-03-01
在eclipse中應該按自己的路徑寫 xmlns:custom="http://schemas.android.com/apk/src/com.example.titlebar"
像我的就是在src文件下,寫成res文件下當然找不到
像我的就是在src文件下,寫成res文件下當然找不到
2017-03-01
eclipse中的寫法是: xmlns:custom="http://schemas.android.com/apk/res/XXX" ,XXX應該與AndroidManifest.xml中package="XXX"的相同,比如我的
package="com.example.mytopbar"
android:versionCode="1"
android:versionName="1.0" >
那么該寫成 xmlns:custom="http://schemas.android.com/apk/res/com.example.mytopbar
只有包名沒有類名?。。?!
package="com.example.mytopbar"
android:versionCode="1"
android:versionName="1.0" >
那么該寫成 xmlns:custom="http://schemas.android.com/apk/res/com.example.mytopbar
只有包名沒有類名?。。?!
2017-02-10
addview 出錯,the specified child already has a parent.
2017-01-21