Add the FixedGridLayout sample code.
This time with an Android.mk P.S. Hi from Google I/O!
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.example.android.fixedgridlayout;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
|
||||
public class FixedGridLayoutTest extends Activity
|
||||
{
|
||||
/** Called when the activity is first created. */
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState)
|
||||
{
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.main);
|
||||
|
||||
FixedGridLayout grid = (FixedGridLayout)findViewById(R.id.grid);
|
||||
grid.setCellWidth(80);
|
||||
grid.setCellHeight(80);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user