AndroidStudio-Parcelable automatically generates code plug-ins for installation and use. androidstudio

Source: Internet
Author: User

AndroidStudio-Parcelable automatically generates code plug-ins for installation and use. androidstudio

Here we use the mac version of AndroidStudio
1. execute the combination shortcut key command + ",", Open the AS preference settings page, find the plugin option, enter Parcelable search, and click install plugin on the right, after installation, you will be prompted to restart the

2. After the plug-in is installed, you can use it to create a Person class. For example, there are four attributes: username, password, age, and isGay.

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

3. Run the shortcut key Command + N, as shown in the following figure. Select the last one.

4. Click OK Next, for example:

5. The plug-in will automatically generate the following code, which is very efficient, as shown in the figure below:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.