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

LinearLayout9

public class LinearLayout9 extends android.app.Activity
Demonstrates how the layout_weight attribute can shrink an element too big to fit on screen.

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

        super.onCreate(savedInstanceState);
        setContentView(R.layout.linear_layout_9);
        ListView list = (ListView) findViewById(R.id.list);
        list.setAdapter(new ArrayAdapter<String>(this,
                android.R.layout.simple_list_item_1, AutoComplete1.COUNTRIES));