ANDROID Context Menu
ANDROID
To get started learning HTML you simply need a computer and notepad, that's all.
Update in progress and will be completed shortly.
Thanks for being with us.
HTML is the building blocks for websites
HTML is the Hypertext Markup Language for web.
For building webpage, website or web applications, learning HTML is a must along with other technologies.
It is very easy for anyone to learn.
Browsers read HTML document to display web contents properly.
How the browsers work with HTML
Every browser understands HTML language, because the programming is built-in to the browsers.
Developers write code in HTML to make webpage, or websites.
Browsers read HTML tags and contents within it and know what is the meaning and purpose of each HTML tag.
Finally browser renders the contents on the page, viewers see the web page.
Learning with HTML Editor "Try it Now"
You can edit the HTML code and view the result using online editor.
Example
public class MainActivity extends AppCompatActivity {
public static final String EXTRA_MESSAGE = "com.example.myfirstapp.MESSAGE";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
/** Called when the user taps the Send button */
public void sendMessage(View view) {
Intent intent = new Intent(this, DisplayMessageActivity.class);
EditText editText = (EditText) findViewById(R.id.editTextTextPersonName);
String message = editText.getText().toString();
intent.putExtra(EXTRA_MESSAGE, message);
startActivity(intent);
}
}
Copy this code and paste it into your project to see how it works.
Sample Code
Copy each file contents and paste it to your project, run and see the final output when everything is correct.
Example
<?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:paddingLeft="16dp"
android:paddingRight="16dp"
android:orientation="vertical" >
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/to" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/subject" />
<EditText
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="top"
android:hint="@string/message" />
<Button
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:text="@string/send" />
</LinearLayout>
Copy this code and paste it into your project to see how it works.