Expand page?

Source: Internet
Author: User

is a page plug, vertical or horizontal can slide.

Go and decorate the page.

<?XML version= "1.0" encoding= "Utf-8"?><LinearLayoutxmlns:android= "Http://schemas.android.com/apk/res/android"Android:layout_width= "Match_parent"Android:layout_height= "Match_parent"android:orientation= "vertical" >    <ScrollViewAndroid:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:id= "@+id/scroll"Android:scrollbars= "None"        ><!--scrollbars Hide scroll bar horizontalscrollview label is landscape -            <TextViewAndroid:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:id= "@+id/content"android:textsize= "40DP"        />    </ScrollView></LinearLayout>

Plug a bit of text (like rewrite) into a string

<?XML version= "1.0" encoding= "Utf-8"?><Resources>    <stringname= "App_name">Deemo</string>    <stringname= "Hello_world">Hello world!</string>    <stringname= "Action_settings">Settings</string>    <stringname= "Content">Aurora can be called "vitality", "omnipotent Force" or "miracle", high concentration when the performance of the Aurora color "Aurora Pull", low concentration is not visible force, as long as the consumption of Aurora, there is no way to do things. For a complete life, vitality equates to its lifespan. Key in the process of life evolution of the very "key" role, to initiate relief. The person who has the ability of rewriting ability to "Rewrite" can change and strengthen his body and strength at will, but the effect cannot be reversed. Ability is also called "Superman", "Hunter", through the consumption of vitality to strengthen their skills. Hunting Department: A person who specializes in tracking, projecting, and setting traps, mainly using ranged weapons. Harvesting department: A person who specializes in melee warfare, mainly using a close-combat weapon. Pollution Department: The ability to freely manipulate organs and tissues in the body. Guardian (Guardian) ability of the organization, has a complete military system and related logistics industry, compared with the planet more attention to human beings. Magic objects manipulate the magic by consuming vitality. The more negative the character, the more powerful the magical thing can be manipulated. The Demon object makes the manipulated thing, not the whole life, when death or loss of vitality will disappear. Gaia (Gaia) causes the organization to attach more importance to the planet than to humans. The core of the "Saint", because of close to religious organizations, so the organization is relatively loose, only through human and religious forces to unite. Druids (Druid) do not belong to the Guardian or Gaia, their mission is to protect the "key" and the energy point, the Druid's Magic object so as not to consume their own vitality to manipulate the magic, but to consume the vitality from the energy point. </string></Resources>

Then the master file

 PackageCom.example.deemo;Importandroid.app.Activity;ImportAndroid.os.Bundle;ImportAndroid.widget.TextView; Public classMainactivityextendsActivity {PrivateTextView TV; @Overrideprotected voidonCreate (Bundle savedinstancestate) {Super. OnCreate (savedinstancestate);        Setcontentview (R.layout.main); TV=(TextView) Findviewbyid (r.id.content);    Tv.settext (Getresources (). getString (r.string.content)); }}

In fact, an initial initialization can be used.

Expand page?

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.