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

Which Intent is broadcasted when networkType(Telephony Manager) changes
Android : Static Spinner values match based on DatePicker
Spinner image changes in android?
Get item ID from populated ListView
Huge SQLite DB on Android app doubles its size
How to design a FullScreen Layout with Image, Text and GMap Fragment in Android
Android NumberPicker set min and max values in xml
How can I share string-array between applications in Android?
File upload issues phonegap app to Amazon s3
Android/SQLite - why can't I put “+” character in a database column?
setMargins in custom ViewGroup does not work
Copy data between tables with some static values
Upload Image Application is working fine on emulator but unable to upload Image on test phone
Unlock achievement in google play games silently, without showing notification
Delete the row as we click the checkbox
How can I delete Google drive file on android app

Categories

HOME
sonarqube
xml
phpword
localization
twitter-bootstrap-3
c99
ns-3
fftw
spring-data-redis
cakephp-3.4
parameters
bookmarks
jquery-ui
missing-data
trac
title
commonjs
google-chrome-app
ibeacon-android
emoji
libc
powershell-v5.0
google-content-api
xmonad
symfony-console
jmp
topology
user-experience
dpdk
named-entity-recognition
react-toolbox
fractions
jaws
complex-numbers
sql-server-2000
r-grid
classcastexception
reverse
pdw-file-browser
sql-delete
raft
jpad
gdata
google-data-api
magento-1.9.3
android-checkbox
x++
getchar
linter
renaming
branch-prediction
cvxpy
winusb
vulcanize
beamer
wso2developerstudio
mapinfo
dimension
vorpal.js
eigenvector
firebase-security
refinerycms
jtwig
lua-telegram-bot
fink
np-spring
forwarding
intel-c++
ons-api
zscript
liquid-layout
diff3
openbabel
apache-spark-1.3
authlogic
extjs2
drupal-nodes
mt4j
flex++
epiceditor
actiondispatch
jsr286
wiimote
cross-database
expression-blend-4
unattended-processing
msr
vs-android
folding
tabpanel
duplex
spread
wcf-instancing
wspbuilder

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