android


Can we Open Multiple DrawerLayout in One Activity


Can we open multiple DrawerLayout in one activity.
i mean when open on one DrawerLayout and onclick on item open another drawerlayout.
(Nested Drawer layout).
Yes you can using Fragments.
From the Fragment's onCreateView() you can include a button somewhere that has OnClickListenerwhere in you put this code .
open a new Drawer :
//For me a better way in avoiding a `null pointer` in getting the DrawerLayout
final DrawerLayout drawer = (DrawerLayout) getActivity().findViewById(R.id.drawer_layout);
btn.setOnClickListener(new View.OnClickListener() {
#Override
public void onClick(View v) {
// TODO Auto-generated method stub
//Opens the Drawer
drawer.openDrawer(Your View, Usually a ListView);
}
return false;
});
And close Drawer :
drawer.closeDrawer(Your View, Usually a ListView);
Hope it helps .

Related Links

Menu in android, application doesn't launch
Android: Cropping an image after capture or picking from Gallery
UiAutomator Android does not recognize alert pop
React Native: as overflow = hidden on Android, how can we design floating action button
Is possible to determine beacon's location from Android?
android different apks same authenticator account type
Sharing Asset Image from Android custom IME, working for everything except Gmail and MMS
Download Streamed gif file and store in byte array
Android JSONParser Php
How can I get an ImageView's tint color programatically?
How to make compressed lightmaps look better?
wait for AsyncTask to finish
Is it doable to collect user fingerprint with android?
After fragment replace fragment view not scrollable
Group Firebase FCM on Android Device
android studio - sqlite: get random row data using cursor

Categories

HOME
hyperlink
nvd3.js
alexa-skills-kit
datastore
angular-formly
alarm
edge
static-site
cakephp-3.4
3d-reconstruction
maxscript
jax-ws
qpython
fabric.io
android-securityexception
opengl-es-3.0
pybossa
comsol
frequency-distribution
plink
libusb
gruntfile
searchview
google-container-registry
connector
boost-icl
springfox
backpack-for-laravel
exit
pchart
flask-sqlalchemy
moses
ms-access-web-app
has-and-belongs-to-many
oculus
tizen-tv
ntp
autodesk-designautomation
recurring-events
jbutton
fstream
hard-drive
dynamic-jasper
hibernate-search
sql-server-ce
setup.py
stringtokenizer
softmax
http-request
oim
dapper-simplecrud
snapchat
flask-restful
opennms
lampp
term
netbeans6.8
openblas
java-6
otp
er-diagram
flac
offline.js
change-tracking
smartfoxserver
cudd
atlas
microstation
async.js
x-tag
swizzling
cassia
createprocess
findfirst
concept-insights
asyncdisplaykit
linklabel
fuelcms
binomial-theorem
sony-lifelog-api
zscript
ocra
pyobjc
j-security-check
variadic-templates
packet-sniffers
structuremap3
nsmenu
cuba
codeplex
functional-java
dot42
fpdi
android-usb
code-duplication
ice-cube
observium
node-blade
octal
insert-id
subgraph
hibernateexception
u2netdk
google-ajax-api
svk
cac
aspmenu
application-verifier
lxr
product-management
dsoframer
soappy

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App