FileDocCategorySizeDatePackage
Focus1.javaAPI DocAndroid 1.5 API1642Wed May 06 22:41:08 BST 2009com.example.android.apis.view

Focus1

public class Focus1 extends android.app.Activity
Demonstrates the use of non-focusable views.

Fields Summary
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);
        setContentView(R.layout.focus_1);

        WebView webView = (WebView) findViewById(R.id.rssWebView);
        webView.loadData(
                        "<html><body>Can I focus?<br /><a href=\"#\">No I cannot!</a>.</body></html>",
                        "text/html", "utf-8");

        ListView listView = (ListView) findViewById(R.id.rssListView);
        listView.setAdapter(new ArrayAdapter<String>(this,
                android.R.layout.simple_list_item_1, 
                new String[] {"Ars Technica", "Slashdot", "GameKult"}));