About 34,800,000 results
Open links in new tab
  1. How to create two android button using android studio

    Sep 9, 2015 · I would create buttons by doing this: Define Button in your XML File. Add Listener to your Button. Don't forget to add id attribute to your Button. i would do it this way. LAYOUT …

  2. Multiple Buttons' OnClickListener() android - Stack Overflow

    Sep 18, 2014 · Button two = (Button) findViewById(R.id.twoButton); two.setOnClickListener(this); Button three = (Button) findViewById(R.id.threeButton); three.setOnClickListener(this); Find …

  3. android - 2 buttons side by side - Stack Overflow

    Using LinearLayout, for each button: make the width match_parent, and the weight="1". The margin will provide a little space in between each button. With this, you can add as many …

  4. Add buttons to your app | Views | Android Developers

    Oct 31, 2024 · Learn how to add components in Compose. A button consists of text or an icon, or both, that communicates what action occurs when the user taps it. Note: For a better UI and …

  5. How to Generate Dynamic Multiple Buttons in Android?

    Apr 24, 2025 · In this article, we will learn to make dynamic multiple buttons in android studio. By which we can make unlimited buttons in the layout. A sample video is given below to get an …

  6. How to create customized Buttons in Android with different …

    Feb 19, 2021 · In this article, we will try to change the shape and color of Button to various designs, like: Oval Button; Rectangular Button; Cylindrical Button; Approach: Below are the …

  7. Creating Multiple Button in Android Studio - YouTube

    Apr 11, 2018 · In these video i will tell you how to create button in android studio to change activity. 1)First create two buttons in activitymain.xml,name two buttons as button and button...

  8. How to create an onClickListener for multiple buttons in Android Studio ...

    In this video, you will learn how to set up an onClickListener for multiple buttons in Android Studio. Knowing how to do this can save lots of time and code....

  9. Material Design Buttons in Android with Example

    Feb 12, 2025 · Toggle buttons group a set of actions using layout and spacing. They’re used less often than other button types. There are 2 types of Toggle Buttons in Google Material Design …

  10. I want to work with two button in Android Studio - Stack Overflow

    Nov 19, 2015 · STEP ONE - Create a XML layout with the two buttons. xmlns:android="http://schemas.android.com/apk/res/android"

  11. Some results have been removed