Edits not displaying on device only on android studioIs there a way to run Python on Android?How to save an Android Activity state using save instance state?Close/hide the Android Soft KeyboardWhy is the Android emulator so slow? How can we speed up the Android emulator?“Debug certificate expired” error in Eclipse Android pluginsIs there a unique Android device ID?What is 'Context' on Android?How do I rotate the Android emulator display?Proper use cases for Android UserManager.isUserAGoat()?Android Studio: Add jar as library?

Can an old DSLR be upgraded to match modern smartphone image quality

Does Peach's float negate shorthop knockback multipliers?

Could a guilty Boris Johnson be used to cancel Brexit?

Is there an evolutionary advantage to having two heads?

Can you use a concentration spell while using Mantle of Majesty?

How to write a vulnerable moment without it seeming cliche or mushy?

Looking for an old image of designing a cpu with plan laid out / being edited on a literal floor

How do I get a cleat that's stuck in a pedal, detached from the shoe, out?

California: "For quality assurance, this phone call is being recorded"

What if you don't bring your credit card or debit for incidentals?

Creating Fictional Slavic Place Names

Cryptography and patents

Can The Malloreon be read without first reading The Belgariad?

Pros and cons of writing a book review?

What caused the tendency for conservatives to not support climate change regulations?

Is having a hidden directory under /etc safe?

How can a single Member of the House block a Congressional bill?

Are there mythical creatures in the world of Game of Thrones?

Coding Challenge Solution - Good Range

If Sweden was to magically float away, at what altitude would it be visible from the southern hemisphere?

How much current can Baofeng UV-5R provide on +V pin?

Why is there a need to modify system call tables in Linux?

Accidentally cashed a check twice

What's the most polite way to tell a manager "shut up and let me work"?



Edits not displaying on device only on android studio


Is there a way to run Python on Android?How to save an Android Activity state using save instance state?Close/hide the Android Soft KeyboardWhy is the Android emulator so slow? How can we speed up the Android emulator?“Debug certificate expired” error in Eclipse Android pluginsIs there a unique Android device ID?What is 'Context' on Android?How do I rotate the Android emulator display?Proper use cases for Android UserManager.isUserAGoat()?Android Studio: Add jar as library?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








-1















I set some buttons invisible on my android studio project, on the preview buttons disappears, when apk installed on phone i can still see buttons.



i already tried: Sync project with grandle files / sync with file sistem / Invalidate Caches Restart / Make project / Clean Project / Rebuilt Project / Disable instant run / Changeing run settings to: before launch grandle aware make / uninstalling android studio and re-installing it.



<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/fab_gif"
android:title="Gif"
android:icon="@drawable/ic_gif"
/>
<item
android:id="@+id/fab_image"
android:title="Image"
android:icon="@drawable/ic_image"
android:visible="false"
/>
<item
android:id="@+id/fab_video"
android:title="Video"
android:icon="@drawable/ic_videocam"
android:visible="false"
/>
<item
android:id="@+id/fab_quote"
android:title="Quote"
android:icon="@drawable/ic_quote"
/>
</menu>


So i have tried everything, and when i install my app on the android device is not showing edits that i have done in android studio. As you can see in the code i have a few buttons to hide so i just set android:visible="false" i also tried android:visibility="gone" but those buttons are still there in the app. What could i do to fix this problem ?










share|improve this question
























  • What would you like to achieve? Can you just remove those "unnecessary" elements from above xml file?

    – Boken
    Mar 26 at 17:10











  • @Aryan have you tried any answer?

    – Skizo-ozᴉʞS
    Mar 29 at 8:56

















-1















I set some buttons invisible on my android studio project, on the preview buttons disappears, when apk installed on phone i can still see buttons.



i already tried: Sync project with grandle files / sync with file sistem / Invalidate Caches Restart / Make project / Clean Project / Rebuilt Project / Disable instant run / Changeing run settings to: before launch grandle aware make / uninstalling android studio and re-installing it.



<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/fab_gif"
android:title="Gif"
android:icon="@drawable/ic_gif"
/>
<item
android:id="@+id/fab_image"
android:title="Image"
android:icon="@drawable/ic_image"
android:visible="false"
/>
<item
android:id="@+id/fab_video"
android:title="Video"
android:icon="@drawable/ic_videocam"
android:visible="false"
/>
<item
android:id="@+id/fab_quote"
android:title="Quote"
android:icon="@drawable/ic_quote"
/>
</menu>


