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