本文整理匯總了Java中com.android.launcher3.ClickShadowView類的典型用法代碼示例。如果您正苦於以下問題:Java ClickShadowView類的具體用法?Java ClickShadowView怎麽用?Java ClickShadowView使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ClickShadowView類屬於com.android.launcher3包,在下文中一共展示了ClickShadowView類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: AllAppsRecyclerViewContainerView
import com.android.launcher3.ClickShadowView; //導入依賴的package包/類
public AllAppsRecyclerViewContainerView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
Launcher launcher = Launcher.getLauncher(context);
DeviceProfile grid = launcher.getDeviceProfile();
mTouchFeedbackView = new ClickShadowView(context);
// Make the feedback view large enough to hold the blur bitmap.
int size = grid.allAppsIconSizePx + mTouchFeedbackView.getExtraSize();
addView(mTouchFeedbackView, size, size);
}
示例2: AllAppsRecyclerViewContainerView
import com.android.launcher3.ClickShadowView; //導入依賴的package包/類
public AllAppsRecyclerViewContainerView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
Launcher launcher = (Launcher) context;
DeviceProfile grid = launcher.getDeviceProfile();
mTouchFeedbackView = new ClickShadowView(context);
// Make the feedback view large enough to hold the blur bitmap.
int size = grid.allAppsIconSizePx + mTouchFeedbackView.getExtraSize();
addView(mTouchFeedbackView, size, size);
}