[xamarin.android] using the component kit in a xamarin.android project

Source: Internet
Author: User

[xamarin.android] using the component kit in the Xamarin.android project preface

In Xamarin, you can package your own project as a component suite to provide developers with the tools to use. This article describes how to download and install the Component suite, allowing developers to use the various Component suites in the Xamarin Component store to keep a record of themselves and to help developers in need.

Use
  1. On the Components folder in the Xamarin.android project, right-click and select "get more components...".

  2. Select the component kit used by the project to open the kit description for the component kit.

  3. Click "add to app" to add the component kit to the target project.

  4. On the newly installed Component kit in the Components folder, right-click and select "edit component..." to open the kit description for the Component suite.

  5. The corresponding program code is added to the Xamarin.android project according to the usage method described in the kit instructions.

    <?xml version= "1.0" encoding= "Utf-8"? ><linearlayout xmlns:android= "http://schemas.android.com/apk/res/ Android "xmlns:flatui=" Http://schemas.android.com/apk/res-auto "android:orientation=" vertical "android:layout_wid Th= "Fill_parent" android:layout_height= "fill_parent" android:padding= "20DP" > <flatui.flatedittext androi D:id= "@+id/edittextflat2" android:layout_width= "match_parent" android:layout_height= "Wrap_content" flatui:f ieldstyle= "box" flatui:cornerradius= "3dip" android:layout_margin= "10DP" android:text= "Clark"/> <flat Ui. Flatbutton android:id= "@+id/buttonblock" android:layout_width= "wrap_content" android:layout_height= "Wrap_co Ntent "android:layout_margin=" 10DP "android:text=" click Me "flatui:textappearance=" None "/> <flatui. Flattogglebutton android:id= "@+id/toggleuncheckedenabled" android:layout_width= "Wrap_content" android:layou T_height= "Wrap_content" andRoid:layout_margin= "10DP" flatui:size= "20dip"/></linearlayout> 
  6. By executing the Xamarin.android project, you can see the results of the component suite working in the project.

[xamarin.android] using the component kit in a xamarin.android project

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.