AndroidStudio-Parcelable自動產生代碼外掛程式安裝和使用

來源:互聯網
上載者:User

AndroidStudio-Parcelable自動產生代碼外掛程式安裝和使用

這裡用的mac版本的AndroidStudio
1. 執行組合快速鍵command+”,”,開啟AS喜好設定頁面,找到plugin選項,輸入Parcelable搜尋,搜尋出來的第一個五顆星的就是,點擊右邊的install plugin,等裝完後會提示你重啟as

2.等外掛程式裝完了就可以使用了,隨便建立一個Person類,例如有四個屬性username,password,age,isGay

/** * Created by hailonghan on 15/5/28. */public class Person {    private String username;    private String password;    private int age;    private boolean isGay;}

3.執行快速鍵Command+N,出現所示,選擇最後一個

4.再下一步直接點擊OK,如:

5.外掛程式會自動產生如下的代碼,非常的給力高效,見圖為證:

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.