GestureOverlayView setGesture - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for GestureOverlayView setGesture method.

This code example shows how to use the following methods:setGesture
        if (gesture == null)
            return; 
 
        overlay.post(new Runnable() {
            public void run() { 
                overlay.setGesture(gesture);
            } 
        }); 
    } 
 
    private void processActivityIntent(Bundle bundle) {
        if (bundle != null) {
            final int displayType = bundle.getInt(KEY_DISPLAY_TYPE, DISPLAY_TYPE_NEW_TEMPLATE);
 
            if (displayType == DISPLAY_TYPE_EDIT_TEMPLATE) {
                editingMode = true;
 
                mCurrentTemplateEditingId = bundle.getLong(KEY_TEMPLATE_ID, Long.MIN_VALUE);
 
                if (mCurrentTemplateEditingId == Long.MIN_VALUE) {
3
CodeRank
This code example shows how to use the following methods:setGesture
		if (mGesture != null) {
			final GestureOverlayView overlay =
					(GestureOverlayView) findViewById(R.id.gestures_overlay);
			overlay.post(new Runnable() {
				public void run() { 
					overlay.setGesture(mGesture);
				} 
			}); 
 
			mDoneButton.setEnabled(true);
		} 
	} 
 
//	@SuppressWarnings({"UnusedDeclaration"}) 
	public void addGesture(View v) {
//		if (mGesture != null) { 
//			final TextView input = (TextView) findViewById(R.id.gesture_name); 
//			final CharSequence name = input.getText(); 
//			if (name.length() == 0) { 
//				input.setError(getString(R.string.error_missing_name)); 
4
CodeRank
This code example shows how to use the following methods:setGesture
        if (mGesture != null) {
            final GestureOverlayView overlay =
                    (GestureOverlayView) findViewById(R.id.gestures_overlay);
            overlay.post(new Runnable() {
                public void run() { 
                    overlay.setGesture(mGesture);
                } 
            }); 
 
            mDoneButton.setEnabled(true);
        } 
    } 
 
    public void cancelGesture(View v) {
        setResult(RESULT_CANCELED);
        finish();
    } 
 
    public void replaceGesture(View v) {
        SharedPreferences preferences = getSharedPreferences(MusicSettingsActivity.PREFERENCES_FILE,
4
CodeRank
This code example shows how to use the following methods:setGesture
		mGesture = savedInstanceState.getParcelable("gesture"); 
		if (mGesture != null) { 
			final GestureOverlayView overlay = (GestureOverlayView) findViewById(R.id.gestures_overlay); 
			overlay.post(new Runnable() { 
				public void run() { 
					overlay.setGesture(mGesture); 
				} 
			}); 
 
			mDoneButton.setEnabled(true); 
		} 
	} 
 
	/** 
	 * Ôö¼ÓÊÖÊƵİ´Å¥ 
	 * @param v 
	 */ 
	public void addGesture(View v) { 
		if (mGesture != null) { 
			final TextView input = (TextView) findViewById(R.id.gesture_name); 
4
CodeRank
This code example shows how to use the following methods:setGesture
        if (mGesture != null) {
            final GestureOverlayView overlay =
                    (GestureOverlayView) findViewById(R.id.gestures_overlay);
            overlay.post(new Runnable() {
                public void run() { 
                    overlay.setGesture(mGesture);
                } 
            }); 
 
            mDoneButton.setEnabled(true);
        } 
    } 
 
    @SuppressWarnings({"UnusedDeclaration"}) 
    public void addGesture(View v) {
        if (mGesture != null) {
            final TextView input = (TextView) findViewById(R.id.gesture_name);
            final CharSequence name = input.getText();
            if (name.length() == 0) {
                input.setError(getString(R.string.error_missing_name));
4
CodeRank
This code example shows how to use the following methods:setGesture
        if (mGesture != null) {
            final GestureOverlayView overlay =
                    (GestureOverlayView) findViewById(R.id.gestures_overlay);
            overlay.post(new Runnable() {
                public void run() { 
                    overlay.setGesture(mGesture);
                } 
            }); 
 
            mDoneButton.setEnabled(true);
        } 
    } 
 
 
    public void addGesture(View v) {
        if (mGesture != null) {
            if (mUri == null) {
                Toast.makeText(this, R.string.gestures_error_missing_shortcut, Toast.LENGTH_SHORT).show();
                return; 
            } 
5
CodeRank
This code example shows how to use the following methods:setGesture
        if (mGesture != null) {
            final GestureOverlayView overlay =
                    (GestureOverlayView) findViewById(R.id.gestures_overlay);
            overlay.post(new Runnable() {
                public void run() { 
                    overlay.setGesture(mGesture);
                } 
            }); 
 
            mDoneButton.setEnabled(true);
        } 
    } 
 
    @SuppressWarnings({"UnusedDeclaration"}) 
    public void addGesture(View v) {
        if (mGesture != null) {
            final TextView input = (TextView) findViewById(R.id.gesture_name);
            final CharSequence name = input.getText();
            if (name.length() == 0) {
                input.setError(getString(R.string.error_missing_name));
4
CodeRank
This code example shows how to use the following methods:setGesture
		if (mGesture != null) {
			final GestureOverlayView overlay =
				(GestureOverlayView) findViewById(R.id.gestures_overlay);
			overlay.post(new Runnable() {
				public void run() { 
					overlay.setGesture(mGesture);
				} 
			}); 
 
			mDoneButton.setEnabled(true);
		} 
	} 
 
	public void addGesture(View v) {
		if (mGesture != null) {
			final TextView input = (TextView) findViewById(R.id.gesture_name);
			final CharSequence name = input.getText();
			if (name.length() == 0) {
				input.setError(getString(R.string.error_missing_name));
				return; 
4
CodeRank
This code example shows how to use the following methods:setGesture
        if (mGesture != null) {
            final GestureOverlayView overlay =
                    (GestureOverlayView) findViewById(R.id.gestures_overlay);
            overlay.post(new Runnable() {
                public void run() { 
                    overlay.setGesture(mGesture);
                } 
            }); 
 
            mDoneButton.setEnabled(true);
        } 
    } 
 
    @SuppressWarnings({"UnusedDeclaration"}) 
    public void addGesture(View v) {
        if (mGesture != null) {
            final TextView input = (TextView) findViewById(R.id.gesture_name);
            final CharSequence name = input.getText();
            if (name.length() == 0) {
               // input.setError(getString(R.string.error_missing_name)); 
4
CodeRank
This code example shows how to use the following methods:setGesture
        if (mGesture != null) {
            final GestureOverlayView overlay =
                    (GestureOverlayView) findViewById(R.id.gestures_overlay);
            overlay.post(new Runnable() {
                public void run() { 
                    overlay.setGesture(mGesture);
                } 
            }); 
 
            mDoneButton.setEnabled(true);
        } 
    } 
 
 
    public void addGesture(View v) {
        if (mGesture != null) {
            if (mUri == null) {
                Toast.makeText(this, R.string.gestures_error_missing_shortcut, Toast.LENGTH_SHORT).show();
                return; 
            } 
4
CodeRank