0
私はgitのlink上のサンプルを持っている(それは複雑ではありません)互換性のあるコンパイル方法を作成するには?
VerticalSeekBar
クラスとメソッドsetProgress()
private synchronized void setProgress(int progress, boolean fromUser) {
if (mMethodSetProgress == null) {
try {
Method m;
m = this.getClass().getMethod("setProgress", int.class, boolean.class);
m.setAccessible(true);
mMethodSetProgress = m;
} catch (NoSuchMethodException ignored) {
}
}
if (mMethodSetProgress != null) {
try {
mMethodSetProgress.invoke(this, progress, fromUser);
} catch (IllegalArgumentException | IllegalAccessException | InvocationTargetException ignored) {
}
} else {
super.setProgress(progress);
}
refreshThumb();
}
内部の問題があるさ -
compileSdkVersion
場合 - 23すべてはOKですが、
compileSdkVersion
場合 - 24、IDEAは私が変更が必要だと言います
private
から
public
、すべてが行われました。私は自分のアプリを起動し、私の変更メソッドのために何も働かない
setProgress()
それ自身を呼び出し、私は無限ループを得る...
私はどうすればcompileSdkVersion
を24に変更できますか?