Android drawer icon with material design animation

Overview

LDrawer

Android Arsenal

Android drawer icon with material design animation

Note

Basically same as appcompat_v7 version 21, you can use appcompat_v7

compile 'com.android.support:appcompat-v7:21.0.+'
<style name="AppTheme" parent="Theme.AppCompat.Light">
    <item name="actionBarStyle">@style/ActionBar</item>
</style>

<style name="ActionBar" parent="Theme.AppCompat.Light.DarkActionBar">
    <item name="drawerArrowStyle">@style/AppTheme.DrawerArrowToggle</item>
</style>

<style name="AppTheme.DrawerArrowToggle" parent="Base.Widget.AppCompat.DrawerArrowToggle">
    <item name="color">@android:color/white</item>
</style>

Download

via Maven:

<dependency>
  <groupId>com.ikimuhendis</groupId>
  <artifactId>ldrawer</artifactId>
  <version>0.1</version>
</dependency>

or Gradle:

compile 'com.ikimuhendis:ldrawer:0.1'

alt tag

##Usage

You can use like using normal drawer, instead of using android.support.v4.app.ActionBarDrawerToggle use com.ikimuhendis.ldrawer.ActionBarDrawerToggle

First create drawerArrow

drawerArrow = new DrawerArrowDrawable(this) {
        @Override
        public boolean isLayoutRtl() {
            return false;
        }
    };

Then create ActionBarDrawerToggle

mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout,
        drawerArrow, R.string.drawer_open,
        R.string.drawer_close) {

        public void onDrawerClosed(View view) {
            super.onDrawerClosed(view);
            invalidateOptionsMenu();
        }

        public void onDrawerOpened(View drawerView) {
            super.onDrawerOpened(drawerView);
            invalidateOptionsMenu();
        }
    };

You can stop or start animation

mDrawerToggle.setAnimateEnabled(false);

You can set drawerArrow progress or change color

drawerArrow.setProgress(0f); // normal position
drawerArrow.setProgress(1f); // back arrow position
drawerArrow.setColor(R.color.ldrawer_color); // to set color

##Example Projects

Google Play LDrawer

Google Play Yemek Tarifleri

Google Play Asparagus - My Recipes

License

