Mig*_*ieC 4 android android-support-library android-studio android-layoutparams bottom-sheet
我只是将我的应用程序更新为支持库版本24.0.0,我收到一些关于BottomSheet Params的错误.
代码:
/**
* Default constructor for inflating BottomSheetBehaviors from layout.
*
* @param context The {@link Context}.
* @param attrs The {@link AttributeSet}.
*/
public BottomSheetBehaviorGoogleMapsLike(Context context, AttributeSet attrs) {
super(context, attrs);
TypedArray a = context.obtainStyledAttributes(attrs,
android.support.design.R.styleable.BottomSheetBehavior_Params);
setPeekHeight(a.getDimensionPixelSize(
android.support.design.R.styleable.BottomSheetBehavior_Params_behavior_peekHeight, 0));
setHideable(a.getBoolean(android.support.design.R.styleable.BottomSheetBehavior_Params_behavior_hideable, false));
a.recycle();
ViewConfiguration configuration = ViewConfiguration.get(context);
mMaximumVelocity = configuration.getScaledMaximumFlingVelocity();
}
Run Code Online (Sandbox Code Playgroud)
Android Studio找不到:
android.support.design.R.styleable.BottomSheetBehavior_Paramsandroid.support.design.R.styleable.BottomSheetBehavior_Params_behavior_peekHeightandroid.support.design.R.styleable.BottomSheetBehavior_Params_behavior_hideable知道他们搬到哪里了吗?
| 归档时间: |
|
| 查看次数: |
759 次 |
| 最近记录: |