# A `NativeViewGroup` organized as a grid
extern class NativeGridLayout in "Java" `{ android.widget.GridLayout `}
super NativeViewGroup
new(context: NativeActivity) in "Java" `{ return new android.widget.GridLayout(context); `}
fun (val: Int) in "Java" `{ self.setRowCount((int)val); `}
fun (val: Int) in "Java" `{ self.setColumnCount((int)val); `}
redef fun add_view(view) in "Java" `{ self.addView(view); `}
redef fun new_global_ref import sys, Sys.jni_env `{
Sys sys = NativeGridLayout_sys(self);
JNIEnv *env = Sys_jni_env(sys);
return (*env)->NewGlobalRef(env, self);
`}
end
lib/android/ui/native_ui.nit:103,1--120,3