0

I'm doing my application with my tablet, is there anyway to consume the onClick event?

it's like:

cdProduto.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            startActivity(new Intent(produtos.this, calc.class));
        }
});
Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
JLFerrari
  • 155
  • 3
  • 16
  • 2
    Please explain more. Your question's title seems to have nothing to do with your question. – Phil Aug 19 '11 at 17:46
  • What wigdet? A Button or what? If a button this is correct.And please fix your title. It has nothing to do with your question. – yoshi24 Aug 19 '11 at 17:46

1 Answers1

1

If you want to hide the OnScreen keyboard you can use: this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);

or in the Manifest:

<activity android:name=".YourActivity" android:configChanges="keyboardHidden"></activity>
Nick
  • 9,285
  • 33
  • 104
  • 147
  • Try looking http://stackoverflow.com/questions/4215476/hide-virtual-keyboard-in-android – Nick Aug 19 '11 at 18:00