Android floating action button tutorial

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 26

  • @shivaprasadbk2027
    @shivaprasadbk2027 5 лет назад

    awesomely explained.. thanks!

  • @karanthakkar04
    @karanthakkar04 7 лет назад

    Nice tutorial.

  • @andreasgratzer1219
    @andreasgratzer1219 8 лет назад

    nice Video

  • @DionTony
    @DionTony Год назад

    When i include or drag and drop) Floating Button in the frame ..Frame itself getting disappered and showing "Compilation error " in the issue panel.
    Please reply

  • @pulasthinarada6381
    @pulasthinarada6381 3 года назад

    Thank You Sir.

  • @BigUlises97
    @BigUlises97 7 лет назад

    Nice video, thanks a lot!

  • @andreasgratzer1219
    @andreasgratzer1219 8 лет назад

    Hey can you make a tutorial how I can get to RUclips with this butten an get the link from an selectet viedeo in ah text fiel. Thx.

    • @CodingDemos
      @CodingDemos  8 лет назад +1

      Hey Andreas, here is how to do it:
      - Declare a String variable and set it's value to any youtube video id like this:
      String video_id = "vWq0FLMj0_I";
      You can find the youtube video id from the video URL which is located after this (?v=), for example the video URL for this tutorial is (ruclips.net/video/vWq0FLMj0_I/видео.html) and the video id is (vWq0FLMj0_I)
      - Call setOnClickListener for the floating action button
      - Inside the onClick method you place the following code:
      Intent mIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube:" + video_id));
      Using this intent will allow you to open the video with the youtube app instantly without seeing the chooser dialog box asking you whether you want to open the video through browser or youtube app (Make sure RUclips app is installed)
      - If you prefer to see the intent chooser dialog and be able to choose the app that you want to open the video, then you can use the following code:
      Intent mIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("www.youtube.com/watch?v=" + video_id));
      and don't forget to call startActivity(mIntent);
      I hope that helps :)

    • @andreasgratzer1219
      @andreasgratzer1219 8 лет назад +1

      Coding Demos Yes you help me very much thank you for your fast support.😉

  • @andreasgratzer1219
    @andreasgratzer1219 8 лет назад +1

    And how can I get the link from an choosen video in an fext field?

  • @yoavtamir7707
    @yoavtamir7707 7 лет назад

    thanks alot bro!!

  • @dhruvmakwana3830
    @dhruvmakwana3830 5 лет назад

    floating button make in new version android studio please

  • @andreasgratzer1219
    @andreasgratzer1219 8 лет назад

    Can you make ah video how I can make a RUclips mp3 and mp4 concerter with an Butten and a Spinner!

  • @abdallaluqman7373
    @abdallaluqman7373 6 лет назад +1

    how can i add link to the floating action button

    • @CodingDemos
      @CodingDemos  6 лет назад

      Hi, by link you mean you want to open another page once the button is clicked?

    • @abdallaluqman7373
      @abdallaluqman7373 6 лет назад

      yes and thanks for the replay

    • @abdallaluqman7373
      @abdallaluqman7373 6 лет назад +1

      like //www.US.com

    • @CodingDemos
      @CodingDemos  6 лет назад +2

      Inside the button onClick method you add the following code:
      Intent i = new Intent(Intent.ACTION_VIEW);
      i.setData(Uri.parse("www.us.com"));
      startActivity(i);

  • @sarthakgupta2528
    @sarthakgupta2528 7 лет назад

    how to add image to drawable..?

    • @CodingDemos
      @CodingDemos  7 лет назад +2

      Once you downloaded the image from google site it will be in a zip folder which you will need to unzip it, then you locate your project inside your computer and open the folder -> Open app folder -> Open src folder -> Open main folder -> Open res folder -> then past those files (drawable-hdpi, drawable-mdpi, drawable-xhdpi, drawable-xxhdpi) that you found in the downloaded zip.