good morning all,this is my post and we will learn android programming,i belive you have know android ,yes that is mobile operating sistem popular now.oke lets learn for make a simple aplication today.we will show text hello android to our device.we usually write a text hello for first learn of all programming language.
First you must make a new project on eclipse apllication and set as left image.
after that you can klik finish and wait when eclipse bulit a projext for you .after project succesfull bulid that you can open file main.xml in res -> layout .this is code we will edited for get what we want.if you has open main.xml you wil see code as above :
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
</LinearLayout>
cange code to above
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Hello Bro,learn android is easy,"
/>
</LinearLayout>
lets see what heppen,now klik right on your project and choce run as android application and you will see text wit title hello and text hello bro,learn android is easy as above ^_^.
Label:
android




Responses
0 Respones to "Hello Android"
Posting Komentar