Copyright 2014 İkimühendis

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Comments
  • NoSuchMethodException: setHomeActionContentDescription [int]

    NoSuchMethodException: setHomeActionContentDescription [int]

    As far as I tested everything works, but when the Drawer is opened and closed such exception occurs:

    10-23 20:09:38.992    1818-1818/<some_package> E/com.ikimuhendis.ldrawer.ActionBarDrawerToggle﹕ setActionBarUpIndicator
        java.lang.NoSuchMethodException: setHomeActionContentDescription [int]
                at java.lang.Class.getConstructorOrMethod(Class.java:460)
                at java.lang.Class.getDeclaredMethod(Class.java:685)
                at com.ikimuhendis.ldrawer.ActionBarDrawerToggle.setActionBarDescription(ActionBarDrawerToggle.java:161)
                at com.ikimuhendis.ldrawer.ActionBarDrawerToggle.onDrawerOpened(ActionBarDrawerToggle.java:110)
                at ua.com.florin.anotherflashlight.MainActivity$2.onDrawerOpened(MainActivity.java:73)
                at android.support.v4.widget.DrawerLayout.dispatchOnDrawerOpened(DrawerLayout.java:587)
                at android.support.v4.widget.DrawerLayout.updateDrawerState(DrawerLayout.java:539)
                at android.support.v4.widget.DrawerLayout$ViewDragCallback.onViewDragStateChanged(DrawerLayout.java:1495)
                at android.support.v4.widget.ViewDragHelper.setDragState(ViewDragHelper.java:866)
                at android.support.v4.widget.ViewDragHelper$2.run(ViewDragHelper.java:335)
                at android.os.Handler.handleCallback(Handler.java:615)
                at android.os.Handler.dispatchMessage(Handler.java:92)
                at android.os.Looper.loop(Looper.java:137)
                at android.app.ActivityThread.main(ActivityThread.java:4745)
                at java.lang.reflect.Method.invokeNative(Native Method)
                at java.lang.reflect.Method.invoke(Method.java:511)
                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
                at dalvik.system.NativeStart.main(Native Method)
    
    opened by F1orin 7
  • Is LDrawer support android.support.v7.app.ActionBarActivity ?

    Is LDrawer support android.support.v7.app.ActionBarActivity ?

    My Activity is ActionBarActivity and i change v4.ActionBarDrawerToggle to LDrawer's ActionBarDrawerToggle

    but i got same error ActionBarDrawerToggle line 130 setHomeAsUpIndicator.invoke(mActivity.getActionBar(), mDrawerImage)

    getActionBar is null

    so i think LDrawer seems not support v7.ActionBarActivity ?!

    opened by Samsu7609 5
  • Not work with min api 9

    Not work with min api 9

    Just don't work, the drawer icon is static with arrow icon.

    apply plugin: 'com.android.application'
    
    android {
        compileSdkVersion 21
        buildToolsVersion "21.1.2"
    
        defaultConfig {
            applicationId "my.app.package"
            minSdkVersion 9
            targetSdkVersion 21
            versionCode 11
            versionName "2.0"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }
    
    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile 'com.android.support:appcompat-v7:21.0.3'
        compile 'com.ikimuhendis:ldrawer:0.1'
    }
    
    opened by idemax 5
  • Error:Execution failed for task ':app:processDebugManifest'.

    Error:Execution failed for task ':app:processDebugManifest'.

    Hi,

    When I add the this dependence to my project I get a Manifest compatibility problem, what should I do to solve it?

    The compiler tells me to user tools:overrideLibrary="com.ikimuhendis.ldrawer" to solve it. It's recommended?

    Error:Execution failed for task ':app:processDebugManifest'.

    Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 14 declared in library /Users/idemax/Development/Workspaces/NGTProjects/nnotes/APP/v2/app/build/intermediates/exploded-aar/com.ikimuhendis/ldrawer/0.1/AndroidManifest.xml Suggestion: use tools:overrideLibrary="com.ikimuhendis.ldrawer" to force usage

    opened by idemax 3
  • NoSuchMethodException

    NoSuchMethodException

    NoSuchMethodException: setHomeActionContentDescription [int] at java.lang.Class.getConstructorOrMethod(Class.java:460) at java.lang.Class.getDeclaredMethod(Class.java:685) at com.ikimuhendis.ldrawer.ActionBarDrawerToggle.setActionBarDescription(ActionBarDrawerToggle.java:161) at com.ikimuhendis.ldrawer.ActionBarDrawerToggle.syncState(ActionBarDrawerToggle.java:58) at com.fongmi.ticket.activity.Main.onPostCreate(Main.java:158) at android.app.Instrumentation.callActivityOnPostCreate(Instrumentation.java:1145) at com.lbe.security.service.core.client.b.x.callActivityOnPostCreate(Unknown Source) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2329) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2398) at android.app.ActivityThread.access$600(ActivityThread.java:162) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:153) at android.app.ActivityThread.main(ActivityThread.java:5356) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:853) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620) at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:133) at dalvik.system.NativeStart.main(Native Method)

    opened by FongMi 2
  • find com.ikimuhendis:ldrawer:1.0.

    find com.ikimuhendis:ldrawer:1.0.

    Error:Gradle: A problem occurred configuring project ':app'.

    Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not find com.ikimuhendis:ldrawer:1.0. Required by: test:app:unspecified

    opened by ownwell 2
  • Drawer Icon doesn't change

    Drawer Icon doesn't change

    Hi,

    I have i little problem, I can't able to show the humburger icon, there is always arrow icon and the animation doesn't work. Where is the setting about humburger icon and what control the animation?

    Thanks a lot.

    Francesco.

    opened by CiccioCicc 1
  • Icon for each item in drawer

    Icon for each item in drawer

    I am needing an image right beside the text of each item in the drawer. Is there an easy way to implement this before I starting going through the trouble of doing a custom list and all that?

    opened by JmzTaylor 1
  • Getting null pointer exception

    Getting null pointer exception

    I am using getSupportActionBar() method in my ActionBarActivity and getting the following error. Is there anything I can do to make it work?. If I change the code in the library from getActionBar() to getSupportActionBar() will it solve my problem?

    E/com.ikimuhendis.ldrawer.ActionBarDrawerToggle( 1943): java.lang.NullPointerException: expected receiver of type android.app.ActionBar, but got null E/com.ikimuhendis.ldrawer.ActionBarDrawerToggle( 1943): at java.lang.reflect.Method.invokeNative(Native Method) E/com.ikimuhendis.ldrawer.ActionBarDrawerToggle( 1943): at java.lang.reflect.Method.invoke(Method.java:515) E/com.ikimuhendis.ldrawer.ActionBarDrawerToggle( 1943): at com.ikimuhendis.ldrawer.ActionBarDrawerToggle.setActionBarUpIndicator(ActionBarDrawerToggle.java:130) E/com.ikimuhendis.ldrawer.ActionBarDrawerToggle( 1943): at com.ikimuhendis.ldrawer.ActionBarDrawerToggle.syncState(ActionBarDrawerToggle.java:57) E/com.ikimuhendis.ldrawer.ActionBarDrawerToggle( 1943): at com.filemanager.android.FazoolClass.onPostCreate(FazoolClass.java:171) E/com.ikimuhendis.ldrawer.ActionBarDrawerToggle( 1943): at android.app.Instrumentation.callActivityOnPostCreate(Instrumentation.java:1150) E/com.ikimuhendis.ldrawer.ActionBarDrawerToggle( 1943): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2167) E/com.ikimuhendis.ldrawer.ActionBarDrawerToggle( 1943): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) E/com.ikimuhendis.ldrawer.ActionBarDrawerToggle( 1943): at android.app.ActivityThread.access$800(ActivityThread.java:135) E/com.ikimuhendis.ldrawer.ActionBarDrawerToggle( 1943): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) E/com.ikimuhendis.ldrawer.ActionBarDrawerToggle( 1943): at android.os.Handler.dispatchMessage(Handler.java:102) E/com.ikimuhendis.ldrawer.ActionBarDrawerToggle( 1943): at android.os.Looper.loop(Looper.java:136)

    opened by taimur97 1
  • this Library can do with Android 2.3.3 and SupportActionbar

    this Library can do with Android 2.3.3 and SupportActionbar

    I do this library with Android 2.3.3 and SupportActionbar v7 . it show only <-- in homebutton not show = and animation like the sample. I soll make.

    opened by longvd89 1
  • Menü Animasyonu

    Menü Animasyonu

    Merhabalar,

    Android'in native navigation drawer'ını kullanıyorum. DrawerArrowDrawable.java'yı projeme ekledim. "You can use like using normal drawer, instead of using" kısmını uyguladım. mDrawerToggle.setAnimateEnabled(true); olarak ekledim. Animasyon çalışmıyor? Eksik bir şey mi yapıyorum?

    opened by muhammedcobanoglu 1
  • Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 14 declared in library [com.android.support:design:26.0.0-alpha1] C:\Users\klightoftheworld\.android\build-cache\076d9e56e1088709047f81c5062558fc68ba759f\output\AndroidManifest.xml 	Suggestion: use tools:overrideLibrary=

    Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 14 declared in library [com.android.support:design:26.0.0-alpha1] C:\Users\klightoftheworld\.android\build-cache\076d9e56e1088709047f81c5062558fc68ba759f\output\AndroidManifest.xml Suggestion: use tools:overrideLibrary="android.support.design" to force usage

    hi house please i need help on this issue in my android build.

    Error:Execution failed for task ':app:processDebugManifest'.

    Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 14 declared in library [com.android.support:design:26.0.0-alpha1] C:\Users\klightoftheworld.android\build-cache\076d9e56e1088709047f81c5062558fc68ba759f\output\AndroidManifest.xml Suggestion: use tools:overrideLibrary="android.support.design" to force usage

    opened by esteemmnSoft 1
  • Error:Execution failed for task ':processDebugManifest'. > No record for key [data]

    Error:Execution failed for task ':processDebugManifest'. > No record for key [data]

    ----- MANIFEST----

    <uses-permission android:name="android.permission.INTERNET"/>
    
    <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>
    
    <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>
    
    <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
    
    <uses-permission android:name="android.permission.USE_CREDENTIALS"/>
    
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    
    <uses-sdk  android:targetSdkVersion="25"  android:minSdkVersion="23"
        tools:overrideLibrary="com.google.firebase.auth.api,com.google.android.gms.games" />
    
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
    
    <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
    
    <uses-permission android:name="android.permission.VIBRATE"/>
    
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    
    <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"/>
    
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    
    <!-- REQUIRED for wifi wake functionality -->
    
    
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
    
    <uses-permission android:name="android.permission.VIBRATE"/>
    
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    
    <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"/>
    
    <uses-permission android:name="android.permission.CALL_PHONE"/>
    
    <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
    
    <!-- Required to show current location -->
    
    
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    
    <!-- Required OpenGL ES 2.0. for Maps V2 -->
    
    
    <uses-feature android:required="true" android:glEsVersion="0x00020000"/>
    
    <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="false" android:anyDensity="true"/>
    
    
    <application android:name="com.saas.classes.ApplicationInit" android:theme="@style/AppTheme" android:label="@string/app_name" android:icon="@drawable/ic_launcher" android:debuggable="true">
    
        <uses-library android:name="com.google.android.maps" android:required="true"> </uses-library>
    
        <!-- Start the Service if applicable on boot -->
    
    
    
        -<receiver android:name=".services.ServiceStarter">
    
    
        -<intent-filter>
    
        <action android:name="android.intent.action.BOOT_COMPLETED"/>
    
    </intent-filter>
    
    </receiver>
    
        <receiver android:name=".classes.OnAlarmReceiver"> </receiver>
    
        <receiver android:name=".classes.UAPushNotification"> </receiver>
    
        <service android:name=".classes.AlarmService"> </service>
    
    
        <activity android:name=".classes.SplashActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait">
    
    
            <intent-filter>
    
                <action android:name="android.intent.action.MAIN"/>
    
                <category android:name="android.intent.category.LAUNCHER"/>
    
            </intent-filter>
    
        </activity>
    
        <activity android:name=".classes.HomeActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
        <activity android:name=".utilities.ActivityCustom" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
        <activity android:name=".classes.DialogActivity" android:theme="@style/AlertDialogCustom" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
        <activity android:name=".classes.DialogDateActivity" android:theme="@style/AlertDialogCustom" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
        <activity android:name=".classes.DialogHourActivity" android:theme="@style/AlertDialogCustom" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
        <activity android:name=".classes.EmergencyActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
    
        <activity android:name=".classes.LocationFilterActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
        <activity android:name=".classes.SearchProductsActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
        <activity android:name=".classes.SearchProductsDispActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
        <activity android:name="com.saas.classes.PopupQuantityActivity" android:theme="@style/AlertPopup" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
        <activity android:name="com.saas.classes.PopupOrderActivity" android:theme="@style/AlertPopup" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
        <activity android:name="com.saas.classes.SettingsActivity" android:theme="@style/AlertSettings" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
        <activity android:name="com.saas.classes.ShareActivity" android:theme="@style/AlertSettings" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
    
        <activity android:name="com.saas.classes.ProfileActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait">
    
            <intent-filter>
    
                <action android:name="android.intent.action.VIEW"/>
    
                <category android:name="android.intent.category.DEFAULT"/>
    
                <category android:name="android.intent.category.BROWSABLE"/>
    
            </intent-filter>
    
            <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/app_id"/>
    
        </activity>
    
        <activity android:name="com.saas.classes.ProfileViewActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
    
        <activity android:name="com.saas.classes.PopUp" android:theme="@style/AlertPopup" android:screenOrientation="portrait"> </activity>
    
        <activity android:name="com.saas.classes.PopUpSmall" android:theme="@style/AlertPopup" android:screenOrientation="portrait"> </activity>
    
        <activity android:name=".classes.FavoritesActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
    
        <activity android:name=".classes.PharmacyActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
    
        <activity android:name=".classes.PharmacyDetailActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
    
        <activity android:name=".classes.PharmacyDetailMapActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
    
        <activity android:name=".classes.RecordatorioAddActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
    
        <activity android:name=".classes.RecordatorioCalendarActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
    
        <activity android:name=".classes.TratamientosMainActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
        <activity android:name=".classes.TratamientoAddActivity" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" android:screenOrientation="portrait"> </activity>
    
        <activity android:name=".classes.TratamientoMedicamentoAddActivity" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" android:screenOrientation="portrait"> </activity>
    
        <activity android:name=".classes.TratamientoMedicamentoDetailActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
        <activity android:name=".classes.OfertasMainActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
        <activity android:name=".classes.OfertasCatalogActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
        <activity android:name=".classes.SearchPharmacyActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
    
        <activity android:name=".classes.PharmacyJornadaDetailActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
    
        <activity android:name=".classes.JornadasCalendarActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
    
        <activity android:name=".classes.WebLoaderActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
        <activity android:name=".services.Notifications" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait"> </activity>
    
        <activity android:name=".classes.TutorialHomeActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
    
        <activity android:name=".classes.TutorialMenuActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
    
        <activity android:name=".classes.TutorialJornadasActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
    
        <activity android:name=".classes.TutorialBusquedaActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
    
        <activity android:name=".classes.TutorialTratamientosAActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
    
        <activity android:name=".classes.TutorialTratamientosBActivity" android:windowSoftInputMode="stateAlwaysHidden" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
    
        <!-- <activity android:name="com.saas.PushPreferencesActivity" /> <activity android:name="com.saas.LocationActivity" /> -->
    
    
        <!-- android:value="AIzaSyCIPLuLnAlku0BO4W7aJkUF1hZLm6WhCAQ" android:value="AIzaSyD62Uh2uL8QCFjpzw8jhj0Yd97uFyOjcyo"-->
    
    
        <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyCRTYFiFvO7_My8v50_T8sShF1s5gyEmbU"/>
    
        <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/>
    
    </application>
    

    --------BUILD GRADLE------- buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:2.3.3'

    }
    

    } apply plugin: 'android'

    dependencies { compile files('../../../../SAAS/libs/jackson-annotations-2.1.0.jar') compile files('../../../../SAAS/libs/jackson-core-2.1.0.jar') compile files('../../../../SAAS/libs/jackson-databind-2.1.0.jar') compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.google.android.gms:play-services:11.0.0' }

    android { compileSdkVersion 24 buildToolsVersion '25.0.3' defaultConfig { minSdkVersion 23 targetSdkVersion 25 } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] }

        instrumentTest.setRoot('tests')
    }
    productFlavors {
    }
    

    }

    opened by ROM3Z 0
  • No Hamburger

    No Hamburger

    I recently converted my activities to AppCompatActivty,

    And therefor converted to getSupportActionBar(). Since then my drawer never shows the hamburger, It only has the back button? All other functionality is still good.

    here is my activity:

      @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_dashboard);
    
        //---------------------NAV DRAWER STARTS
        ActionBar ab = getSupportActionBar();
        ab.setDisplayHomeAsUpEnabled(true);
        ab.setHomeButtonEnabled(true);
        ab.setTitle("Dashbaord");
        mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);   
    
        DrawerArrowDrawable drawerArrow = new DrawerArrowDrawable(this) {
            @Override
            public boolean isLayoutRtl() {
                return false;
            }
    

    What am I missing? };

        mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout, drawerArrow, R.string.drawer_open, R.string.drawer_close) {
            public void onDrawerClosed(View view) {
                super.onDrawerClosed(view);
                invalidateOptionsMenu();
            }
    
            public void onDrawerOpened(View drawerView) {
                super.onDrawerOpened(drawerView);
                invalidateOptionsMenu();
            }
        };
        mDrawerLayout.setDrawerListener(mDrawerToggle);
        mDrawerToggle.syncState();
        //-------------------------------DRAWER ENDS
    

    }

    opened by Zapnologica 0
