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

getCurrentSizeRange() on Android earlier than 4.1
Is it possible to test google In-app Billing Version used?
how to select all checkbox in custom listview from activity in android
Android ColorPicker is shown as black instead of being colorful
Internationalizing mongodb nodejs
Google Map needs an API or not?
BackPressed in Fragment not functioning properly
periods not available in keypad to enter in edittext in android
Letter posting effect or genie effect like animation in android [closed]
How to add elements to Viewpager dynamically android
Gradle: Exclude file from Android assets folder
Is it possible to make method accessible at specific API level?
GridView with 2 rows and multiple Columns Horizontal Scroll Dynamically in Android
How to show selected record of Custom list view on Toast
BroadcastReceiver on Huawei MediaPad 7 Youth 2 not receiving
matchscore method always return 0 using the “doTrackIdAsync” method with the Gracenote mobile android GNSDK

Categories

HOME
embedded
angular-formly
zend-framework
rsa
serialization
composite-primary-key
shiro
pclxl
tivoli
web-hosting
vsm
gluon-mobile
barcode
spin
openpyxl
comsol
coin3d
jersey-1.0
oledb
php-mysqlidb
direct3d11
strongname
maze
fragment-backstack
intersystems-cache
google-earth
magento-1.8
openwhisk
watchman
linq-to-objects
apache-stanbol
wmp
dbnull
movilizer
subclipse
outputcache
show-hide
httr
getchar
openal
automapper-5
corruption
stdmap
modelsim
bbpress
payload
lsyncd
monkey
py2neo
cd-burning
mathcad
simplepie
flex-monkey
centrifuge
flex4.6
nservicebus5
kiosk
custom-errors
dllimport
jdi
xvim
ons-api
canalyzer
uncompress
ansi
omnifaces
user-permissions
shopizer
primitive-types
pseudo-class
administration
sonarqube-5.0
structuremap3
wcm
gii
functional-java
websphere-esb
amslidemenu
scringo
gpars
android-sdk-2.3
nokia-s40
listitem
subproject
automationelement
jqote
quotation-marks
collectionviewsource
application-verifier
dsl-tools
alsb
xpsdocument
scrubyt
appliance

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