Home | History | Annotate | Download | only in launcher2

Lines Matching defs:cling

2424             // Dismiss the folder cling
3935 /* Cling related */
3967 private Cling initCling(int clingId, int[] positionData, boolean animate, int delay) {
3968 final Cling cling = (Cling) findViewById(clingId);
3969 if (cling != null) {
3970 cling.init(this, positionData);
3971 cling.setVisibility(View.VISIBLE);
3972 cling.setLayerType(View.LAYER_TYPE_HARDWARE, null);
3974 cling.buildLayer();
3975 cling.setAlpha(0f);
3976 cling.animate()
3983 cling.setAlpha(1f);
3985 cling.setFocusableInTouchMode(true);
3986 cling.post(new Runnable() {
3988 cling.setFocusable(true);
3989 cling.requestFocus();
3995 return cling;
3998 private void dismissCling(final Cling cling, final String flag, int duration) {
4000 // the cling is directly set to GONE before dismissing it.
4001 if (cling != null && cling.getVisibility() != View.GONE) {
4002 ObjectAnimator anim = LauncherAnimUtils.ofFloat(cling, "alpha", 0f);
4006 cling.setVisibility(View.GONE);
4007 cling.cleanup();
4024 final View cling = findViewById(id);
4025 if (cling != null) {
4026 final ViewGroup parent = (ViewGroup) cling.getParent();
4030 parent.removeView(cling);
4038 Cling cling = (Cling) findViewById(R.id.workspace_cling);
4039 boolean customCling = cling.getDrawIdentifier().equals("workspace_custom");
4051 !mSharedPrefs.getBoolean(Cling.WORKSPACE_CLING_DISMISSED_KEY, false) &&
4053 // If we're not using the default workspace layout, replace workspace cling
4054 // with a custom workspace cling (usually specified in an overlay)
4058 // Use a custom cling
4059 View cling = findViewById(R.id.workspace_cling);
4060 ViewGroup clingParent = (ViewGroup) cling.getParent();
4061 int clingIndex = clingParent.indexOfChild(cling);
4075 !mSharedPrefs.getBoolean(Cling.ALLAPPS_CLING_DISMISSED_KEY, false)) {
4081 public Cling showFirstRunFoldersCling() {
4084 !mSharedPrefs.getBoolean(Cling.FOLDER_CLING_DISMISSED_KEY, false)) {
4092 Cling cling = (Cling) findViewById(R.id.folder_cling);
4093 if (cling != null) {
4094 return cling.getVisibility() == View.VISIBLE;
4099 Cling cling = (Cling) findViewById(R.id.workspace_cling);
4100 dismissCling(cling, Cling.WORKSPACE_CLING_DISMISSED_KEY, DISMISS_CLING_DURATION);
4103 Cling cling = (Cling) findViewById(R.id.all_apps_cling);
4104 dismissCling(cling, Cling.ALLAPPS_CLING_DISMISSED_KEY, DISMISS_CLING_DURATION);
4107 Cling cling = (Cling) findViewById(R.id.folder_cling);
4108 dismissCling(cling, Cling.FOLDER_CLING_DISMISSED_KEY, DISMISS_CLING_DURATION);