如何使用 ButterKnife 绑定 RoundCornerProgressBar
How to Bind RoundCornerProgressBar with ButterKnife
正在使用 RoundCornerProgressBar a custom progress bar library in android, and i use JakeWharton butterknife 绑定元素,
所以我尝试了
@BindView(R.id.volume_progress_bar) ProgressBar volumeBar;
volumeBar.setProgress(tagVolume); //to increase progress bar value
日志显示
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.testproject/com.example.testproject.MainActivity}: java.lang.IllegalStateException: View 'volume_progress_bar' with ID 2131296532 for field 'volumeBar' was of the wrong type. See cause for more info.
错误说
View 'volume_progress_bar' with ID 2131296532 for field 'volumeBar' was of the wrong type.
那么我如何为 RoundCornerProgressBar 使用赖特类型或如何增加 Java
中的进度条值
这对我有用 IconRoundCornerProgressBar
我使用的 butterKnife 如下所示
@BindView(R.id.volume_progress_bar) IconRoundCornerProgressBarnn volumeBar;
成功了。
正在使用 RoundCornerProgressBar a custom progress bar library in android, and i use JakeWharton butterknife 绑定元素,
所以我尝试了
@BindView(R.id.volume_progress_bar) ProgressBar volumeBar;
volumeBar.setProgress(tagVolume); //to increase progress bar value
日志显示
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.testproject/com.example.testproject.MainActivity}: java.lang.IllegalStateException: View 'volume_progress_bar' with ID 2131296532 for field 'volumeBar' was of the wrong type. See cause for more info.
错误说
View 'volume_progress_bar' with ID 2131296532 for field 'volumeBar' was of the wrong type.
那么我如何为 RoundCornerProgressBar 使用赖特类型或如何增加 Java
这对我有用 IconRoundCornerProgressBar
我使用的 butterKnife 如下所示
@BindView(R.id.volume_progress_bar) IconRoundCornerProgressBarnn volumeBar;
成功了。