So i have tried everything, and when i install my app on the android device is not showing edits that i have done in android studio. As you can see in the code i have a few buttons to hide so i just set android:visible="false" i also tried android:visibility="gone" but those buttons are still there in the app. What could i do to fix this problem ?










share|improve this question
























  • What would you like to achieve? Can you just remove those "unnecessary" elements from above xml file?

    – Boken
    Mar 26 at 17:10











  • @Aryan have you tried any answer?

    – Skizo-ozᴉʞS
    Mar 29 at 8:56













-1












-1








-1








I set some buttons invisible on my android studio project, on the preview buttons disappears, when apk installed on phone i can still see buttons.



i already tried: Sync project with grandle files / sync with file sistem / Invalidate Caches Restart / Make project / Clean Project / Rebuilt Project / Disable instant run / Changeing run settings to: before launch grandle aware make / uninstalling android studio and re-installing it.



<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/fab_gif"
android:title="Gif"
android:icon="@drawable/ic_gif"
/>
<item
android:id="@+id/fab_image"
android:title="Image"
android:icon="@drawable/ic_image"
android:visible="false"
/>
<item
android:id="@+id/fab_video"
android:title="Video"
android:icon="@drawable/ic_videocam"
android:visible="false"
/>
<item
android:id="@+id/fab_quote"
android:title="Quote"
android:icon="@drawable/ic_quote"
/>
</menu>


So i have tried everything, and when i install my app on the android device is not showing edits that i have done in android studio. As you can see in the code i have a few buttons to hide so i just set android:visible="false" i also tried android:visibility="gone" but those buttons are still there in the app. What could i do to fix this problem ?










share|improve this question
















I set some buttons invisible on my android studio project, on the preview buttons disappears, when apk installed on phone i can still see buttons.



i already tried: Sync project with grandle files / sync with file sistem / Invalidate Caches Restart / Make project / Clean Project / Rebuilt Project / Disable instant run / Changeing run settings to: before launch grandle aware make / uninstalling android studio and re-installing it.



<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/fab_gif"
android:title="Gif"
android:icon="@drawable/ic_gif"
/>
<item
android:id="@+id/fab_image"
android:title="Image"
android:icon="@drawable/ic_image"
android:visible="false"
/>
<item
android:id="@+id/fab_video"
android:title="Video"
android:icon="@drawable/ic_videocam"
android:visible="false"
/>
<item
android:id="@+id/fab_quote"
android:title="Quote"
android:icon="@drawable/ic_quote"
/>
</menu>


So i have tried everything, and when i install my app on the android device is not showing edits that i have done in android studio. As you can see in the code i have a few buttons to hide so i just set android:visible="false" i also tried android:visibility="gone" but those buttons are still there in the app. What could i do to fix this problem ?







android






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 26 at 17:51









Boken

1,5781119




1,5781119










asked Mar 24 at 10:45









AryanAryan

66




66












  • What would you like to achieve? Can you just remove those "unnecessary" elements from above xml file?

    – Boken
    Mar 26 at 17:10











  • @Aryan have you tried any answer?

    – Skizo-ozᴉʞS
    Mar 29 at 8:56

















  • What would you like to achieve? Can you just remove those "unnecessary" elements from above xml file?

    – Boken
    Mar 26 at 17:10











  • @Aryan have you tried any answer?

    – Skizo-ozᴉʞS
    Mar 29 at 8:56
















What would you like to achieve? Can you just remove those "unnecessary" elements from above xml file?

– Boken
Mar 26 at 17:10





What would you like to achieve? Can you just remove those "unnecessary" elements from above xml file?

– Boken
Mar 26 at 17:10













@Aryan have you tried any answer?

– Skizo-ozᴉʞS
Mar 29 at 8:56





@Aryan have you tried any answer?

– Skizo-ozᴉʞS
Mar 29 at 8:56












2 Answers
2






active

oldest

votes


















0














Try and manage the visibility in your activity.



If you are using Kotlin use, i.e:



fab_video.visibility = View.INVISIBLE 


