0
我使用下面的代碼,但我的進度條沒有在標題欄中顯示在我的activiy右上角代碼進度沒有在標題欄中顯示
<ProgressBar
android:id="@+id/progress_bar" style="?android:attr/progressBarStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginRight="5dp" />
,而不是顯示
//requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.welcome_layout);
任何一個plz都可以幫我解決這個問題..