Error "DrawerLayout" 2018

1

I have a problem with this, the "DrawerLayout", look

and this is my build.gradle (Module: application)

    
asked by Gian Franco Alexis Poma Vidal 15.08.2018 в 07:47
source

1 answer

0

The problem indicates that the specified style does not exist:

  

Failed to find style 'navigationViewStyle' in current theme

You have to add the subject within Styles.xml

<style name="NavigationViewStyle">
     <!-- menu item text size-->
     <item name="android:textSize">20sp</item> 
     <!-- menu item height-->
     <item name="android:listPreferredItemHeightSmall">40dp</item>
</style>

and call it, I guess it's used by your NavigationView :

<android.support.design.widget.NavigationView
       ...
       ...    
        app:theme="@style/NavigationViewStyle"
       ...
       ...
</android.support.design.widget.NavigationView>
    
answered by 15.08.2018 / 18:03
source