定義了topbar之后不能顯示出來111
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
? ? ? ? ? ? ? ?xmlns:tools="http://schemas.android.com/tools"
? ? ? ? ? ? ? ?android:layout_width="match_parent"
? ? ? ? ? ? ? ?android:layout_height="match_parent"
? ? ? ? ? ? ? ?android:paddingLeft="@dimen/activity_horizontal_margin"
? ? ? ? ? ? ? ?android:paddingRight="@dimen/activity_horizontal_margin"
? ? ? ? ? ? ? ?android:paddingTop="@dimen/activity_vertical_margin"
? ? ? ? ? ? ? ?android:paddingBottom="@dimen/activity_vertical_margin"
? ? ? ? ? ? ? ?tools:context=".MainActivity">
?<com.lst.liusitong.mytopbar.TopBar
? ? ?android:layout_width="wrap_content"
? ? ?android:layout_height="40dp">
?</com.lst.liusitong.mytopbar.TopBar>
</RelativeLayout>
? ?
錯誤? ???
2015-10-16
RelativeLayout里面加入一行xmlns:topbar="http://schemas.android.com/apk/res/com.lst.liusitong.mytopbar"