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));
}
});
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>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.