android


Scroll view issue in navigation drawer


when I give Scrollview to Navigation Drawer it gives me error in android studio. How to solve this problem?
when I add scroll view on navigation drawer,it will give error nd redirect the curser on drawer.closeDrawer(GravityCompat.START); in MainActivity.java
Try it like this way.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="#+id/top_parent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context=".Dashbored">
<include
android:id="#+id/tool_bar"
layout="#layout/tool_bar">
</include>
<android.support.v4.widget.DrawerLayout
android:id="#+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="#+id/tool_bar"
android:elevation="7dp"
android:fitsSystemWindows="true"
tools:openDrawer="end">
<LinearLayout
android:id="#+id/linear_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<FrameLayout
android:id="#+id/frame_container"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="#layout/f_home_screen" />
</FrameLayout>
</LinearLayout>
<android.support.design.widget.NavigationView
android:id="#+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:maxWidth="250dp"
android:layout_gravity="end"
android:background="#0284fe"
android:fitsSystemWindows="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include
android:id="#+id/navheader"
layout="#layout/nav_header" />
<ListView
android:id="#+id/lst_menu_items"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:divider="#null"
android:dividerHeight="0dp"
/>
</LinearLayout>
</android.support.design.widget.NavigationView>
</android.support.v4.widget.DrawerLayout>

Related Links

how to retrieve name of image displayed by ImageView?
How to create a database in the device native platform using Worklight?
Android Facebook Handle Session
how to add animation to textView drawable
how to make my checkbox unchecked
How to open a random fragment in onCreate for activity?
Xamarin Universal Image Loader Out of Memory exception
Supporting multiple versions of android?
Android Include at the bottom of layout
Disable Android Support Library ADT: Build: v22.6.2-1085508
android layout not matching
Only one array element is passed to my asynctask
Put image into Mapview Marker Callout
Android NullPointerException + GetDatabaseLocked
self signed certificate working fine on windows but giving error on Android [duplicate]
Adding image buttons side by side dynamically to Liner Layout whose Orientation is vertical

Categories

HOME
phantom-dsl
assembly
cheerio
ng-idle
telegram
wakanda
angular2-material
components
sublimetext
vscode-extensions
soa
mips
square
bookmarks
jetty
barcode
p2p
sendgrid-api-v3
pattern-matching
dkim
php-5.6
comsol
gource
cumulocity
docx
capistrano3
keytool
esoteric-languages
package.json
standards
mvc-mini-profiler
symfony-console
oledb
visual-glitch
jquery-ias
flooding
jasmine-node
progress-bar
apktool
8051
rpgle
user-defined-functions
eviews
dst
android-sugarorm
hard-drive
pop3
pdw-file-browser
protein-database
projects-and-solutions
resolution
signal-strength
httr
dbcontext
launchctl
google-cse
singleinstance
materialized-path-pattern
rocks
stax
reporting-services-2012
centrifuge
watch-os-2
jboss-tools
nservicebus5
stream-processing
piracy-prevention
rasterize
spring-retry
lazybones
intel-c++
opserver
rpart
lasso
finalbuilder
keyup
botan
typeconverter
android-broadcast
adehabitathr
exceldatareader
theos
execve
angular-gettext
administration
universal-image-loader
encryption-asymmetric
mdichild
verold
live555
conditionaltagsupport
sbcl
mt4j
solace-mq
script#
kogrid
poker
frameworkelementfactory
wcf-configuration
predicatebuilder
koken
gobject-introspection
expression-blend-4
landscape-portrait
automationelement
rmdir
non-clustered-index
pos-for-.net
skype4java
dsl-tools
cldc
sifr3
lemmatization
pbcopy

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