Open leonlee0116 opened 4 years ago
how are ,what is this ??
J5 prime
On Fri, 6 Nov 2020, 9:39 am leonlee0116 <notifications@github.com wrote:
In activity onCreate
View view = LayoutInflater.from(this).inflate(R.layout.content_setting, null); slidingRootNav = new SlidingRootNavBuilder(this) .withMenuOpened(true) .withContentClickableWhenMenuOpened(true) .withSavedState(savedInstanceState) .withMenuView(view) .inject(); ``
And in my content_setting.xml i have a button, i need to apply action on it so I put
LinearLayout btn = slidingRootNav.getLayout().findViewById(R.id.btnClose); btn.setOnClickListener(new View.OnClickListener() { @override https://github.com/override public void onClick(View v) { if(slidingRootNav.isMenuOpened()){ slidingRootNav.closeMenu(); } else { slidingRootNav.openMenu(); } } });
But the click is not responding, no return error to me also. Is there any correct way to do it?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yarolegovich/SlidingRootNav/issues/78, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARJG7J2KIMIOKXXLV6ISOULSOORZPANCNFSM4TMK44UA .
.....................................
يرغب Daroat في التواصل معك على LinkedIn.
Daroat Jalal Jamma'a طالب في جامعة العلوم وتقانة امدرمان السودان
.....................................
أنت تتلقى رسائل بريد إلكتروني من دعوة سيستخدم موقع LinkedIn عنوان بريدك الإلكتروني لتقديم اقتراحات لأعضائنا في ميزات مثل أشخاص قد تعرفهم.
تم إرسال البريد الإلكتروني إلى reply@reply.github.com.
© 2021 LinkedIn Ireland Unlimited Company, Wilton Plaza, Wilton Place, Dublin 2. LinkedIn is a registered business name of LinkedIn Ireland Unlimited Company. LinkedIn and the LinkedIn logo are registered trademarks of LinkedIn.
In activity onCreate
And in my content_setting.xml i have a button, i need to apply action on it so I put
But the click is not responding, no return error to me also. Is there any correct way to do it?