[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
-
On the Components folder in the Xamarin.android project, right-click and select "get more components...".
-
Select the component kit used by the project to open the kit description for the component kit.
-
Click "add to app" to add the component kit to the target project.
-
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.
-
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>
-
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