自定義控件可能由於命名空間錯誤而不起做用android
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:PowerView2="http://schemas.android.com/apk/res-auto"
xmlns:TotalTimeView="http://schemas.android.com/tools"
android:background="@color/white_overlay">
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:PowerView2="http://schemas.android.com/apk/res-auto" xmlns:TotalTimeView="http://schemas.android.com/apk/res-auto" android:background="@color/white_overlay">