本文整理汇总了Java中com.scwang.smartrefresh.layout.SmartRefreshLayout.LayoutParams方法的典型用法代码示例。如果您正苦于以下问题:Java SmartRefreshLayout.LayoutParams方法的具体用法?Java SmartRefreshLayout.LayoutParams怎么用?Java SmartRefreshLayout.LayoutParams使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.scwang.smartrefresh.layout.SmartRefreshLayout
的用法示例。
在下文中一共展示了SmartRefreshLayout.LayoutParams方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSpinnerStyle
import com.scwang.smartrefresh.layout.SmartRefreshLayout; //导入方法依赖的package包/类
@NonNull
@Override
public SpinnerStyle getSpinnerStyle() {
if (mSpinnerStyle != null) {
return mSpinnerStyle;
}
ViewGroup.LayoutParams params = mWrapperView.getLayoutParams();
if (params instanceof SmartRefreshLayout.LayoutParams) {
mSpinnerStyle = ((SmartRefreshLayout.LayoutParams) params).spinnerStyle;
if (mSpinnerStyle != null) {
return mSpinnerStyle;
}
}
if (params != null) {
if (params.height == ViewGroup.LayoutParams.MATCH_PARENT) {
return mSpinnerStyle = SpinnerStyle.Scale;
}
}
return mSpinnerStyle = SpinnerStyle.Translate;
}
示例2: getSpinnerStyle
import com.scwang.smartrefresh.layout.SmartRefreshLayout; //导入方法依赖的package包/类
@Override
public SpinnerStyle getSpinnerStyle() {
if (mSpinnerStyle != null) {
return mSpinnerStyle;
}
ViewGroup.LayoutParams params = mWrapperView.getLayoutParams();
if (params instanceof SmartRefreshLayout.LayoutParams) {
mSpinnerStyle = ((SmartRefreshLayout.LayoutParams) params).spinnerStyle;
if (mSpinnerStyle != null) {
return mSpinnerStyle;
}
}
if (params != null) {
if (params.height == 0) {
return mSpinnerStyle = SpinnerStyle.Scale;
}
}
return mSpinnerStyle = SpinnerStyle.Translate;
}
示例3: getSpinnerStyle
import com.scwang.smartrefresh.layout.SmartRefreshLayout; //导入方法依赖的package包/类
@NonNull
@Override
public SpinnerStyle getSpinnerStyle() {
if (mSpinnerStyle != null) {
return mSpinnerStyle;
}
ViewGroup.LayoutParams params = mWrapperView.getLayoutParams();
if (params instanceof SmartRefreshLayout.LayoutParams) {
mSpinnerStyle = ((SmartRefreshLayout.LayoutParams) params).spinnerStyle;
if (mSpinnerStyle != null) {
return mSpinnerStyle;
}
}
if (params != null) {
if (params.height == 0) {
return mSpinnerStyle = SpinnerStyle.Scale;
}
}
return mSpinnerStyle = SpinnerStyle.Translate;
}
示例4: onInitialized
import com.scwang.smartrefresh.layout.SmartRefreshLayout; //导入方法依赖的package包/类
@Override
public void onInitialized(RefreshKernel kernel, int height, int extendHeight) {
ViewGroup.LayoutParams params = mWrapperView.getLayoutParams();
if (params instanceof SmartRefreshLayout.LayoutParams) {
kernel.requestDrawBackgoundForHeader(((SmartRefreshLayout.LayoutParams) params).backgroundColor);
}
}
示例5: onInitialized
import com.scwang.smartrefresh.layout.SmartRefreshLayout; //导入方法依赖的package包/类
@Override
public void onInitialized(RefreshKernel kernel, int height, int extendHeight) {
ViewGroup.LayoutParams params = mWrapperView.getLayoutParams();
if (params instanceof SmartRefreshLayout.LayoutParams) {
kernel.requestDrawBackgoundForFooter(((SmartRefreshLayout.LayoutParams) params).backgroundColor);
}
}
示例6: onInitialized
import com.scwang.smartrefresh.layout.SmartRefreshLayout; //导入方法依赖的package包/类
@Override
public void onInitialized(@NonNull RefreshKernel kernel, int height, int extendHeight) {
ViewGroup.LayoutParams params = mWrapperView.getLayoutParams();
if (params instanceof SmartRefreshLayout.LayoutParams) {
kernel.requestDrawBackgoundForHeader(((SmartRefreshLayout.LayoutParams) params).backgroundColor);
}
}
示例7: onInitialized
import com.scwang.smartrefresh.layout.SmartRefreshLayout; //导入方法依赖的package包/类
@Override
public void onInitialized(@NonNull RefreshKernel kernel, int height, int extendHeight) {
ViewGroup.LayoutParams params = mWrapperView.getLayoutParams();
if (params instanceof SmartRefreshLayout.LayoutParams) {
kernel.requestDrawBackgoundForFooter(((SmartRefreshLayout.LayoutParams) params).backgroundColor);
}
}