Use Listview and ListPicker

Now we will try another component from app inventor 2. There are listview and listpicker. Listview is like combo box in J2SE or spinner in app inventor 2. the function of listview is like spinner but it is not open another screen, it just in the same screen. if you want to catch a value from listview, you can get and view that in label. Different with spinner, spinner’s action can make basic interface is lock after the spinner is choose. About listpicker, when listpicker is click, there is a value that can be choosed in listpicker‘s screen. After choosed value, it will return to first listpicker button, and the value will be filled in that listpicker button. Here the example :

This slideshow requires JavaScript.

Here the block code :

  1. ListView

  2. ListPicker
    listpickerBlock

    ListPicker Block

    listpickerBlockFinal

    Final Block ListPicker

  3. Slider
    sliderBlock

    Slider Block

    sliderBlockFinal

    Final Slider Block

Try Spinner in app inventor 2

now, in this page… we will talk about spinner. in java dekstop (J2SE), spinner like combo box, the value answer can be choosed. After choose the answer, the value will be catched in the variable of spinner. In the previous page, we talk about if condition, the preview shows a view component especially spinner. so, in this page, we will view again that image to reader and add a new information properties of spinner. here the preview :

Login_first

in the right side of screen1, there is a component’s widget that fill an structure of component and a spinner componen can view a properties if you click the spinner’s component (it shows in properties’s widget). The spinner value can fill in the “ElementsFromString” textfield. The value must be spaced with coma. In “Prompt” fill, it just give an information of spinner like header name of spinner.

spinner

Result in emulator :

spinnerEm

Here the “Block” code :

spinnerBlock

App Inventor 2 : If Condition

if condition usually use to compare two or more answer that are suitable or not. this condition produces an answer true or false value.  for an example :

Login_first

here the example block code for if condition:

login_block

In emulator there is a spinner for choose a status, here the block code combine with if condition :

fixSpin

File Referensi Pemrograman J2SE (Desktop)

Pada posting ini menyajikan file-file referensi pemrograman java dekstop (j2se) yang bisa digunakan sebagai bahan ajar, latihan, dan membuat program sederhana ataupun advanced. Adapun materi-materi yang disajikan sebagai berikut :

1. Pengenalan Pemrograman Komputer

Bab01-Pengenalan Pemrograman Komputer

2. Pengenalan Bahasa Java

Bab02-Pengenalan Bahasa Java

3. Mengenali Lingkup Pemrograman Anda

Bab03-Mengenali Lingkup Pemrograman

4. Dasar-dasar pemrograman

Bab04-Dasar-dasar Pemrograman

5. Mendapatkan Input dari Keyboard

Bab05-Mendapatkan Input Dari Keyboard

6. Struktur Kontrol

Bab06-Striktur Kontrol

7. Java Array

Bab07-Java Array

8. Argumen dari Command-Line

Bab08-Argumen dari Command-Line

9. Bekerja Dengan Java Class

Bab09-Bekerja Dengan Java Class Library

10. Membuat Class Sendiri

Bab10-Membuat class sendiri

11. Pewarisan, Polimorfisme, dan Interface

Bab11-Pewarisan, Polimorfisme, dan interface

12. Dasar Exception Handling

Bab12-Dasar Exception Handling

Untuk password pdf bisa didownload disini :

password pdf

Pro Android Games

If you are a developer from java mobile game (J2ME), you may interest with this tutorial. Yes….this tutorial may you to develop game in another program that is android. If you already expert in game programmer (mobile programmer),

Here the cover :

here the link

Continue reading