hamburger Menu not responding when clicking The Next CEO of Stack OverflowHow to prevent a dialog from closing when a button is clickedHow to start new activity on button clickAndroid GridView 3 x 6 Image CroppingAndroid Options Menu in FragmentHow to determine when Fragment becomes visible in ViewPagerWhy fragments, and when to use fragments instead of activities?Dilemma: when to use Fragments vs Activities:Error when starting a new activity Androidhamburger is not working when i click. i have to drag for menuOnClickListener not working with fragments

WOW air has ceased operation, can I get my tickets refunded?

Can we say or write : "No, it'sn't"?

Anatomically Correct Strange Women In Ponds Distributing Swords

In excess I'm lethal

How did the Bene Gesserit know how to make a Kwisatz Haderach?

Has this building technique been used in an official set?

Unreliable Magic - Is it worth it?

Contours of a clandestine nature

Won the lottery - how do I keep the money?

Why don't programming languages automatically manage the synchronous/asynchronous problem?

Sending manuscript to multiple publishers

How did people program for Consoles with multiple CPUs?

Why didn't Khan get resurrected in the Genesis Explosion?

Indicator light circuit

Why do airplanes bank sharply to the right after air-to-air refueling?

Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis

Why does the UK parliament need a vote on the political declaration?

Bold, vivid family

Can I equip Skullclamp on a creature I am sacrificing?

How to invert MapIndexed on a ragged structure? How to construct a tree from rules?

Why do remote companies require working in the US?

How to Reset Passwords on Multiple Websites Easily?

How powerful is the invisibility granted by the Gloom Stalker ranger's Umbral Sight feature?

Are there any limitations on attacking while grappling?



hamburger Menu not responding when clicking



The Next CEO of Stack OverflowHow to prevent a dialog from closing when a button is clickedHow to start new activity on button clickAndroid GridView 3 x 6 Image CroppingAndroid Options Menu in FragmentHow to determine when Fragment becomes visible in ViewPagerWhy fragments, and when to use fragments instead of activities?Dilemma: when to use Fragments vs Activities:Error when starting a new activity Androidhamburger is not working when i click. i have to drag for menuOnClickListener not working with fragments










0















hello i have a problem my hamburger icon not showing the drawer when clicking on it
i don't know why i have the same code on other activities and it's working just fine



this is my layout



 <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
>



<RelativeLyout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<include
layout="@layout/app_bar"
android:layout_width="match_parent"
android:layout_height="80dp" />


and this is whatapp_bar layout contains



<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:elevation="0dp"
android:theme="@style/AppTheme.AppBarOverlay"
tools:targetApi="lollipop">

<com.vpapps.utils.StatusBarView
android:id="@+id/statusBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorPrimary"/>

<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/colorPrimaryDark"
app:popupTheme="@style/AppTheme.PopupOverlay"
android:elevation="0dp"
tools:targetApi="lollipop" />

</android.support.design.widget.AppBarLayout>


and this is my java code MainActivity.java



 setContentView(R.layout.activity_main_whatsap_status_saver);

drawer = findViewById(R.id.drawer_layout);


toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);

ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
toggle.setToolbarNavigationClickListener(new View.OnClickListener()
@Override
public void onClick(View view)
Toast.makeText(MainActivity.this, "clicked ",Toast.LENGTH_LONG).show();
drawer.openDrawer(GravityCompat.START);

);
toggle.setHomeAsUpIndicator(R.mipmap.nav);
drawer.addDrawerListener(toggle);
toggle.syncState();

toggle.setDrawerIndicatorEnabled(false);