Owner
Hasan Keklik
Hasan Keklik
The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.

MaterialDrawer ... the flexible, easy to use, all in one drawer library for your Android project. What's included ?? • Setup ??️ • Migration Guide ??

Mike Penz 11.6k Dec 27, 2022
Navigation Drawer Activity with material design style and simplified methods

MaterialNavigationDrawer Navigation Drawer Activity with material design style and simplified methods       It requires 10+ API and android support v7

Fabio Biola 1.6k Jan 5, 2023
Custom drawer implementation for Material design apps.

material-drawer Custom drawer implementation for Material design apps. Demo A demo app is available on Google Play: Screenshots Fixed items Select pro

Jan Heinrich Reimer 600 Nov 18, 2022
A Gmail-like Material Drawer implementation

AdvancedMaterialDrawer A Gmail-like Material Drawer implementation Based on neokree's MaterialDrawer library, but they are not the same. I have made m

Marc Schäfers 200 Oct 27, 2022
Default colors and dimens per Material Design guidelines and Android Design guidelines inside one library.

Material Design Dimens Default colors and dimens per Material Design guidelines and Android Design guidelines inside one library. Dimens Pattern: R.di

Dmitry Malkovich 1.4k Jan 3, 2023
Animations for Android L drawer, back, dismiss and check icons

