Posts

Showing posts from March, 2014

Create Animation Of Sprites in Android

Image
Hello guys, how are you today? Its Super Sunday, while you guys are enjoying i am busy writing this blog. Never mind, lets get started. In this blog i will show you how to create animation of sprites in android. Basically what we are going to do is to display the sprites one by one quickly so that it looks like as if it is an animation. Download http://www.2shared.com/file/9aHDwyXe/Blog4.html 1) First create an Android Application Project in Eclipse.Lets name it "Blog4" . 2) Now go to "res/layout/activity_main.xml" and create an image view there, just like i did. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:paddingBottom="@dimen/activity_vertical_margin"     android:paddingLeft="@dimen/activity_horizontal_margin"     android...

Websites as the object in Swipe Screen in Android

Image
Hello guys, Today we are going to see how to load a bunch of websites as the object in Swipe Screen in Android. So, lets get started.. 1) First of all, create an Android Application Project and name it anything you like. For me its "Blog3" . 2) Then go to "res/layout/activity_main.xml" and add the below code. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:paddingBottom="@dimen/activity_vertical_margin"     android:paddingLeft="@dimen/activity_horizontal_margin"     android:paddingRight="@dimen/activity_horizontal_margin"     android:paddingTop="@dimen/activity_vertical_margin"     tools:context=".MainActivity" >     <Button         android:la...

Splash Screen with Sound inAndroid

Image
Hello guys, got a good response from my first video which encouraged me to write my second blog. In this blog i will show how to create a splash screen in android which also produces a sound on start up. So, lets get started. Follow the steps correctly- 1) Create an Android Application Project. 2) Take an image file and name it as "logo.jpg" and save it in the "res/drawable-mdpi". 3) Go to "res/layout/activity_main.xml" and insert this code. < RelativeLayout xmlns:android = "http://schemas.android.com/apk/res/android"     xmlns:tools = "http://schemas.android.com/tools"     android:layout_width = "match_parent"     android:layout_height = "match_parent"     android:paddingBottom = "@dimen/activity_vertical_margin"     android:paddingLeft = "@dimen/activity_horizontal_margin"     android:paddingRight = "@dimen/activity_horizontal_margin"     android:paddingTop = "@dimen/activity...

Android Layout with CheckButtons and Button at bottom

Image
Hey Guys, this is my first blog on Android. Hope, you will like it. In this blog i am going to show how to create a simple layout on Android in which lots of checkboxes are there and a button is present at the bottom.Many people have doubts in this as how to create a button at bottom of page in LinearLayout in Android.So, lets do this.. 1 ) First of all create Android Application Project in eclipse. 2) Go to res-> layout->activity_main.xml and copy paste the below code. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="#000000"     android:orientation="vertical" >         <TextView            ...