android - pass onTouch event window manager -
Only click on the button, but when the user clicks on the view (window manager), then I want to touch My problem for touching the back piece is that I was clicked on the button but I do not know how to pass this incident to look back. any suggestion?
Public connection re-connection LinkedIn overlay view expanded {Personal Final Reference mContext; Private Final Watch Group Mapplet; Refresh the private button; Private window manager mWinManager; Public Reorder LinkedInOverlayView (activity activity) {super (activity.getApplicationContext ()); MContext = activity.getApplicationContext (); Final Window Manager. LayoutPrames Parameters = New Window Manager. LayoutParms (Window Manager LayoutParms.Tep_SVTM_ALERT, Window ManagerLayatParams.FALG_ONFOCSABable | WindowManager.LateParamsFlag_watches_UITIDIDOtEeCHWindowsManagerLateParmsFlag_LUUICACRENPixelFormatTranslant;); MWinManager = (Window Manager) activity.getSystemService (Context.WINDOW_SERVICE); Layout Inflator Influencer = (Layout Inflator) Activity Gate System System Services (References LAOUT_INFLATER_SERVICE); MPopupLayout = (Relative layout) inflater.inflate (R. Lite notification_linkedin_reconnection_card, empty); MPopupLayout.setVisibility (gone); Refresh = (button) mPopupLayout.findViewById (R.id.notification_linked_in_reconnection_button); Typeface face = typeface.ScentFaceAssets (activity.getAssets (), "fonts / openSan-RegularTTF"); Refresh.setTypeface (face); Refresh.setOnClickListener (New OnClickListener () {@Override Click Public Zero (see V) {hide (;;}}); MPopupLayout.setTouchInterceptor (New On-TouchListener) {@ Override Public Boolean On Talk (see V, Motion Event Event) {Log. (Tag, "Popup Windo :: On-Touch ()"); Return Return;}} ); Params.width = WindowManager.LayoutParams.WRAP_CONTENT; Parameters.High = Window Manager. LayoutPam. WRAP_CONTENT; Params.gravity = Gravity BOTTOM | Gravity.CENTER_HORIZONTAL; MWinManager.addView (MPPPlayout, Parameters); MPopupLayout.setVisibility (gone); } / ** * Shows the view * / show the public zoom () {in the final animation = animationUltimately. Load Animation (this.maxtxt, android.r.enim.fade_in); In.setDuration (1000); MPopupLayout.setVisibility (visible); (In) mPopupLayout.startAnimation; } / ** * Hide * / Public Zero Hide () {In the last animation = AnimationUltra.load animation (this.mictite, AndroidR.Anim.Fade_out); In.setDuration (1000); If (mPopupLayout! = Null) mWinManager.removeView (mPopupLayout); MPopupLayout.setVisibility (gone); }}
Comments
Post a Comment