There are different ways for making an acitivity transparent. First method 1. Through XML in AndroidManifest like this. Here we are using Android’s built in theme. Method 2 Through styles create a style like this in your styles.xml and applying like this in the AndroidManifest.xml Check out this post for the complete implementation. http://www.coderzheaven.com/2011/07/20/how-to-create-a-transparent-activity-in-android/ Now we see how… Read More »
On implementing the onGestureListener you can get the events like Fling LongPress Scroll ShowPress SingleTap Its really simple, otherwise we have to calculate the distance between the touchdown and touchup event to check a fling event is happened or not.
Hi all…. Today in this post I will show you how to give a custom layout for the titleBar in ANDROID. You can place almost anything inside a title using your custom layout. Now go on and create a fresh project and copy this code into the main java file Now create a new xml file and name… Read More »
Hello all… In today’s tutorial I will show you how to add different layouts one over another in android through java code. For this we use the function addContentView() which is a variation on setContentView(View, android.view.ViewGroup.LayoutParams) to add an additional content view to the screen. Here I will create an xml with a textView and a Edittext and… Read More »
Hello everyone, Today’s example shows how to create a custom layout for your camera preview, that is if you want a custom layout while your camera is opening. This example helps you to achieve this. First create a fresh project and name it CameraCustomLayout and copy this code to CameraCustomLayout.java file. After that create an xml file named… Read More »
This is a simple example showing how to load a webpage and show a progressBar while the page is loading in android. For that you have to set a chrome client for the webview which implements “onProgressChanged” Here is the layout file. Here is the java file
This simple example makes your activity full screen by hiding the Title-Bar and gives more space for your application. ;