NativeViewGroup
organized as a gridandroid :: NativeGridLayout :: new
android $ NativeGridLayout :: SELF
Type of this instance, automatically specialized in every classandroid $ NativeGridLayout :: new_global_ref
Returns a global reference to the Java object behind this referenceandroid :: NativeViewGroup :: add_view
core :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
core :: Pointer :: defaultinit
android :: NativeView :: defaultinit
jvm :: JavaObject :: defaultinit
android :: NativeView :: enabled
android :: NativeView :: enabled=
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
android :: NativeView :: minimum_height=
android :: NativeView :: minimum_width=
android :: NativeGridLayout :: new
jvm :: JavaObject :: new_global_ref
Returns a global reference to the Java object behind this referencecore :: Object :: output_class_name
Display class name on stdout (debug only).jvm :: JavaObject :: pop_from_local_frame
Pops the current local reference frame and return a valid reference to selfjvm :: JavaObject :: pop_from_local_frame_with_env
Java implementation ofpop_from_local_frame
jvm :: JavaObject :: to_java_string
JavaString
representation of self
using Java's toString
# 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 row_count=(val: Int) in "Java" `{ self.setRowCount((int)val); `}
fun column_count=(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