Android: How can I save a View Containing GIF and text as GifHow can I concatenate two arrays in Java?How do save an Android Activity state using save instance state?How do I center text horizontally and vertically in a TextView?How can I create an executable JAR with dependencies using Maven?How do I determine whether an array contains a particular value in Java?How can I convert a stack trace to a string?Why is the Android emulator so slow? How can we speed up the Android emulator?Can I underline text in an Android layout?Android “Only the original thread that created a view hierarchy can touch its views.”Android - noise in saved images

Is it unprofessional to ask if a job posting on GlassDoor is real?

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

Which models of the Boeing 737 are still in production?

How to find program name(s) of an installed package?

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?

Why not use SQL instead of GraphQL?

"to be prejudice towards/against someone" vs "to be prejudiced against/towards someone"

In Japanese, what’s the difference between “Tonari ni” (となりに) and “Tsugi” (つぎ)? When would you use one over the other?

strToHex ( string to its hex representation as string)

What is the word for reserving something for yourself before others do?

What's the point of deactivating Num Lock on login screens?

Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?

How does strength of boric acid solution increase in presence of salicylic acid?

How old can references or sources in a thesis be?

What are these boxed doors outside store fronts in New York?

Has the BBC provided arguments for saying Brexit being cancelled is unlikely?

Test whether all array elements are factors of a number

Why don't electron-positron collisions release infinite energy?

Is it legal for company to use my work email to pretend I still work there?

Is a tag line useful on a cover?

Modeling an IPv4 Address

Can I ask the recruiters in my resume to put the reason why I am rejected?

Why, historically, did Gödel think CH was false?

Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)



Android: How can I save a View Containing GIF and text as Gif


How can I concatenate two arrays in Java?How do save an Android Activity state using save instance state?How do I center text horizontally and vertically in a TextView?How can I create an executable JAR with dependencies using Maven?How do I determine whether an array contains a particular value in Java?How can I convert a stack trace to a string?Why is the Android emulator so slow? How can we speed up the Android emulator?Can I underline text in an Android layout?Android “Only the original thread that created a view hierarchy can touch its views.”Android - noise in saved images






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








0















I have a View in which I have An ImageView playing a gif and below that a Text View



Code is something like this.



<LinearLayout id="Photolayout">
<ImageView weight="0.8" id="gifImage">
<TextView weight="0.2" id="text">
</LinearLayout>


Now I can save Photolayout as Image



Bitmap bitmap = Bitmap.createBitmap(this.Photolayout.getWidth(), this.Photolayout.getHeight(), Bitmap.Config.ARGB_8888);
this.Photolayout.draw(new Canvas(bitmap));
File imageFile = this.getFile(this.mActivity.getCacheDir(), "image.jpg");
OutputStream os = new FileOutputStream(imageFile);
bitmap.compress(Bitmap.CompressFormat.JPEG, 90, os);
os.flush();
os.close();


This Saves PhotoLayout as Image
Now I want to save PhotoLayout as Gif image since there is a gif playing inside it










share|improve this question




























    0















    I have a View in which I have An ImageView playing a gif and below that a Text View



    Code is something like this.



    <LinearLayout id="Photolayout">
    <ImageView weight="0.8" id="gifImage">
    <TextView weight="0.2" id="text">
    </LinearLayout>


    Now I can save Photolayout as Image



    Bitmap bitmap = Bitmap.createBitmap(this.Photolayout.getWidth(), this.Photolayout.getHeight(), Bitmap.Config.ARGB_8888);
    this.Photolayout.draw(new Canvas(bitmap));
    File imageFile = this.getFile(this.mActivity.getCacheDir(), "image.jpg");
    OutputStream os = new FileOutputStream(imageFile);
    bitmap.compress(Bitmap.CompressFormat.JPEG, 90, os);
    os.flush();
    os.close();


    This Saves PhotoLayout as Image
    Now I want to save PhotoLayout as Gif image since there is a gif playing inside it










    share|improve this question
























      0












      0








      0








      I have a View in which I have An ImageView playing a gif and below that a Text View



      Code is something like this.



      <LinearLayout id="Photolayout">
      <ImageView weight="0.8" id="gifImage">
      <TextView weight="0.2" id="text">
      </LinearLayout>


      Now I can save Photolayout as Image



      Bitmap bitmap = Bitmap.createBitmap(this.Photolayout.getWidth(), this.Photolayout.getHeight(), Bitmap.Config.ARGB_8888);
      this.Photolayout.draw(new Canvas(bitmap));
      File imageFile = this.getFile(this.mActivity.getCacheDir(), "image.jpg");
      OutputStream os = new FileOutputStream(imageFile);
      bitmap.compress(Bitmap.CompressFormat.JPEG, 90, os);
      os.flush();
      os.close();


      This Saves PhotoLayout as Image
      Now I want to save PhotoLayout as Gif image since there is a gif playing inside it










      share|improve this question














      I have a View in which I have An ImageView playing a gif and below that a Text View



      Code is something like this.



      <LinearLayout id="Photolayout">
      <ImageView weight="0.8" id="gifImage">
      <TextView weight="0.2" id="text">
      </LinearLayout>


      Now I can save Photolayout as Image



      Bitmap bitmap = Bitmap.createBitmap(this.Photolayout.getWidth(), this.Photolayout.getHeight(), Bitmap.Config.ARGB_8888);
      this.Photolayout.draw(new Canvas(bitmap));
      File imageFile = this.getFile(this.mActivity.getCacheDir(), "image.jpg");
      OutputStream os = new FileOutputStream(imageFile);
      bitmap.compress(Bitmap.CompressFormat.JPEG, 90, os);
      os.flush();
      os.close();


      This Saves PhotoLayout as Image
      Now I want to save PhotoLayout as Gif image since there is a gif playing inside it







      java android gif






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 8 at 4:15









      hard coderhard coder

      1,56021534




      1,56021534






















          0






          active

          oldest

          votes












          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%2f55056637%2fandroid-how-can-i-save-a-view-containing-gif-and-text-as-gif%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          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%2f55056637%2fandroid-how-can-i-save-a-view-containing-gif-and-text-as-gif%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

          Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

          Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

          Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved