17 August 2014

Make a Drop -down list in Android

In this tutorial we will learn to make a spinner list . What are we going to do ? -> We will make a drop down menu with two options Male and Female to select your gender .Then we will display the same in a TextView . What we need ? A layout (activity_main.xml)  A java class (MainActivity.java) A Spinner A TextView Step 1 : Design the layout (activity_main.xml) found in res-> layout with a Spinner and an empty...

Published By:
Yatin Kode
on 17.8.14

2 August 2014

Making a TAB LAYOUT in Android (Part - 2)

Continued from the previous post We continue from the previous post . We had previously made the layouts and the Activity for the contents we will display in the Tabs one by one . Now we will merge these Activities in the Tabs . Step 10 : We write the code shown below in the class MainActivity.java found in the src directory of your project . MainActivity.java package com.mia.tablayout; import android.app.TabActivity; import...

Published By:
Yatin Kode
on 2.8.14

29 July 2014

Making a TAB LAYOUT in Android (Part - 1)

I'll teach you guys to form a Tab layout in just 2 sessions . Just carry on with me . What we need ? An xml layout (activity_main.xml) A class file for the above layout (MainActivity.java) A drawable file for styling the Tab_layout (bg_tabwidget.xml) A drawable for styling the skin of a single tab (bg_tab.xml) Two xml layout for pages displayed after tabs are clicked . (tab1.xml,tab2.xml) and their respective class files...

Published By:
Yatin Kode
on 29.7.14

21 July 2014

Make a Gallery of images using ImageSwitcher

We are going to make an interesting GUI component in Android . You people have become bored of ImageView and ImageButtons, their boring looks and all .Lets try a new concept to display images . What do we need ? XML layout (activity_main.xml) Gallery ImageSwitcher A java Class (MainActivity.java) Attributes file (attrs.xml)  Any number of images of your choice (I choose 3) What are we going to do ? -> We will...

Published By:
Yatin Kode
on 21.7.14

18 July 2014

Giving a link of a website in your Application

Here we will learn how to visit a website from your android application . What do you need ? A Layout A TextView A java file Name of the website you desire to link to What are we going to do ? -> We will make a TextView with the name of the website which will be linked to the website through the browser . Step 1 : Add a TextView (or two) with the name of your Website Or a catchy link tag. (activity_main.xml) in res->layout...

Published By:
Yatin Kode
on 18.7.14

Pages (16)Prev 910111213 Next