• How to create transparency without using image in Android?

    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 […]

     
  • How to draw Arcs in Android using canvas?

    This is a simple example showing how to draw Arcs in android, You can use this to create piecharts or someother similar thing you want. Here we have 3 classes. 1. GraphicsActivity.java 2. MainActivity.java 3. PictureLayout.java GraphicsActivity.java PictureLayout.java MainActivity.java Download […]

     
  • How to create a widget in android?

    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 […]

     
  • How to show a sliding window from below in Android?

    Hello everyone, I have already showed you how to use a SlidingViewer to create a slidingWindow. Today I will show another way to create such a window with the help of animation. Please check one of my previous posts to […]

     
  • How to create Gradiant Buttons in android?

    You can create any type of views in android and you can provide any color you want as background. It can be a single color or any number of colors as you wish. Here is a simple example. First create […]

     
  • Applying a shape to xml in android

    By adding a custom shape we can make the layout more attractive. For this we have to create a xml file and specify this in the main layout xml file First make a xml inside the drawable folder. Then in […]

     
  • Draw primitive shapes such as rectangle, circle etc in ANDROID, A simple example.

    The following example shows how to draw a rectangle using the Paint Class in ANDROID. Just copy and paste the following code to your file and you are done.

     
 

Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.