comparison android/dw.cpp @ 2736:09775418c776

Android: Use "View" as the type for the viewList instead of LinearLayout. LinearLayout prevented the ability to pack a scrollbox.... since the type for scrollbox is ScrollView instead of LinearLayout. This change would also likely be necessary when we get a separate GroupBox class.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 16 Dec 2021 14:48:52 +0000
parents 850da6b24830
children ee1cfa7d645e
comparison
equal deleted inserted replaced
2735:970cbcdb68f9 2736:09775418c776
5392 { 5392 {
5393 // First get the class that contains the method you need to call 5393 // First get the class that contains the method you need to call
5394 jclass clazz = _dw_find_class(env, DW_CLASS_NAME); 5394 jclass clazz = _dw_find_class(env, DW_CLASS_NAME);
5395 // Get the method that you want to call 5395 // Get the method that you want to call
5396 jmethodID notebookPagePack = env->GetMethodID(clazz, "notebookPagePack", 5396 jmethodID notebookPagePack = env->GetMethodID(clazz, "notebookPagePack",
5397 "(Landroid/widget/RelativeLayout;JLandroid/widget/LinearLayout;)V"); 5397 "(Landroid/widget/RelativeLayout;JLandroid/view/View;)V");
5398 // Call the method on the object 5398 // Call the method on the object
5399 env->CallVoidMethod(_dw_obj, notebookPagePack, handle, (jlong)pageid, page); 5399 env->CallVoidMethod(_dw_obj, notebookPagePack, handle, (jlong)pageid, page);
5400 _dw_jni_check_exception(env); 5400 _dw_jni_check_exception(env);
5401 } 5401 }
5402 } 5402 }