Android drawer icon with material design animation

Related tags

Layout LDrawer
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
:octocat: 📃 FoldingCell is a material design expanding content cell inspired by folding paper material made by @Ramotion

FOLDING CELL [JAVA] Expanding content cell with animation inspired by folding paper card material design. We specialize in the designing and coding of

Ramotion 4.9k Dec 7, 2022
Visual back-port of the rotating drawer-to-arrow drawable from Android L

DrawerArrowDrawable A simple drawable backport of the new drawer-indicator/back-arrow rotating drawable from the upcoming Android L. License Copyright

Chris Renke 827 Nov 25, 2022
swipe display drawer with flowing & bouncing effects.

FlowingDrawer swipe right to display drawer with flowing effects. Download Include the following dependency in your build.gradle file. Gradle: rep

mxn 2.6k Jan 3, 2023
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
Material Design tap target for Android. https://sjwall.github.io/MaterialTapTargetPrompt/

Material Tap Target Prompt A Tap Target implementation in Android based on Material Design Onboarding guidelines. For more information on tap targets

Sam Wall 1.5k Dec 29, 2022
A layout to transition between two views using a Floating Action Button as shown in many Material Design concepts

⚠ This library is no longer maintained ⚠️ FABRevealLayout A layout to transition between two views using a Floating Action Button as shown in many Mat

Tomás Ruiz-López 901 Dec 9, 2022
An implementation of tap targets from the Material Design guidelines for feature discovery.

TapTargetView An implementation of tap targets from Google's Material Design guidelines on feature discovery. Min SDK: 14 JavaDoc Installation TapTar

Keepsafe 5.2k Jan 9, 2023
Material Design Search View Layout, now implemented in Google Maps, Dialer, etc

THIS PROJECT IS DEPRECATED Component is not maintained anymore. Implementation of Lollipop+ Dialer and Google Maps. DEMO Add in View Add to your layou

Sahil Dave 1.1k Dec 22, 2022
Android widgets to implement folding animation

FoldableLayout Android widgets to implement folding animation. Sample app Usage Note: minimum Android SDK version is 14. Add dependency to your build.

Alex Vasilkov 1.7k Dec 29, 2022
GoolgePlusLayout is a custom layout that plays animation on the children views while scrolling as the layout in the Google Plus (android) main page

Google Plus Layout Google Plus Layout is a custom layout that support playing animation on child view(s) in a serialize manner like the the main

Ahmed Nammari 224 Nov 25, 2022
a custom pull-to-refresh layout which contains a interesting animation

This is a project with custom pull-to-refresh layout which contains a interesting animation. And the animation is inspired by https://dribbble.com/sho

ZhangLei 1.8k Dec 27, 2022
A simple customised version of the TextInputLayout from the Android Design Support Library ⌨️

Buffer Text Input Layout (Coming to maven central soon!) This is a simple customisation of the TextInputLayout found in the Design Support Library. Wh

Buffer 988 Nov 24, 2022
Pixel perfect for design layout android

Pixelperfect Pixel perfect helps you design layouts according to the resolution of your users' device Follow the steps below to implement : dependen

null 10 Oct 23, 2022
Maetrial Design Delete Concept Implement

MaterialDeleteLayout 说明 早上逛github的时候,发现ParticleLayout这个开源项目,觉得这个创意还可以... 从说明中又点进去看IOS的效果,也从那里看到了原设计图... 原设计图是这样子的: IOS的效果是这样的: 那一刻感觉android的效果lower了好多

CJJ 355 Nov 19, 2022
Smooth version of Google Support Design AppBarLayout

smooth-app-bar-layout [Deprecated] ================ [DEPRECATED] The issue that is addressed in this library is fixed from support design 26.0.0 or ab

Henry Tao 1.8k Dec 13, 2022
Android library used to create an awesome Android UI based on a draggable element similar to the last YouTube graphic component.

Draggable Panel DEPRECATED. This project is not maintained anymore. Draggable Panel is an Android library created to build a draggable user interface

Pedro Vicente Gómez Sánchez 3k Jan 5, 2023
Bubbles for Android is an Android library to provide chat heads capabilities on your apps. With a fast way to integrate with your development.

Bubbles for Android Bubbles for Android is an Android library to provide chat heads capabilities on your apps. With a fast way to integrate with your

Txus Ballesteros 1.5k Jan 2, 2023
Android library used to create an awesome Android UI based on a draggable element similar to the last YouTube New graphic component.

Please switch to DragView, for the best support, thank you DraggablePanel Download allprojects { repositories { ... maven { url 'https://jitp

Hoàng Anh Tuấn 103 Oct 12, 2022
FixedHeaderTableLayout is a powerful Android library for displaying complex data structures and rendering tabular data composed of rows, columns and cells with scrolling and zooming features. FixedHeaderTableLayout is similar in construction and use as to Android's TableLayout

FixedHeaderTableLayout is a powerful Android library for displaying complex data structures and rendering tabular data composed of rows, columns and cells with scrolling and zooming features. FixedHeaderTableLayout is similar in construction and use as to Android's TableLayout

null 33 Dec 8, 2022