Page 1183 - 3-3
P. 1183

}
                                    }, 3000);
                                }
                            });
                    DB.setOnClickListener(
                            new Button.OnClickListener() {
                                public void onClick(View v) {
                                    Intent      Intentdb      =       new        Intent(SmartHouseActivity.this,
            DataBaseActivity.class);
                                    // 액티비티 시작!
                                    startActivity(Intentdb);
                                }
                            });
                }


                @Override
                public boolean onTouchEvent(MotionEvent event) {
                    this.gestureDetectorCompat.onTouchEvent(event);
                    this.gestureDetectorCompat2.onTouchEvent(event);
                    return super.onTouchEvent(event);
                }
                class MyGestureListener extends GestureDetector.SimpleOnGestureListener {
                    //handle 'swipe left' action only


                    public boolean onFling(MotionEvent event1, MotionEvent event2,
                        float velocityX, float velocityY) {
                            LinearLayout Menu = (LinearLayout) findViewById(R.id.Menu);
                        LinearLayout DataBase = (LinearLayout) findViewById(R.id.DataBase);
                        LinearLayout homectrl1 = (LinearLayout) findViewById(R.id.homectrl);
                        LinearLayout homectrl2 = (LinearLayout) findViewById(R.id.homectrl1);
                        LinearLayout homectrl3 = (LinearLayout) findViewById(R.id.homectrl2);
                        LinearLayout otpctrl = (LinearLayout) findViewById(R.id.otp);
                        Button LF_menu = (Button) findViewById(R.id.LF_menubtn);
                        Button RIG_menu = (Button) findViewById(R.id.RIG_menubtn);
                        TextView status = (TextView)findViewById(R.id.status);
                     /*
                     Toast.makeText(getBaseContext(),
                      event1.toString() + "\n\n" +event2.toString(),
                      Toast.LENGTH_SHORT).show();
                     */


                        if (event2.getX() < event1.getX()) {
                            count++;
                            if (count == 6) count = 5;




                                                         - 1183 -
   1178   1179   1180   1181   1182   1183   1184   1185   1186   1187   1188