速報APP / 教育 / OnJavaScript

OnJavaScript

價格:免費

更新日期:2012-09-20

檔案大小:60k

目前版本:2.3

版本需求:Android 2.1 以上版本

官方網站:http://www.fkmsoft.jp

Email:android@fkmsoft.jp

聯絡地址:東京都品川区南大井6-17-7

OnJavaScript(圖1)-速報App

Let's write JavaScript on your device!

This app is like JavaScript interpreter. You can write JavaScript and run!

from Ver 2.0, you can write JavaScript for Android!

You can use following object on your JavaScript.

widget object:

Button widget.createButton(id, text)

TextView widget.createTextView(id, text)

LinearLayout widget.createLinearLayout(id)

OnJavaScript(圖2)-速報App

-->create android widget

void widget.setOnClick(view, callback)

--> add OnClickEvent to view. in event, callback is called.

void widget.setText(TextView, text)

--> call TextView.setText(text)(you can pass Button, too)

void widget.addView(ViewGroup, view)

--> call ViewGroup.addView(view)

fwindow object:

void fwindow.addView(view)

--> add view to top layout, then view is shown on the screen.