Android--helloworld

Source: Internet
Author: User

Today formally joined the laboratory to do the android, it seems to start, let me think of the same year to learn ACM, but also has been engaged, and now is a new starting point.

Not much nonsense say ~ ~ ~

Hello World

Installation:

Jdk

Sdk

Eclipse

Reference: http://www.cnblogs.com/rayee/archive/2012/01/31/2332303.html

Of course, there is a relatively simple solution: based on the Google Android SDK Simple development environment building method.

Hello World

Oh ~ ~ ~

As with C # WinForm, you can drag controls. Very convenient.

Insert a textview and a picture.

Publish it.

<RelativelayoutXmlns:tools= "Http://schemas.android.com/tools"xmlns:android= "Http://schemas.android.com/apk/res/android"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 " >    <TextViewAndroid:id= "@+id/textview2"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:text= "@string/hello_world" />    <TextViewAndroid:id= "@+id/textview1"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:layout_alignleft= "@+id/textview2"Android:layout_below= "@+id/textview2"Android:layout_margintop= "26DP"Android:text= "Treedream&apos;s Android"android:textappearance= "? Android:attr/textappearancelarge" />    <RadiogroupAndroid:id= "@+id/radiogroup1"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:layout_alignleft= "@+id/textview4"Android:layout_below= "@+id/textview4"Android:layout_margintop= "14DP" >    </Radiogroup>    <TextViewAndroid:id= "@+id/textview3"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:layout_above= "@+id/imageview1"Android:layout_alignleft= "@+id/textview1"Android:layout_marginbottom= "46DP"Android:text= "I think every line of code I write is poetry, even if they can&apos;t run."android:textappearance= "? Android:attr/textappearancesmall" />    <ImageViewAndroid:id= "@+id/imageview1"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:layout_alignparentbottom= "true"Android:layout_centerhorizontal= "true"Android:layout_marginbottom= "39DP"android:src= "@drawable/x" />    <AnalogClockAndroid:id= "@+id/analogclock1"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:layout_alignparentright= "true"Android:layout_aligntop= "@+id/textview2" /></Relativelayout>

Reference: http://www.cnblogs.com/rayee/archive/2012/01/31/2333832.html#3853831

Android--helloworld

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.