qtiuto / lua-for-android

A high-performance bridge for lua and java or c in Android with mutil-thread and almost all java features supported
BSD 3-Clause "New" or "Revised" License
111 stars 26 forks source link

How to import/use static inner class #12

Open amsitlab opened 2 years ago

amsitlab commented 2 years ago

How to import or use static inner class like android.view.ViewGroup.LayoutParams

I have try:

import "android.view.ViewGroup.LayoutParams"
-- showing error like "no static field LayoutParams"

import "android.view.ViewGroup$LayoutParams"
-- showing error like "error field ... ViewGroup$LayoutParams"

import "android.view.ViewGroup"
print(ViewGroup.LayoutParams)
-- showing error like "no static field LayoutParams"
amsitlab commented 2 years ago

Screenshot_20210928-103614 Also class function isn't defined