Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#000000"
- tools:context=".MainActivity">
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#000000"
- android:orientation="vertical"
- android:padding="16dp"
- tools:context="com.example.android.earthquake.MainActivity">
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#000000"
- android:orientation="horizontal"
- android:padding="16dp"
- tools:context="com.example.android.earthquake.MainActivity">
- <pl.droidsonroids.gif.GifImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="3"
- android:background="#000000"
- android:scaleType="centerInside"
- android:src="@drawable/earthquakeglobe" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background="@android:color/black"
- android:gravity="center"
- android:text="Learn About Earthquakes!"
- android:textColor="#ffffff"
- android:textSize="30sp" />
- </LinearLayout>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#FFFFFF"
- android:orientation="vertical"
- android:padding="16dp"
- tools:context="com.example.android.earthquake.MainActivity">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="10dp"
- android:background="#FFFFFF"
- android:text="What is an earthquake?"
- android:textColor="#FF327CA3"
- android:textSize="18sp"
- android:textStyle="bold">
- </TextView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="10dp"
- android:background="#FFFFFF"
- android:text="An earthquake is what happens when two blocks of the earth suddenly slip past one another. The surface where they slip is called the fault or fault plane. The location below the earth’s surface where the earthquake starts is called the hypocenter, and the location directly above it on the surface of the earth is called the epicenter."
- android:textSize="14sp"></TextView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="10dp"
- android:background="#FFFFFF"
- android:text="What causes earthquakes and where do they happen?"
- android:textColor="#FF327CA3"
- android:textSize="18sp"
- android:textStyle="bold"></TextView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:background="#FFFFFF"
- android:text="The earth has four major layers: the inner core, outer core, mantle and crust. (figure 1) The crust and the top of the mantle make up a thin skin on the surface of our planet. But this skin is not all in one piece – it is made up of many pieces like a puzzle covering the surface of the earth. (figure 3) Not only that, but these puzzle pieces keep slowly moving around, sliding past one another and bumping into each other. We call these puzzle pieces tectonic plates, and the edges of the plates are called the plate boundaries. The plate boundaries are made up of many faults, and most of the earthquakes around the world occur on these faults. Since the edges of the plates are rough, they get stuck while the rest of the plate keeps moving. Finally, when the plate has moved far enough, the edges unstick on one of the faults and there is an earthquake."
- android:textSize="14sp"></TextView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#FFFFFF"
- android:text="Figure 1"
- android:textSize="10sp"
- android:textStyle="bold"></TextView>
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:background="@drawable/corefourcolumn"
- android:scaleType="centerCrop">
- </ImageView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="10dp"
- android:background="#FFFFFF"
- android:text="Why does the earth shake when there is an earthquake?"
- android:textColor="#FF327CA3"
- android:textSize="18sp"
- android:textStyle="bold"></TextView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="10dp"
- android:text="While the edges of faults are stuck together, and the rest of the block is moving, the energy that would normally cause the blocks to slide past one another is being stored up. When the force of the moving blocks finally overcomes the friction of the jagged edges of the fault and it unsticks, all that stored up energy is released. The energy radiates outward from the fault in all directions in the form of seismic waves like ripples on a pond. The seismic waves shake the earth as they move through it, and when the waves reach the earth’s surface, they shake the ground and anything on it, like our houses and us! (see P and S Wave inset)">
- </TextView>
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:scaleType="centerInside"
- android:src="@drawable/whyshake"></ImageView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="10dp"
- android:background="#FFFFFF"
- android:text="How are earthquakes recorded?"
- android:textColor="#FF327CA3"
- android:textSize="18sp"
- android:textStyle="bold"></TextView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="10dp"
- android:text="Earthquakes are recorded by instruments called seismographs. The recording they make is called a seismogram. (figure 4) The seismograph has a base that sets firmly in the ground, and a heavy weight that hangs free. When an earthquake causes the ground to shake, the base of the seismograph shakes too, but the hanging weight does not. Instead the spring or string that it is hanging from absorbs all the movement. The difference in position between the shaking part of the seismograph and the motionless part is what is recorded. ">
- </TextView>
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:scaleType="centerInside"
- android:src="@drawable/seismograph"></ImageView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="10dp"
- android:background="#FFFFFF"
- android:text="How do scientists measure the size of earthquakes?"
- android:textColor="#FF327CA3"
- android:textSize="18sp"
- android:textStyle="bold"></TextView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="10dp"
- android:text="The size of an earthquake depends on the size of the fault and the amount of slip on the fault, but that’s not something scientists can simply measure with a measuring tape since faults are many kilometers deep beneath the earth’s surface. So how do they measure an earthquake? They use the seismogram recordings made on the seismographs at the surface of the earth to determine how large the earthquake was (figure 5). A short wiggly line that doesn’t wiggle very much means a small earthquake, and a long wiggly line that wiggles a lot means a large earthquake. The length of the wiggle depends on the size of the fault, and the size of the wiggle depends on the amount of slip. The size of the earthquake is called its magnitude. There is one magnitude for each earthquake. Scientists also talk about the intensity of shaking from an earthquake, and this varies depending on where you are during the earthquake. ">
- </TextView>
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:scaleType="centerInside"
- android:src="@drawable/seismogramfourcolumn"></ImageView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="10dp"
- android:background="#FFFFFF"
- android:text="What is a fault and what are the different types?"
- android:textColor="#FF327CA3"
- android:textSize="18sp"
- android:textStyle="bold"></TextView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="20dp"
- android:text="A fault is a fracture or zone of fractures between two blocks of rock. Faults allow the blocks to move relative to each other. This movement may occur rapidly, in the form of an earthquake - or may occur slowly, in the form of creep. Faults may range in length from a few millimeters to thousands of kilometers. Most faults produce repeated displacements over geologic time. During an earthquake, the rock on one side of the fault suddenly slips with respect to the other. The fault surface can be horizontal or vertical or some arbitrary angle in between."></TextView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="10dp"
- android:background="#FFFFFF"
- android:text="Normal Fault"
- android:textColor="#FF327CA3"
- android:textSize="18sp"
- android:textStyle="bold"></TextView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="20dp"
- android:text="A normal fault is a dip-slip fault in which the block above the fault has moved downward relative to the block below. This type of faulting occurs in response to extension and is often observed in the Western United States Basin and Range Province and along oceanic ridge systems."></TextView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="10dp"
- android:background="#FFFFFF"
- android:text="Thrust Fault"
- android:textColor="#FF327CA3"
- android:textSize="18sp"
- android:textStyle="bold"></TextView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="20dp"
- android:text="a dip-slip fault in which the upper block, above the fault plane, moves up and over the lower block. This type of faulting is common in areas of compression, such as regions where one plate is being subducted under another as in Japan. When the dip angle is shallow, a reverse fault is often described as a thrust fault."></TextView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="10dp"
- android:background="#FFFFFF"
- android:text="Strike-slip Fault"
- android:textColor="#FF327CA3"
- android:textSize="18sp"
- android:textStyle="bold"></TextView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="20dp"
- android:text="A strike-slip is a fault on which the two blocks slide past one another. The San Andreas Fault is an example of a right lateral fault. A left-lateral strike-slip fault is one on which the displacement of the far block is to the left when viewed from either side. A right-lateral strike-slip fault is one on which the displacement of the far block is to the right when viewed from either side."></TextView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:background="#FFFFFF"
- android:gravity="center"
- android:text="Take the earthquake quiz!"
- android:textColor="#FFCF5707"
- android:textSize="18sp"
- android:textStyle="bold"></TextView>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="10dp"
- android:text="What type of fault is this?"
- android:textSize="16sp"></TextView>
- <pl.droidsonroids.gif.GifImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="10dp"
- android:scaleType="centerInside"
- android:src="@drawable/reverseloop" />
- <RadioGroup
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <android.support.v7.widget.AppCompatRadioButton
- android:id="@+id/question1_choice1"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="Normal" />
- <android.support.v7.widget.AppCompatRadioButton
- android:id="@+id/question1_choice2"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="Forward" />
- <android.support.v7.widget.AppCompatRadioButton
- android:id="@+id/question1_choice3"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="Strike-slip" />
- <android.support.v7.widget.AppCompatRadioButton
- android:id="@+id/question1_choice4"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="Reverse" />
- </RadioGroup>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="10dp"
- android:layout_marginTop="20dp"
- android:text="Select the type of fault show below:"
- android:textSize="16sp"></TextView>
- <pl.droidsonroids.gif.GifImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:scaleType="centerInside"
- android:src="@drawable/rightstrikeloop" />
- <RadioGroup
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <android.support.v7.widget.AppCompatRadioButton
- android:id="@+id/question2_choice1"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="Strike-slip" />
- <android.support.v7.widget.AppCompatRadioButton
- android:id="@+id/question2_choice2"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="Reverse" />
- <android.support.v7.widget.AppCompatRadioButton
- android:id="@+id/question2_choice3"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="Rewind" />
- <android.support.v7.widget.AppCompatRadioButton
- android:id="@+id/question2_choice4"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="Regular" />
- </RadioGroup>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="10dp"
- android:text="How about this one? *Check all that apply."
- android:textSize="16sp"></TextView>
- <pl.droidsonroids.gif.GifImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:scaleType="centerInside"
- android:src="@drawable/leftstrikeloop" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <android.support.v7.widget.AppCompatCheckBox
- android:id="@+id/question3_choice1"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="Normal" />
- <android.support.v7.widget.AppCompatCheckBox
- android:id="@+id/question3_choice2"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="Reverse" />
- <android.support.v7.widget.AppCompatCheckBox
- android:id="@+id/question3_choice3"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="Strike-slip" />
- <android.support.v7.widget.AppCompatCheckBox
- android:id="@+id/question3_choice4"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="Left-lateral strike-slip" />
- </LinearLayout>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="10dp"
- android:text="The fault below is an example of:"
- android:textSize="16sp"></TextView>
- <pl.droidsonroids.gif.GifImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="10dp"
- android:scaleType="centerInside"
- android:src="@drawable/normalloop" />
- <RadioGroup
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <android.support.v7.widget.AppCompatRadioButton
- android:id="@+id/question4_choice1"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="Normal" />
- <android.support.v7.widget.AppCompatRadioButton
- android:id="@+id/question4_choice2"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="Strike-slip" />
- <android.support.v7.widget.AppCompatRadioButton
- android:id="@+id/question4_choice3"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="Regular" />
- <android.support.v7.widget.AppCompatRadioButton
- android:id="@+id/question4_choice4"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="Traditional" />
- </RadioGroup>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="10dp"
- android:text="What is the name of the instrument used to detect earthquakes?."
- android:textSize="16sp"></TextView>
- <EditText
- android:id="@+id/question5_answer"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:background="#FFFFFF"
- android:hint="Type your answer here"
- android:inputType="text" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="10dp"
- android:text="Can scientists predict earthquakes?"
- android:textSize="16sp"></TextView>
- <RadioGroup
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <android.support.v7.widget.AppCompatRadioButton
- android:id="@+id/question6_choice1"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="Yes" />
- <android.support.v7.widget.AppCompatRadioButton
- android:id="@+id/question6_choice2"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- android:paddingLeft="24dp"
- android:text="No" />
- </RadioGroup>
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <Button
- android:id="@+id/submit_answers"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:backgroundTint="#dcdcdc"
- android:gravity="center"
- android:onClick="submitAnswers"
- android:text="Submit Answers"
- android:textStyle="bold" />
- </RelativeLayout>
- </LinearLayout>
- </LinearLayout>
- </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement