Answers for "circulard add button android studio"

C#
0

circle button android

XAML Code

<ImageButton Source="images/button1.png"	//This button is through an image
             Padding="10,10,10,10"
             WidthRequest="45"
             HeightRequest="45"								
             BackgroundColor="#FFFFFF" 		//You can use opacity too for example: #FDFFFFFF
             CornerRadius="108"				//To curve the button							
             x:Name="button1"
             Clicked="button1_Clicked">
</ImageButton>
Posted by: Guest on April-21-2021
0

android studio circular image button

// drawable xml file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="oval" >
    <gradient 
        android:startColor="#FFFF0000" 
        android:endColor="#80FF00FF"
        android:angle="270" />
</shape>

<!-------------------------------------------------->

// call in activity xml file
<ImageButton
    android:id="@+id/button"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"      
    android:background="@drawable/name_shape_drawable" // drawable shape
    />
Posted by: Guest on July-14-2021

Code answers related to "circulard add button android studio"

C# Answers by Framework

Browse Popular Code Answers by Language