Transparency in a background of a View in android can be achieved in two ways. 1. By providing a transparent image. 2. By providing an XML that has as shape with end, starting and middle color. This is a sample XML that creates a transparency. bg_gradiant.xml Note : By Simply providing a color doesn’t creates… Read More »
Hello everyone… Today I will show you how to create a simple widget in android? First create a new project and name it “Widget1” and name the activity “WidgetDemo1“. Actually we dont need the activity class here. You can delete it and delete the corresponding entry of it from the AndroidManifest file also. Now we… Read More »
Hello all… In my previous posts I have shown two methods to create custom progressbar in android. Check out these tutorials to find out how? 1. How to build a custom progressBar in android- Part 2? 2. Custom progressbar in android with text – part 3 Today in this post I will show you a… Read More »
Hello all…… I have posted two posts on how to customize a progressbar in android. 1. Custom Indeterminate progressBar for android? 2. How to build a custom progressBar in android- Part 2? Here is another one with update text on top of the progressbar. Here is how we start. After creating a fresh project create… Read More »
Hello all……. Today I am going to show you how to create a custom progressbar in android. Previously in another posts I have already shown how to build a custom indeterminate progressbar in android. And in this post I will show you how to customize the horizontal progressbar. OK Now we will start. First create… Read More »
In the previous post I have showed how to create gradient buttons in android using XML. This is how we do this in java code. This is another method of applying gradiant. Please leave your valuable comments.
In android with shapes we can create beautiful layouts. Lets look at an example. Create an xml named “gradient.xml” in your drawable folder and copy this code into it. Now the main layout file main.xml The main java file. Done. You can now run the application.
Beautifying our applications is one of the main features of your application’s success. In ANDROID there are many possible ways to do this. For eg. We need to have different colors for our buttons, However we can give backgrounds for buttons and all. But we can do many by using our custom xml files, like… Read More »