share|improve this question




























    0















    hello i have a problem my hamburger icon not showing the drawer when clicking on it
    i don't know why i have the same code on other activities and it's working just fine



    this is my layout



     <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >



    <RelativeLyout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <include
    layout="@layout/app_bar"
    android:layout_width="match_parent"
    android:layout_height="80dp" />


    and this is whatapp_bar layout contains



    <android.support.design.widget.AppBarLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:elevation="0dp"
    android:theme="@style/AppTheme.AppBarOverlay"
    tools:targetApi="lollipop">

    <com.vpapps.utils.StatusBarView
    android:id="@+id/statusBar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/colorPrimary"/>

    <android.support.v7.widget.Toolbar
    android:id="@+id/toolbar"
    android:layout_width="match_parent"
    android:layout_height="?attr/actionBarSize"
    android:background="@color/colorPrimaryDark"
    app:popupTheme="@style/AppTheme.PopupOverlay"
    android:elevation="0dp"
    tools:targetApi="lollipop" />

    </android.support.design.widget.AppBarLayout>


    and this is my java code MainActivity.java



     setContentView(R.layout.activity_main_whatsap_status_saver);

    drawer = findViewById(R.id.drawer_layout);


    toolbar = findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);

    ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
    this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
    toggle.setToolbarNavigationClickListener(new View.OnClickListener()
    @Override
    public void onClick(View view)
    Toast.makeText(MainActivity.this, "clicked ",Toast.LENGTH_LONG).show();
    drawer.openDrawer(GravityCompat.START);

    );
    toggle.setHomeAsUpIndicator(R.mipmap.nav);
    drawer.addDrawerListener(toggle);
    toggle.syncState();

    toggle.setDrawerIndicatorEnabled(false);









    share|improve this question


























      0












      0








      0


      1






      hello i have a problem my hamburger icon not showing the drawer when clicking on it
      i don't know why i have the same code on other activities and it's working just fine



      this is my layout



       <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      >



      <RelativeLyout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical">

      <include
      layout="@layout/app_bar"
      android:layout_width="match_parent"
      android:layout_height="80dp" />


      and this is whatapp_bar layout contains



      <android.support.design.widget.AppBarLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:elevation="0dp"
      android:theme="@style/AppTheme.AppBarOverlay"
      tools:targetApi="lollipop">

      <com.vpapps.utils.StatusBarView
      android:id="@+id/statusBar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@color/colorPrimary"/>

      <android.support.v7.widget.Toolbar
      android:id="@+id/toolbar"
      android:layout_width="match_parent"
      android:layout_height="?attr/actionBarSize"
      android:background="@color/colorPrimaryDark"
      app:popupTheme="@style/AppTheme.PopupOverlay"
      android:elevation="0dp"
      tools:targetApi="lollipop" />

      </android.support.design.widget.AppBarLayout>


      and this is my java code MainActivity.java



       setContentView(R.layout.activity_main_whatsap_status_saver);

      drawer = findViewById(R.id.drawer_layout);


      toolbar = findViewById(R.id.toolbar);
      setSupportActionBar(toolbar);

      ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
      this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
      toggle.setToolbarNavigationClickListener(new View.OnClickListener()
      @Override
      public void onClick(View view)
      Toast.makeText(MainActivity.this, "clicked ",Toast.LENGTH_LONG).show();
      drawer.openDrawer(GravityCompat.START);

      );
      toggle.setHomeAsUpIndicator(R.mipmap.nav);
      drawer.addDrawerListener(toggle);
      toggle.syncState();

      toggle.setDrawerIndicatorEnabled(false);









      share|improve this question
















      hello i have a problem my hamburger icon not showing the drawer when clicking on it
      i don't know why i have the same code on other activities and it's working just fine



      this is my layout



       <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      >



      <RelativeLyout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical">

      <include
      layout="@layout/app_bar"
      android:layout_width="match_parent"
      android:layout_height="80dp" />


      and this is whatapp_bar layout contains



      <android.support.design.widget.AppBarLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:elevation="0dp"
      android:theme="@style/AppTheme.AppBarOverlay"
      tools:targetApi="lollipop">

      <com.vpapps.utils.StatusBarView
      android:id="@+id/statusBar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@color/colorPrimary"/>

      <android.support.v7.widget.Toolbar
      android:id="@+id/toolbar"
      android:layout_width="match_parent"
      android:layout_height="?attr/actionBarSize"
      android:background="@color/colorPrimaryDark"
      app:popupTheme="@style/AppTheme.PopupOverlay"
      android:elevation="0dp"
      tools:targetApi="lollipop" />

      </android.support.design.widget.AppBarLayout>


      and this is my java code MainActivity.java



       setContentView(R.layout.activity_main_whatsap_status_saver);

      drawer = findViewById(R.id.drawer_layout);


      toolbar = findViewById(R.id.toolbar);
      setSupportActionBar(toolbar);

      ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
      this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
      toggle.setToolbarNavigationClickListener(new View.OnClickListener()
      @Override
      public void onClick(View view)
      Toast.makeText(MainActivity.this, "clicked ",Toast.LENGTH_LONG).show();
      drawer.openDrawer(GravityCompat.START);

      );
      toggle.setHomeAsUpIndicator(R.mipmap.nav);
      drawer.addDrawerListener(toggle);
      toggle.syncState();

      toggle.setDrawerIndicatorEnabled(false);






      android android-layout






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 7 at 15:50









      VikaS

      1




      1










      asked Mar 7 at 15:26









      headhadcodheadhadcod

      12




      12






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Android provides default hamburger icon for this operation.



          Simply remove below two lines of code



          toggle.setHomeAsUpIndicator(R.mipmap.nav);
          toggle.setDrawerIndicatorEnabled(false);





          share|improve this answer























          • this line is just for changing the icon and after removing them still same problem

            – headhadcod
            Mar 7 at 16:29











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55047338%2fhamburger-menu-not-responding-when-clicking%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Android provides default hamburger icon for this operation.



          Simply remove below two lines of code



          toggle.setHomeAsUpIndicator(R.mipmap.nav);
          toggle.setDrawerIndicatorEnabled(false);





          share|improve this answer























          • this line is just for changing the icon and after removing them still same problem

            – headhadcod
            Mar 7 at 16:29















          0














          Android provides default hamburger icon for this operation.



          Simply remove below two lines of code



          toggle.setHomeAsUpIndicator(R.mipmap.nav);
          toggle.setDrawerIndicatorEnabled(false);





          share|improve this answer























          • this line is just for changing the icon and after removing them still same problem

            – headhadcod
            Mar 7 at 16:29













          0












          0








          0







          Android provides default hamburger icon for this operation.



          Simply remove below two lines of code



          toggle.setHomeAsUpIndicator(R.mipmap.nav);
          toggle.setDrawerIndicatorEnabled(false);





          share|improve this answer













          Android provides default hamburger icon for this operation.



          Simply remove below two lines of code



          toggle.setHomeAsUpIndicator(R.mipmap.nav);
          toggle.setDrawerIndicatorEnabled(false);






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 7 at 15:55









          manjunatha poojarimanjunatha poojari

          13




          13












          • this line is just for changing the icon and after removing them still same problem

            – headhadcod
            Mar 7 at 16:29

















          • this line is just for changing the icon and after removing them still same problem

            – headhadcod
            Mar 7 at 16:29
















          this line is just for changing the icon and after removing them still same problem

          – headhadcod
          Mar 7 at 16:29





          this line is just for changing the icon and after removing them still same problem

          – headhadcod
          Mar 7 at 16:29



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55047338%2fhamburger-menu-not-responding-when-clicking%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          1928 у кіно

          Захаров Федір Захарович

          Ель Греко