Tampilkan postingan dengan label link. Tampilkan semua postingan
Tampilkan postingan dengan label link. Tampilkan semua postingan

HTML Tag - Meta Information

Posted by Unknown Senin, 26 Agustus 2013 0 komentar
<!DOCTYPE>
This is the first thing to be included in a html document,before <html> tag.Actually, this is not a html tag,it is simply given to expain to the web browser which version of html is being used.


<link>
This defines the relationship between a document and an external resource.Mostly used to link with style sheets.


<title>
This tag is required in all html documents and it defines the title of the document.

The <title> element:
  • defines a title in the browser toolbar
  • provides a title for the page when it is added to favorites
  •  displays a title for the page in search-engine results
<style>
This tag is used to define style information for a html document.


<metadata>
It is a data about data.This will not be displayed on the page.

Mainly used to specify page description,keywords,author of the document,last modified, nd other metadata.


Baca Selengkapnya ....

TextView with link in ANDROID…….

Posted by Unknown Senin, 04 Maret 2013 0 komentar
in java class:
import android.app.Activity;
import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.widget.TextView;

public class TextViewLinkDemo extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView tv = (TextView) findViewById(R.id.tv);
tv.setText( Html.fromHtml("This is a textView with a link " +"
AngelMark Blog "
+ "created in the Java source code using HTML."));
tv.setMovementMethod(LinkMovementMethod.getInstance());
}
}
main.xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:id="@+id/tv"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
</LinearLayout>
In Manifest file give internet permission

Baca Selengkapnya ....
Trik SEO Terbaru support Online Shop Baju Wanita - Original design by Bamz | Copyright of android populer.