If you are using Java.



View fabVideo = findViewById(R.id.fab_video);
fabVideo.setVisibility(View.GONE);





share|improve this answer






























    0














    Perhaps you want to do it programmatically.



    @Override
    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater)

    inflater.inflate(R.menu.menu, menu);

    MenuItem item = menu.findItem(R.id.fab_image);
    item.setVisible(false);
    MenuItem item = menu.findItem(R.id.fab_video);
    item.setVisible(true);
    super.onCreateOptionsMenu(menu, inflater);



    This is going to hide your icons.






    share|improve this answer























      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%2f55322971%2fedits-not-displaying-on-device-only-on-android-studio%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Try and manage the visibility in your activity.



      If you are using Kotlin use, i.e:



      fab_video.visibility = View.INVISIBLE 


      If you are using Java.



      View fabVideo = findViewById(R.id.fab_video);
      fabVideo.setVisibility(View.GONE);





      share|improve this answer



























        0














        Try and manage the visibility in your activity.



        If you are using Kotlin use, i.e:



        fab_video.visibility = View.INVISIBLE 


        If you are using Java.



        View fabVideo = findViewById(R.id.fab_video);
        fabVideo.setVisibility(View.GONE);





        share|improve this answer

























          0












          0








          0







          Try and manage the visibility in your activity.



          If you are using Kotlin use, i.e:



          fab_video.visibility = View.INVISIBLE 


          If you are using Java.



          View fabVideo = findViewById(R.id.fab_video);
          fabVideo.setVisibility(View.GONE);





          share|improve this answer













          Try and manage the visibility in your activity.



          If you are using Kotlin use, i.e:



          fab_video.visibility = View.INVISIBLE 


          If you are using Java.



          View fabVideo = findViewById(R.id.fab_video);
          fabVideo.setVisibility(View.GONE);






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 26 at 17:57









          Ryan Godlonton-ShawRyan Godlonton-Shaw

          5051517




          5051517























              0














              Perhaps you want to do it programmatically.



              @Override
              public void onCreateOptionsMenu(Menu menu, MenuInflater inflater)

              inflater.inflate(R.menu.menu, menu);

              MenuItem item = menu.findItem(R.id.fab_image);
              item.setVisible(false);
              MenuItem item = menu.findItem(R.id.fab_video);
              item.setVisible(true);
              super.onCreateOptionsMenu(menu, inflater);



              This is going to hide your icons.






              share|improve this answer



























                0














                Perhaps you want to do it programmatically.



                @Override
                public void onCreateOptionsMenu(Menu menu, MenuInflater inflater)

                inflater.inflate(R.menu.menu, menu);

                MenuItem item = menu.findItem(R.id.fab_image);
                item.setVisible(false);
                MenuItem item = menu.findItem(R.id.fab_video);
                item.setVisible(true);
                super.onCreateOptionsMenu(menu, inflater);



                This is going to hide your icons.






                share|improve this answer

























                  0












                  0








                  0







                  Perhaps you want to do it programmatically.



                  @Override
                  public void onCreateOptionsMenu(Menu menu, MenuInflater inflater)

                  inflater.inflate(R.menu.menu, menu);

                  MenuItem item = menu.findItem(R.id.fab_image);
                  item.setVisible(false);
                  MenuItem item = menu.findItem(R.id.fab_video);
                  item.setVisible(true);
                  super.onCreateOptionsMenu(menu, inflater);



                  This is going to hide your icons.






                  share|improve this answer













                  Perhaps you want to do it programmatically.



                  @Override
                  public void onCreateOptionsMenu(Menu menu, MenuInflater inflater)

                  inflater.inflate(R.menu.menu, menu);

                  MenuItem item = menu.findItem(R.id.fab_image);
                  item.setVisible(false);
                  MenuItem item = menu.findItem(R.id.fab_video);
                  item.setVisible(true);
                  super.onCreateOptionsMenu(menu, inflater);



                  This is going to hide your icons.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 26 at 18:00









                  Skizo-ozᴉʞSSkizo-ozᴉʞS

                  10.4k1347109




                  10.4k1347109



























                      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%2f55322971%2fedits-not-displaying-on-device-only-on-android-studio%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

                      Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                      SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                      은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현