Material Menu Morphing Android menu, back, dismiss and check buttons Have full control of the animation: Including in your project compile 'com.balysv

Balys Valentukevicius 2.5k Jan 3, 2023
A library to bring fully animated Material Design components to pre-Lolipop Android.

Material MaterialLibrary is an Open Source Android library that back-port Material Design components to pre-Lolipop Android. MaterialLibrary's origina

Rey Pham 6k Dec 21, 2022
Floating Action Button for Android based on Material Design specification

FloatingActionButton Yet another library for drawing Material Design promoted actions. Features Support for normal 56dp and mini 40dp buttons. Customi

Zendesk 6.4k Dec 26, 2022
Implementation of Ripple effect from Material Design for Android API 9+

RippleEffect ExpandableLayout provides an easy way to create a view called header with an expandable view. Both view are external layout to allow a ma

Robin Chutaux 4.9k Dec 30, 2022
Material Design implementation for Android 4.0+. Shadows, ripples, vectors, fonts, animations, widgets, rounded corners and more.

Carbon Material Design implementation for Android 4.0 and newer. This is not the exact copy of the Lollipop's API and features. It's a custom implemen

null 3k Jan 9, 2023
[] Android Library that implements Snackbars from Google's Material Design documentation.

DEPRECATED This lib is deprecated in favor of Google's Design Support Library which includes a Snackbar and is no longer being developed. Thanks for a

