Elementary school arithmetic mental arithmetic practice app---No.2

Source: Internet
Author: User
Tags blank page

After yesterday's understanding, although still very ignorant, always have to touch the mouse to write the first page! This is the beginning to set the number of the volume and time of the page, the user according to the prompts to set the relevant settings!

The code is as follows:

<?xml version= "1.0" encoding= "Utf-8"?>
<linearlayout xmlns:android= "Http://schemas.android.com/apk/res/android"

Android:layout_width= "Match_parent"
android:layout_height= "Match_parent" >
android:background= "@mipmap/cat"
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= ". Calculatorsactivity ">

<tablelayout
Android:layout_width= "Fill_parent"
android:layout_height= "Fill_parent" >



<tablerow
Android:id= "@+id/tablerow2"
Android:layout_width= "Wrap_content"
android:layout_height= "Wrap_content" >

<textview
Android:id= "@+id/textview2"
Android:layout_width= "Wrap_content"
android:layout_height= "Wrap_content"
android:layout_margintop= "50DP"
Android:textsize= "25SP"
android:text= "Number of input questions"/>

<edittext
Android:id= "@+id/edittext2"
Android:textsize= "25SP"
Android:layout_width= "Wrap_content"
android:layout_height= "Wrap_content"
android:layout_margintop= "50DP"
Android:ems= "4"
android:inputtype= "Number"/>
</TableRow>

<tablerow
Android:id= "@+id/tablerow3"
Android:layout_width= "Wrap_content"
android:layout_height= "Wrap_content" >

<textview
Android:id= "@+id/textview3"
Android:layout_width= "Wrap_content"
android:layout_height= "Wrap_content"
Android:textsize= "25SP"
android:text= "Input Time"/>

<edittext
Android:id= "@+id/edittext3"
Android:layout_width= "Wrap_content"
android:layout_height= "Wrap_content"
android:ems= "1"
Android:textsize= "23SP"
android:inputtype= "Number"/>

<textview
Android:id= "@+id/textview4"
Android:layout_width= "Wrap_content"
android:layout_height= "Wrap_content"
Android:textsize= "25SP"
android:text= "min"/>

<edittext
Android:id= "@+id/edittext4"
Android:layout_width= "Wrap_content"
android:layout_height= "Wrap_content"
Android:ems= "3"
Android:textsize= "23SP"
android:inputtype= "Number"/>

<textview
Android:id= "@+id/textview5"
Android:layout_width= "Wrap_content"
android:layout_height= "Wrap_content"
Android:textsize= "25SP"
android:text= "Seconds"/>
</TableRow>


<tablerow
Android:id= "@+id/tablerow5"
Android:layout_width= "Wrap_content"
android:layout_height= "Wrap_content" >

</TableRow>

<button
Android:id= "@+id/button1"
android:layout_margintop= "50DP"
Android:textsize= "30SP"
Android:layout_width= "330DP"
android:layout_height= "60DP"
android:text= "Start"/>

</TableLayout>



</LinearLayout>


On this page to try the page jump (just to a blank page first to get the jump code familiar), but slow to jump, jump code as follows:

After a few twists and turns for the following reasons: The new activity needs to be registered, otherwise the operation will be error, as shown in. Open a Androidmanifest.xml file, add <activity android:name= ". Mianactivity "></activity> code, simple registration is OK. Be sure to register, otherwise the jump will flash back!

Today the smooth completion of the page jump!



Elementary school arithmetic mental arithmetic practice app---No.2

Related Article

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.