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

Android NullPointerException in create comunication listener between Fragment and Activity
How to send multipart/form-data with Retrofit?
how to hide or disable actionMode in CHOICE_MODE_MULTIPLE_MODAL in listview
How to structure the tabs in a tabHost in Android?
Why am I not allowed to use setOnClickListener in this situation?
Implementing admob for different activities
Set margin to “standalone” view
Fetch Facebook album cover photo - Android
Need to implement an instant messaging for iOS and Android? [closed]
window.localStorage.setItem not working on mobile phone
Glympse API while sending sms TICKET_INVITE_FAILED
Android do ToolBar icon animation programmatically
android: custom view layout wrapping
Checkbox in a custom adapter to update the database
Google Cloud module not visible in Android Studio
Is it possible to creat some chat in a website to send message in an app?

Categories

HOME
shell
gridview
deep-learning
ecmascript-6
alexa-skills-kit
battery
solver
nuget
nsbundle
parameters
crystal-reports-2013
jax-ws
pattern-matching
google-schemas
dkim
vimdiff
openpyxl
plist
alamofire
naivebayes
radgridview
renjin
atlassian
android-intent
esoteric-languages
symfony-2.8
sse
pagespeed
postscript
monit
displaytag
roundup
froala
surveymonkey
syntax-highlighting
fable-f#
jasmine-node
subclass
quantlib
google-cast
postback
python-2.6
quickfixj
erb
laravel-eloquent
simplecv
dynamic-jasper
pop3
watchman
tex
gdata
trigonometry
install.packages
dynamic-linq
robomongo
vugen
rserve
tinymce-3
identification
datamaps
openblas
context-sensitive-grammar
compiler-design
filehandle
jqchart
dt
check-mk
type-theory
branch-prediction
stripe-connect
slackware
stax
mta
xdoclet
freepbx
cfchart
stream-processing
query-by-example
phpwebsocket
cortex-m
contentcontrol
mobiledoc-kit
state-restoration
linklabel
r-package
computer-architecture
ons-api
coda
evolus-pencil
dronekit-android
umlgraph
punycode
imagefilter
verold
reflector
matrix-inverse
dsym
eclipse-kepler
inappsettingskit
cffile
neos-server
asdf
pclzip
http-status-code-410
pdfviewer
xcode3.2
boost-signals
fitbounds
ikimagebrowserview
expression-blend-4
mysql-error-1205
pylucene
uipagecontrol
object-database
openfaces
cldc
technical-debt
business-model

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