滑动刷新布局 - 如何重新调整 SRL 的高度(阴影)?
Swipe Refresh Layout - How to re-adjust the elevation (shadow) of SRL?
我想重新调整 Swipe Refresh Layout
的高度。
在App Bar Layout
中调用abl.setElevation(elevation);
即可得到效果。
Swipe Refresh Layout
可以吗?
根据SwipeRefreshLayout Documentation page,是可以的。
它从android.view.View
class继承了以下方法:
void setElevation(float arg0)
因此,我认为任何继承 android.view.View
class.
的视图或布局都是可能的
我想重新调整 Swipe Refresh Layout
的高度。
在App Bar Layout
中调用abl.setElevation(elevation);
即可得到效果。
Swipe Refresh Layout
可以吗?
根据SwipeRefreshLayout Documentation page,是可以的。
它从android.view.View
class继承了以下方法:
void setElevation(float arg0)
因此,我认为任何继承 android.view.View
class.