<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Android_Studio%3A_Cara_Membuat_Android_Apps_2</id>
	<title>Android Studio: Cara Membuat Android Apps 2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Android_Studio%3A_Cara_Membuat_Android_Apps_2"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Cara_Membuat_Android_Apps_2&amp;action=history"/>
	<updated>2026-04-20T11:17:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Cara_Membuat_Android_Apps_2&amp;diff=42819&amp;oldid=prev</id>
		<title>Onnowpurbo at 11:41, 20 April 2015</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Cara_Membuat_Android_Apps_2&amp;diff=42819&amp;oldid=prev"/>
		<updated>2015-04-20T11:41:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:41, 20 April 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;How to Make Android Apps 2In this part of my how to make Android apps tutorial I will cover the following topics : strings.xml, Linear Layouts, Toasts, Event Handling, Excepting User Input, Translation, EditText, Button and a whole bunch of other topics.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;How to Make Android Apps 2In this part of my how to make Android apps tutorial I will cover the following topics : strings.xml, Linear Layouts, Toasts, Event Handling, Excepting User Input, Translation, EditText, Button and a whole bunch of other topics.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MainActivity.java&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MainActivity.java&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;01	&lt;/del&gt;package com.newthinktank.messingaround.app;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;package com.newthinktank.messingaround.app;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;02	&lt;/del&gt;  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;03	&lt;/del&gt;import android.os.Bundle;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;import android.os.Bundle;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;04	&lt;/del&gt;import android.support.v7.app.ActionBarActivity;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;import android.support.v7.app.ActionBarActivity;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;05	&lt;/del&gt;import android.view.Menu;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;import android.view.Menu;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;06	&lt;/del&gt;import android.view.MenuItem;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;import android.view.MenuItem;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;07	&lt;/del&gt;import android.view.View;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;import android.view.View;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;08	&lt;/del&gt;import android.widget.Button;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;import android.widget.Button;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;09	&lt;/del&gt;import android.widget.EditText;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;import android.widget.EditText;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;10	&lt;/del&gt;import android.widget.Toast;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;import android.widget.Toast;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;11	&lt;/del&gt;  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;12	&lt;/del&gt;  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;13	&lt;/del&gt;public class MainActivity extends ActionBarActivity {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;public class MainActivity extends ActionBarActivity {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;14	 &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;15	    &lt;/del&gt;// 17. Create the components here that you want to use in your code&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;     &lt;/ins&gt;// 17. Create the components here that you want to use in your code&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;16	 &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;17	    &lt;/del&gt;private Button answerYesButton, answerNoButton;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;     &lt;/ins&gt;private Button answerYesButton, answerNoButton;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;18	    &lt;/del&gt;private EditText usersNameEditText;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;     &lt;/ins&gt;private EditText usersNameEditText;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;19	 &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;20	    &lt;/del&gt;@Override&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;     &lt;/ins&gt;@Override&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;21	    &lt;/del&gt;protected void onCreate(Bundle savedInstanceState) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;     &lt;/ins&gt;protected void onCreate(Bundle savedInstanceState) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;22	        &lt;/del&gt;super.onCreate(savedInstanceState);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;         &lt;/ins&gt;super.onCreate(savedInstanceState);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;23	        &lt;/del&gt;setContentView(R.layout.activity_main);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;         &lt;/ins&gt;setContentView(R.layout.activity_main);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;24	&lt;/del&gt;  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;25	        &lt;/del&gt;// 18. Initialize all of your components in the code here&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;         &lt;/ins&gt;// 18. Initialize all of your components in the code here&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;26	 &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;27	        &lt;/del&gt;answerYesButton = (Button) findViewById(R.id.answer_yes_button);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;         &lt;/ins&gt;answerYesButton = (Button) findViewById(R.id.answer_yes_button);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;28	        &lt;/del&gt;answerNoButton = (Button) findViewById(R.id.answer_no_button);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;         &lt;/ins&gt;answerNoButton = (Button) findViewById(R.id.answer_no_button);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;29	        &lt;/del&gt;usersNameEditText = (EditText) findViewById(R.id.users_name_edit_text);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;         &lt;/ins&gt;usersNameEditText = (EditText) findViewById(R.id.users_name_edit_text);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;30	    &lt;/del&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;     &lt;/ins&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;31	 &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;32	 &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;33	    &lt;/del&gt;@Override&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;     &lt;/ins&gt;@Override&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;34	    &lt;/del&gt;public boolean onCreateOptionsMenu(Menu menu) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;     &lt;/ins&gt;public boolean onCreateOptionsMenu(Menu menu) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;35	        &lt;/del&gt;// Inflate the menu; this adds items to the action bar if it is present.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;         &lt;/ins&gt;// Inflate the menu; this adds items to the action bar if it is present.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;36	        &lt;/del&gt;getMenuInflater().inflate(R.menu.main, menu);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;         &lt;/ins&gt;getMenuInflater().inflate(R.menu.main, menu);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;37	        &lt;/del&gt;return true;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;         &lt;/ins&gt;return true;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;38	    &lt;/del&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;     &lt;/ins&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;39	 &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;40	    &lt;/del&gt;@Override&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;     &lt;/ins&gt;@Override&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;41	    public boolean onOptionsItemSelected(MenuItem item) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;41	    public boolean onOptionsItemSelected(MenuItem item) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;42	        // Handle action bar item clicks here. The action bar will&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;42	        // Handle action bar item clicks here. The action bar will&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Cara_Membuat_Android_Apps_2&amp;diff=42690&amp;oldid=prev</id>
		<title>Onnowpurbo: New page:  How to Make Android Apps 2In this part of my how to make Android apps tutorial I will cover the following topics : strings.xml, Linear Layouts, Toasts, Event Handling, Excepting User Inpu...</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Cara_Membuat_Android_Apps_2&amp;diff=42690&amp;oldid=prev"/>
		<updated>2015-03-18T03:07:16Z</updated>

		<summary type="html">&lt;p&gt;New page:  How to Make Android Apps 2In this part of my how to make Android apps tutorial I will cover the following topics : strings.xml, Linear Layouts, Toasts, Event Handling, Excepting User Inpu...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
How to Make Android Apps 2In this part of my how to make Android apps tutorial I will cover the following topics : strings.xml, Linear Layouts, Toasts, Event Handling, Excepting User Input, Translation, EditText, Button and a whole bunch of other topics.&lt;br /&gt;
&lt;br /&gt;
If you missed part 1 of this series, or if you need to install Android Studio I have you covered with these links. For translation you’ll need the ISO 639-1 Codes as well. All of the code from the video can be found below.&lt;br /&gt;
&lt;br /&gt;
If you like videos like this, it helps me if you share on Google Plus with a click here&lt;br /&gt;
&lt;br /&gt;
Code From the Video&lt;br /&gt;
&lt;br /&gt;
MainActivity.java&lt;br /&gt;
&lt;br /&gt;
01	package com.newthinktank.messingaround.app;&lt;br /&gt;
02	 &lt;br /&gt;
03	import android.os.Bundle;&lt;br /&gt;
04	import android.support.v7.app.ActionBarActivity;&lt;br /&gt;
05	import android.view.Menu;&lt;br /&gt;
06	import android.view.MenuItem;&lt;br /&gt;
07	import android.view.View;&lt;br /&gt;
08	import android.widget.Button;&lt;br /&gt;
09	import android.widget.EditText;&lt;br /&gt;
10	import android.widget.Toast;&lt;br /&gt;
11	 &lt;br /&gt;
12	 &lt;br /&gt;
13	public class MainActivity extends ActionBarActivity {&lt;br /&gt;
14	 &lt;br /&gt;
15	    // 17. Create the components here that you want to use in your code&lt;br /&gt;
16	 &lt;br /&gt;
17	    private Button answerYesButton, answerNoButton;&lt;br /&gt;
18	    private EditText usersNameEditText;&lt;br /&gt;
19	 &lt;br /&gt;
20	    @Override&lt;br /&gt;
21	    protected void onCreate(Bundle savedInstanceState) {&lt;br /&gt;
22	        super.onCreate(savedInstanceState);&lt;br /&gt;
23	        setContentView(R.layout.activity_main);&lt;br /&gt;
24	 &lt;br /&gt;
25	        // 18. Initialize all of your components in the code here&lt;br /&gt;
26	 &lt;br /&gt;
27	        answerYesButton = (Button) findViewById(R.id.answer_yes_button);&lt;br /&gt;
28	        answerNoButton = (Button) findViewById(R.id.answer_no_button);&lt;br /&gt;
29	        usersNameEditText = (EditText) findViewById(R.id.users_name_edit_text);&lt;br /&gt;
30	    }&lt;br /&gt;
31	 &lt;br /&gt;
32	 &lt;br /&gt;
33	    @Override&lt;br /&gt;
34	    public boolean onCreateOptionsMenu(Menu menu) {&lt;br /&gt;
35	        // Inflate the menu; this adds items to the action bar if it is present.&lt;br /&gt;
36	        getMenuInflater().inflate(R.menu.main, menu);&lt;br /&gt;
37	        return true;&lt;br /&gt;
38	    }&lt;br /&gt;
39	 &lt;br /&gt;
40	    @Override&lt;br /&gt;
41	    public boolean onOptionsItemSelected(MenuItem item) {&lt;br /&gt;
42	        // Handle action bar item clicks here. The action bar will&lt;br /&gt;
43	        // automatically handle clicks on the Home/Up button, so long&lt;br /&gt;
44	        // as you specify a parent activity in AndroidManifest.xml.&lt;br /&gt;
45	        int id = item.getItemId();&lt;br /&gt;
46	        if (id == R.id.action_settings) {&lt;br /&gt;
47	            return true;&lt;br /&gt;
48	        }&lt;br /&gt;
49	        return super.onOptionsItemSelected(item);&lt;br /&gt;
50	    }&lt;br /&gt;
51	 &lt;br /&gt;
52	    public void onYesButtonClick(View view) {&lt;br /&gt;
53	 &lt;br /&gt;
54	        String usersName = String.valueOf(usersNameEditText.getText());&lt;br /&gt;
55	 &lt;br /&gt;
56	        String yourYesResponse = &amp;quot;That is great &amp;quot; + usersName;&lt;br /&gt;
57	 &lt;br /&gt;
58	        // 19. We display a short popup or Toast when the user clicks&lt;br /&gt;
59	        // LENGTH_SHORT or LENGTH_LONG defines how long the toast shows&lt;br /&gt;
60	 &lt;br /&gt;
61	        Toast.makeText(this, yourYesResponse, Toast.LENGTH_SHORT).show();&lt;br /&gt;
62	    }&lt;br /&gt;
63	 &lt;br /&gt;
64	    public void onNoButtonClick(View view) {&lt;br /&gt;
65	 &lt;br /&gt;
66	        String usersName = String.valueOf(usersNameEditText.getText());&lt;br /&gt;
67	 &lt;br /&gt;
68	        String yourNoResponse = &amp;quot;To bad &amp;quot; + usersName;&lt;br /&gt;
69	 &lt;br /&gt;
70	        Toast.makeText(this, yourNoResponse, Toast.LENGTH_SHORT).show();&lt;br /&gt;
71	 &lt;br /&gt;
72	    }&lt;br /&gt;
73	}&lt;br /&gt;
&lt;br /&gt;
activity_main.xml&lt;br /&gt;
&lt;br /&gt;
001	&amp;lt;!-- 1. When you change to a linear layout add orientation --&amp;gt;&lt;br /&gt;
002	 &lt;br /&gt;
003	&amp;lt;LinearLayout xmlns:android=&amp;quot;http://schemas.android.com/apk/res/android&amp;quot;&lt;br /&gt;
004	    xmlns:tools=&amp;quot;http://schemas.android.com/tools&amp;quot;&lt;br /&gt;
005	    android:orientation=&amp;quot;vertical&amp;quot;&lt;br /&gt;
006	    android:layout_width=&amp;quot;match_parent&amp;quot;&lt;br /&gt;
007	    android:layout_height=&amp;quot;match_parent&amp;quot;&lt;br /&gt;
008	    android:paddingLeft=&amp;quot;@dimen/activity_horizontal_margin&amp;quot;&lt;br /&gt;
009	    android:paddingRight=&amp;quot;@dimen/activity_horizontal_margin&amp;quot;&lt;br /&gt;
010	    android:paddingTop=&amp;quot;@dimen/activity_vertical_margin&amp;quot;&lt;br /&gt;
011	    android:paddingBottom=&amp;quot;@dimen/activity_vertical_margin&amp;quot;&lt;br /&gt;
012	    tools:context=&amp;quot;com.newthinktank.messingaround.app.MainActivity&amp;quot;&lt;br /&gt;
013	    android:gravity=&amp;quot;center|top&amp;quot;&amp;gt;&lt;br /&gt;
014	 &lt;br /&gt;
015	    &amp;lt;!-- 4. Setting gravity defines where on the screen the layout aligns to (top, bottom, right,&lt;br /&gt;
016	    left, center--&amp;gt;&lt;br /&gt;
017	 &lt;br /&gt;
018	    &amp;lt;!-- 3. layout_weight considers the amount of space needed for each element and divides up the&lt;br /&gt;
019	    space. Since 1 widget is so much bigger then the other 2 this causes problems. If we change&lt;br /&gt;
020	    the text in the second to &amp;quot;Goodbye you crazy android&amp;quot; you see that the screen divides up well.&lt;br /&gt;
021	    (1/3rd for each) --&amp;gt;&lt;br /&gt;
022	 &lt;br /&gt;
023	    &amp;lt;!--&lt;br /&gt;
024	    &amp;lt;TextView&lt;br /&gt;
025	        android:text=&amp;quot;@string/hello_world&amp;quot;&lt;br /&gt;
026	        android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
027	        android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
028	        android:layout_weight=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
029	        --&amp;gt;&lt;br /&gt;
030	 &lt;br /&gt;
031	    &amp;lt;!-- 2. wrap_content causes the widget to become shorter or longer depending on whether the content&lt;br /&gt;
032	     is longer than the screen width. If it is longer a newline is added. If it does take up&lt;br /&gt;
033	     all the space horizontally and a new widget is added it won&amp;#039;t show on the screen.&lt;br /&gt;
034	 &lt;br /&gt;
035	    &amp;lt;TextView&lt;br /&gt;
036	        android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
037	        android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
038	        android:text=&amp;quot;Goodbye you crazy android app it has been nice knowing you&amp;quot;&lt;br /&gt;
039	        android:layout_weight=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
040	 &lt;br /&gt;
041	    &amp;lt;TextView&lt;br /&gt;
042	        android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
043	        android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
044	        android:text=&amp;quot;More Random Text&amp;quot;&lt;br /&gt;
045	        android:layout_weight=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
046	    --&amp;gt;&lt;br /&gt;
047	 &lt;br /&gt;
048	    &amp;lt;!-- 5. We can define the height, width, gravity, background color, background image,&lt;br /&gt;
049	    whether it is clickable or not, styling and more.  --&amp;gt;&lt;br /&gt;
050	 &lt;br /&gt;
051	    &amp;lt;!-- 6. We can make these buttons fit by changing their font size (sp : Scale Independent of&lt;br /&gt;
052	    Pixels : scaled pixels based on preferred font size --&amp;gt;&lt;br /&gt;
053	 &lt;br /&gt;
054	    &amp;lt;!-- 7. Padding increases the size of the button : padding, paddingBottom, paddingTop,&lt;br /&gt;
055	     paddingLeft, paddingRight (paddingEnd &amp;amp; paddingStart change depending upon letter direction&lt;br /&gt;
056	     --&amp;gt;&lt;br /&gt;
057	 &lt;br /&gt;
058	    &amp;lt;!-- 8. Margin is padding on that surrounds the border : layout_margin, layout_marginLeft&lt;br /&gt;
059	    layout_marginRight, layout_marginTop, layout_marginBottom --&amp;gt;&lt;br /&gt;
060	 &lt;br /&gt;
061	    &amp;lt;!-- 9. If we use match_parent with the first widget it will push the rest off the screen. If&lt;br /&gt;
062	    we use match_parent with the last component it will take up the space not needed by the&lt;br /&gt;
063	     previous widgets. --&amp;gt;&lt;br /&gt;
064	 &lt;br /&gt;
065	    &amp;lt;!--&lt;br /&gt;
066	    &amp;lt;Button&lt;br /&gt;
067	        android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
068	        android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
069	        android:text=&amp;quot;1st Button&amp;quot;&lt;br /&gt;
070	        android:textSize=&amp;quot;15sp&amp;quot;&lt;br /&gt;
071	        android:padding=&amp;quot;15dp&amp;quot;&lt;br /&gt;
072	        android:layout_weight=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
073	 &lt;br /&gt;
074	    &amp;lt;Button&lt;br /&gt;
075	        android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
076	        android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
077	        android:text=&amp;quot;2nd Button&amp;quot;&lt;br /&gt;
078	        android:textSize=&amp;quot;15sp&amp;quot;&lt;br /&gt;
079	        android:padding=&amp;quot;15dp&amp;quot;&lt;br /&gt;
080	        android:layout_weight=&amp;quot;3&amp;quot;/&amp;gt;&lt;br /&gt;
081	 &lt;br /&gt;
082	        --&amp;gt;&lt;br /&gt;
083	 &lt;br /&gt;
084	    &amp;lt;!-- 10. layout_weight can be used to define how much of the extra space should be allocated&lt;br /&gt;
085	     to a widget.&lt;br /&gt;
086	 &lt;br /&gt;
087	    &amp;lt;Button&lt;br /&gt;
088	        android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
089	        android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
090	        android:text=&amp;quot;3rd Button&amp;quot;&lt;br /&gt;
091	        android:textSize=&amp;quot;15sp&amp;quot;&lt;br /&gt;
092	        android:padding=&amp;quot;15dp&amp;quot;&lt;br /&gt;
093	        android:layout_weight=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
094	 &lt;br /&gt;
095	        --&amp;gt;&lt;br /&gt;
096	 &lt;br /&gt;
097	    &amp;lt;!-- 11. You can define multiple gravity options for our layout like this&lt;br /&gt;
098	     android:gravity=&amp;quot;center|top&amp;quot; --&amp;gt;&lt;br /&gt;
099	 &lt;br /&gt;
100	    &amp;lt;!--&lt;br /&gt;
101	    &amp;lt;TextView&lt;br /&gt;
102	        android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
103	        android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
104	        android:text=&amp;quot;Are you Happy?&amp;quot;&lt;br /&gt;
105	        android:textSize=&amp;quot;20sp&amp;quot;/&amp;gt;&lt;br /&gt;
106	        --&amp;gt;&lt;br /&gt;
107	 &lt;br /&gt;
108	    &amp;lt;!-- 12. Let&amp;#039;s add a Nested Linear Layout with buttons in it --&amp;gt;&lt;br /&gt;
109	 &lt;br /&gt;
110	    &amp;lt;!-- 13. You can add a hint if the user may be confused by the component --&amp;gt;&lt;br /&gt;
111	 &lt;br /&gt;
112	    &amp;lt;!--&lt;br /&gt;
113	 &lt;br /&gt;
114	    &amp;lt;LinearLayout&lt;br /&gt;
115	        android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
116	        android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
117	        android:orientation=&amp;quot;horizontal&amp;quot;&amp;gt;&lt;br /&gt;
118	 &lt;br /&gt;
119	        &amp;lt;Button&lt;br /&gt;
120	            android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
121	            android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
122	            android:text=&amp;quot;Yes&amp;quot;&lt;br /&gt;
123	            android:hint=&amp;quot;Pick Me&amp;quot; /&amp;gt;&lt;br /&gt;
124	 &lt;br /&gt;
125	        &amp;lt;Button&lt;br /&gt;
126	            android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
127	            android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
128	            android:text=&amp;quot;No&amp;quot;&lt;br /&gt;
129	            android:hint=&amp;quot;No Pick Me&amp;quot; /&amp;gt;&lt;br /&gt;
130	 &lt;br /&gt;
131	        &amp;lt;/LinearLayout&amp;gt;&lt;br /&gt;
132	 &lt;br /&gt;
133	    &amp;lt;LinearLayout&lt;br /&gt;
134	        android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
135	        android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
136	        android:orientation=&amp;quot;horizontal&amp;quot;&amp;gt;&lt;br /&gt;
137	 &lt;br /&gt;
138	    --&amp;gt;&lt;br /&gt;
139	 &lt;br /&gt;
140	        &amp;lt;!-- 14. We&amp;#039;ll also add an editable text field so we can interact. We&amp;#039;ll also be&lt;br /&gt;
141	         able to define the type of input expected so that we can automatically capitalize&lt;br /&gt;
142	         among other things.--&amp;gt;&lt;br /&gt;
143	 &lt;br /&gt;
144	    &amp;lt;!--&lt;br /&gt;
145	        &amp;lt;EditText&lt;br /&gt;
146	            android:layout_width=&amp;quot;200dp&amp;quot;&lt;br /&gt;
147	            android:layout_height=&amp;quot;50dp&amp;quot;&lt;br /&gt;
148	            android:hint=&amp;quot;@string/users_name_edit_text&amp;quot;&lt;br /&gt;
149	            android:inputType=&amp;quot;textPersonName&amp;quot;/&amp;gt;&lt;br /&gt;
150	 &lt;br /&gt;
151	        &amp;lt;/LinearLayout&amp;gt;&lt;br /&gt;
152	 &lt;br /&gt;
153	    --&amp;gt;&lt;br /&gt;
154	 &lt;br /&gt;
155	    &amp;lt;!-- 15. We can define multiple strings.xml files for different languages&lt;br /&gt;
156	        ( Highlight the text -&amp;gt; Click Light bulb -&amp;gt; Extract string resource )&lt;br /&gt;
157	        Then create a directory in /res named values-(2 digit country code)&lt;br /&gt;
158	        and put a file named strings.xml in it with the translation&lt;br /&gt;
159	        http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes --&amp;gt;&lt;br /&gt;
160	 &lt;br /&gt;
161	    &amp;lt;TextView&lt;br /&gt;
162	        android:id=&amp;quot;@+id/happy_question&amp;quot;&lt;br /&gt;
163	        android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
164	        android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
165	        android:text=&amp;quot;@string/happy_question&amp;quot;&lt;br /&gt;
166	        android:textSize=&amp;quot;20sp&amp;quot;/&amp;gt;&lt;br /&gt;
167	 &lt;br /&gt;
168	    &amp;lt;LinearLayout&lt;br /&gt;
169	        android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
170	        android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
171	        android:orientation=&amp;quot;horizontal&amp;quot;&amp;gt;&lt;br /&gt;
172	 &lt;br /&gt;
173	        &amp;lt;!-- 16. We can define a function to execute when the user clicks a button with&lt;br /&gt;
174	        android:onClick=&amp;quot;functionNameHere&amp;quot; then we have to create that function in&lt;br /&gt;
175	        MainActivity.java ( Highlight the function name here and click the lightbulb&lt;br /&gt;
176	        Create functionNameHere in MainActivity ) Then give everything you want to be able to&lt;br /&gt;
177	        use in code an id. --&amp;gt;&lt;br /&gt;
178	 &lt;br /&gt;
179	        &amp;lt;Button&lt;br /&gt;
180	            android:id=&amp;quot;@+id/answer_yes_button&amp;quot;&lt;br /&gt;
181	            android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
182	            android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
183	            android:text=&amp;quot;@string/answer_yes&amp;quot;&lt;br /&gt;
184	            android:hint=&amp;quot;@string/hint_pick_me&amp;quot;&lt;br /&gt;
185	            android:onClick=&amp;quot;onYesButtonClick&amp;quot;/&amp;gt;&lt;br /&gt;
186	 &lt;br /&gt;
187	        &amp;lt;Button&lt;br /&gt;
188	            android:id=&amp;quot;@+id/answer_no_button&amp;quot;&lt;br /&gt;
189	            android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
190	            android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
191	            android:text=&amp;quot;@string/answer_no&amp;quot;&lt;br /&gt;
192	            android:hint=&amp;quot;@string/hint_no_pick_me&amp;quot;&lt;br /&gt;
193	            android:onClick=&amp;quot;onNoButtonClick&amp;quot;/&amp;gt;&lt;br /&gt;
194	 &lt;br /&gt;
195	    &amp;lt;/LinearLayout&amp;gt;&lt;br /&gt;
196	 &lt;br /&gt;
197	    &amp;lt;LinearLayout&lt;br /&gt;
198	        android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
199	        android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
200	        android:orientation=&amp;quot;horizontal&amp;quot;&amp;gt;&lt;br /&gt;
201	 &lt;br /&gt;
202	        &amp;lt;EditText&lt;br /&gt;
203	            android:id=&amp;quot;@+id/users_name_edit_text&amp;quot;&lt;br /&gt;
204	            android:layout_width=&amp;quot;200dp&amp;quot;&lt;br /&gt;
205	            android:layout_height=&amp;quot;50dp&amp;quot;&lt;br /&gt;
206	            android:hint=&amp;quot;@string/users_name_edit_text&amp;quot;&lt;br /&gt;
207	            android:inputType=&amp;quot;textPersonName&amp;quot;/&amp;gt;&lt;br /&gt;
208	 &lt;br /&gt;
209	    &amp;lt;/LinearLayout&amp;gt;&lt;br /&gt;
210	 &lt;br /&gt;
211	&amp;lt;/LinearLayout&amp;gt;&lt;br /&gt;
&lt;br /&gt;
strings.xml Default&lt;br /&gt;
&lt;br /&gt;
01	&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;br /&gt;
02	&amp;lt;resources&amp;gt;&lt;br /&gt;
03	 &lt;br /&gt;
04	    &amp;lt;string name=&amp;quot;app_name&amp;quot;&amp;gt;MessingAround&amp;lt;/string&amp;gt;&lt;br /&gt;
05	    &amp;lt;string name=&amp;quot;hello_world&amp;quot;&amp;gt;Hello world!&amp;lt;/string&amp;gt;&lt;br /&gt;
06	    &amp;lt;string name=&amp;quot;action_settings&amp;quot;&amp;gt;Settings&amp;lt;/string&amp;gt;&lt;br /&gt;
07	    &amp;lt;string name=&amp;quot;users_name_edit_text&amp;quot;&amp;gt;Your Name&amp;lt;/string&amp;gt;&lt;br /&gt;
08	    &amp;lt;string name=&amp;quot;happy_question&amp;quot;&amp;gt;Are You Happy?&amp;lt;/string&amp;gt;&lt;br /&gt;
09	    &amp;lt;string name=&amp;quot;answer_yes_button&amp;quot;&amp;gt;Yes&amp;lt;/string&amp;gt;&lt;br /&gt;
10	    &amp;lt;string name=&amp;quot;answer_no_button&amp;quot;&amp;gt;No&amp;lt;/string&amp;gt;&lt;br /&gt;
11	 &lt;br /&gt;
12	&amp;lt;/resources&amp;gt;&lt;br /&gt;
&lt;br /&gt;
strings.xml Spanish&lt;br /&gt;
&lt;br /&gt;
01	&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;br /&gt;
02	&amp;lt;resources&amp;gt;&lt;br /&gt;
03	 &lt;br /&gt;
04	    &amp;lt;string name=&amp;quot;app_name&amp;quot;&amp;gt;Perder el tiempo&amp;lt;/string&amp;gt;&lt;br /&gt;
05	    &amp;lt;string name=&amp;quot;hello_world&amp;quot;&amp;gt;Â¡Hola, mundo&amp;lt;/string&amp;gt;&lt;br /&gt;
06	    &amp;lt;string name=&amp;quot;action_settings&amp;quot;&amp;gt;ConfiguraciÃ³n&amp;lt;/string&amp;gt;&lt;br /&gt;
07	    &amp;lt;string name=&amp;quot;users_name_edit_text&amp;quot;&amp;gt;Su nombre&amp;lt;/string&amp;gt;&lt;br /&gt;
08	    &amp;lt;string name=&amp;quot;happy_question&amp;quot;&amp;gt;Â¿Eres feliz?&amp;lt;/string&amp;gt;&lt;br /&gt;
09	    &amp;lt;string name=&amp;quot;answer_yes&amp;quot;&amp;gt;SÃ­&amp;lt;/string&amp;gt;&lt;br /&gt;
10	    &amp;lt;string name=&amp;quot;answer_no&amp;quot;&amp;gt;No&amp;lt;/string&amp;gt;&lt;br /&gt;
11	    &amp;lt;string name=&amp;quot;hint_pick_me&amp;quot;&amp;gt;Llevarnos&amp;lt;/string&amp;gt;&lt;br /&gt;
12	    &amp;lt;string name=&amp;quot;hint_no_pick_me&amp;quot;&amp;gt;No, me recogiera&amp;lt;/string&amp;gt;&lt;br /&gt;
13	 &lt;br /&gt;
14	&amp;lt;/resources&amp;gt;&lt;br /&gt;
- See more at: http://www.newthinktank.com/2014/06/make-android-apps-2/#sthash.KFPwFMDe.dpuf&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>