Quantcast
Channel: BTSoru.com - Bilisim ve Yazilim Teknolojileri Soru/Cevap Platformu - latest questions
Viewing all articles
Browse latest Browse all 4270

Android Dokunmatik Ekran Oluşturma

$
0
0

private String TAG = GestureActivity.class.getSimpleName(); float initialX, initialY;

@Override
public boolean onTouchEvent(MotionEvent event) {
    //mGestureDetector.onTouchEvent(event);

    int action = event.getActionMasked();

    switch (action) {

        case MotionEvent.ACTION_DOWN:
            initialX = event.getX();
            initialY = event.getY();
            AllocationAdapter imageView = null;

            imageView.setX((int) initialX);

            imageView.setY((int) initialY);

            Log.d(TAG, "Action was DOWN");
            break;
    }

    return super.onTouchEvent(event);
}

Arkadaşlar bu kodu yazdım ama çalıştırınca duruyor program neden yanlış mı?


Viewing all articles
Browse latest Browse all 4270

Trending Articles


huddam daveti


Tekasür Suresi


"Yâ Kuddûs!" Esması Havâs ve Esrârı


Kasemi Mübelliğa


Peri44


Kuvvetli muhabbet ve aşk tılsımı


El-Mütekebbir


Papaz büyüsü


SCCM 2012 Client Installation issue


Zilhicce Ayının Namaz Duası ÖNEMLİ