展开布局通知中的进度条

时间:2016-08-22 07:43:17

标签: java android android-progressbar

我正在尝试在我的自定义扩展布局中使用ProgressBar,我只能成功获得一个不确定的布局。在我的布局中,ProgressBar以这种方式声明:

<ProgressBar
        style="?android:attr/progressBarStyleSmall"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:indeterminate="false"
        android:id="@+id/MyProgressBar"
        android:max="100"
        android:progress="0"/>

在我的代码中,我使用notificationView.setProgressBar(R.id.MyProgressBar,100,0,false)向我的RemoteViews声明它。我说ProgressBar一定不能两次不确定,但它没用......

我做错了什么,我该怎么做才能解决问题?

0 个答案:

没有答案
相关问题