Is there a way to manipulate with sensitivity of screen?
Any 1 knows?
So i can make some parts of screen more or less touch sensitive.



TextView t = new TextView(this);
t.setOnLongClickListener(new View.OnLongClickListener(
@Override
public void onLongClick(){
System.out.println("Ooo you pressed me so hard, this code is so cool");
}
));
private static final int PRESSURE_POINT = 50;
private int timePressed = 0;
private void onTouch(){
timePressed++;
System.out.println("your pressing me");
if(timePressed >= PRESSURE_POINT){
System.out.println("You've pressed me long and hard");
timePressed = 0;
}
}



you inspired me to code :p

Plump wrote:Wow,I think that's a tough work!



Users browsing this forum: No registered users and 3 guests