How To Use Image Button With Android Studio To Do Anything

Поделиться
HTML-код
  • Опубликовано: 20 авг 2024
  • How To Use Image Button With Android Studio To To Anything
    Donate me:
    Paypal: paypal.me/fine...
    Binance Pay ID: 253333352
    ==============================
    Follow us Links:
    Instagram: / fine_gap
    Facebook: / finegap
    Whatsapp: +923041100028
    ================================================
    Disclaimer
    Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for "fair use" for purposes such as criticism, comment, news reporting, teaching, scholarship, and research, Fair use is a use permitted by copyright statute that might otherwise be infringing, Non-profit, educational, or personal use tips the balance in favor of fair use.
    Some photos in the video are free-to-use photos downloaded from pixabay.com. The picture used in this video is protected by the Fair Use Law, section 107 used for commentary, criticism, news reporting, or education for transformative use.
    The video Has been made for available informational and educational purposes only, Everything in this video is based on information we learned from online resources, our own experience, and books we have read.
    #image #androidstudio #androidstudiotutorial

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

  • @noscreadur
    @noscreadur 6 месяцев назад

    Spot on, just what I needed

    • @finegap
      @finegap  6 месяцев назад

      thanks

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

    Keep making these type of small concept videos

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

      sure, don't forget to subscribe me. :)

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

    Awesome bro!! It really helped my with my project 👍

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

      Welcome and don't forget to subscribe me :)

  • @yoanmorales4492
    @yoanmorales4492 6 месяцев назад

    thanks my brother.

    • @finegap
      @finegap  6 месяцев назад

      You are welcome & don't forget to subscribe me :)

  • @manjukannan2460
    @manjukannan2460 4 месяца назад

    Thank you anna❤

    • @finegap
      @finegap  4 месяца назад

      Your are welcome & don't forget to subscribe me :)

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

    Thank you so much for this video

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

      Welcome and don't forget to subscribe me

  • @radhakantsingh8036
    @radhakantsingh8036 Месяц назад

    1:44

  • @seventeen8681
    @seventeen8681 7 месяцев назад +2

    My image have transparent bg but in the android studio it has gray bg how to make it transparent?

    • @spstudio44
      @spstudio44 26 дней назад

      android:background="?android:attr/selectableItemBackground"

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

    Thank you ❤

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

      More than welcome, & don't forget to subscribe me.

  • @BlkArabian
    @BlkArabian 10 месяцев назад

    Thanks Broo

    • @finegap
      @finegap  10 месяцев назад

      Welcome & don't forget to subscribe me :)

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

    How do you make an image button when once clicked on will redirect you to another activity page?

    • @finegap
      @finegap  Год назад +1

      You just need to call a function on that image button click and use the below code
      in CurrentActivity write your activity name
      Intent myIntent = new Intent(CurrentActivity.this, NextActivity.class);
      myIntent.putExtra("key", value); //Optional parameters if you want to put some data to another activity
      CurrentActivity.this.startActivity(myIntent);

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

      @@finegap I made it work by just following the same steps as a normal button but adding an image to it and now when i run it works and redirects to another activity page when clicked. Is this fine or does it have to be the imageButton way?

  • @user-mh6on2ni1y
    @user-mh6on2ni1y 10 месяцев назад

    my button is not coming in the center of the app. using constraint layout, i placed it at center but in app it doesn't work. do you know why? :(

    • @finegap
      @finegap  9 месяцев назад

      need to check the code

    • @user-mh6on2ni1y
      @user-mh6on2ni1y 9 месяцев назад

      @@finegap nvm, it worked! i changed my layout to frame instead since it's easier. thanks for reply anyway! :)

  • @aakashsinha8117
    @aakashsinha8117 25 дней назад

    Can we make it circular?

  • @user-rg7rp9gx3k
    @user-rg7rp9gx3k Год назад

    bro agar hum chahty hu k click krne pa button pa pic change hu jae tu o kase huga

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

      yes easily possible.

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

    sor plz ap aik button bna dy or us m click kry tu pic show ho

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

      sir plz ap NY sb ko reply dia plz MRA paper plz reply kr dy is p ik video bna dy plz plz

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

      XML
      SCSS
      Button openImageButton = findViewById(R.id.open_image_button);
      Java
      openImageButton.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View view) {
      Intent intent = new Intent();
      intent.setAction(Intent.ACTION_VIEW);
      intent.setDataAndType(Uri.parse("file:///android_asset/my_image.jpg"), "image/*");
      startActivity(intent);
      }
      });

  • @h4rd1son
    @h4rd1son Год назад +1

    Вместо картинки серый фон получился

    • @finegap
      @finegap  Год назад +1

      это не важно, но спасибо

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

    How to remove the edge of image button transparent

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

      you can remove the edge of images with an online tool remove dot bg

    • @eccentr3c.
      @eccentr3c. Год назад +4

      use android:background="@null"

    • @rohit4782
      @rohit4782 8 месяцев назад

      thanks@@eccentr3c.