null 1.5k Dec 16, 2022
Android Sample Project with Material Design and Toolbar.

AndroidMaterialDesignToolbar -- PROJECT IS NOT SUPPORTED Android Sample Project with Material Design and Toolbar. Project use Appcompat library for ma

kemal selim tekinarslan 713 Nov 11, 2022
Floating Action Button for Android based on Material Design specification

FloatingActionButton Yet another library for drawing Material Design promoted actions. Features Support for normal 56dp and mini 40dp buttons. Customi

Zendesk 6.4k Jan 3, 2023
A library support form with material design, construct same with Android UI Framework

SwingUI A slight Java Swing library support form with material design, construct same with Android UI Framework writen in Kotlin Supported: 1. Screen:

Cuong V. Nguyen 3 Jul 20, 2021
Android Material Design Components

Android-Material-Design-Components Material design is a comprehensive guide for visual, motion, and interaction design across platforms and devices. G

Velmurugan Murugesan 3 Jun 10, 2022
Modular and customizable Material Design UI components for Android

Material Components for Android Material Components for Android (MDC-Android) help developers execute Material Design. Developed by a core team of eng

Material Components 14.4k Dec 31, 2022
Easy creation and management of toggle buttons on Android from the Material Design spec.

ToggleButtonLayout Easy creation and management of toggle buttons from the Material Design spec. Read more about ToggleButtonLayout in our blog post.

Savvy 229 Jan 9, 2023
A gradle plugin that generates Material Design 3 theme for Android projects.

Same as Google's Material Theme Builder, but as a gradle plugin.

Rikka apps 41 Dec 6, 2022
Material Design icons by Google

Material design icons Material design icons is the official icon set from Google. The icons are designed under the material design guidelines. 4.0.0 U

Google 47.1k Jan 9, 2023