Files
rk35xx-android14/development/samples/FixedGridLayout/src/com/example/android/fixedgridlayout/FixedGridLayoutTest.java
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

20 lines
508 B
Java

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);
}
}