Generate 2 file (java & xml), Goto xml Design mode, will show the UI graphic
Goto another java file (use design mode) that you want to add UI component, click system->choose component, input widget name, then you can put it on the edit area
Create a class and Generate constructor using fields
這樣產生了一個contact的類別
產生一個UiBinder
對應的java class,產生相關constructor, setter, getter,新增一個Contact
在contact的setter中加入代碼
在目標class中加入UiBinder的class
修改class中相關代碼以產生contact變數內容
跑起來
沒有留言:
張貼留言