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都可以帮我解决这个问题..