NativeViewGroup
organized in a lineandroid :: NativeLinearLayout :: new
android $ NativeLinearLayout :: SELF
Type of this instance, automatically specialized in every classandroid $ NativeLinearLayout :: 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 :: Pointer :: defaultinit
core :: Object :: 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 :: NativeLinearLayout :: 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 in a line
extern class NativeLinearLayout in "Java" `{ android.widget.LinearLayout `}
super NativeViewGroup
new(context: NativeActivity) in "Java" `{ return new LinearLayout(context); `}
fun set_vertical in "Java" `{ self.setOrientation(LinearLayout.VERTICAL); `}
fun set_horizontal in "Java" `{ self.setOrientation(LinearLayout.HORIZONTAL); `}
redef fun add_view(view) in "Java"
`{
MarginLayoutParams params = new MarginLayoutParams(
LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT);
self.addView(view, params);
`}
redef fun new_global_ref import sys, Sys.jni_env `{
Sys sys = NativeLinearLayout_sys(self);
JNIEnv *env = Sys_jni_env(sys);
return (*env)->NewGlobalRef(env, self);
`}
end
lib/android/ui/native_ui.nit:79,1--101,3