I am trying to use PixlUI to implement custom fonts in my Android application using Xamarin. I have completed the following steps:
- Added a new Android binding for Java Java to my main solution.
- Added pixlui-1-0-5.jar to the jars folder
- In the properties for pixlui-1-0-5.jar, I set "include in deploy" to true
- Tested my new Java Java bindings library and it works fine without errors.
- In the main project, I added my font to the assets / fonts folder
- In the links, I added the pixlUI binding library
In my main.axml, I posted this code:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:pixlui="http://schemas.android.com/apk/com.neopixl.pixlui"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:screenOrientation="portrait">
<com.neopixl.pixlui.components.textview.TextView
android:id="@+id/textViewpixl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world"
pixlui:copyandpaste="false"
pixlui:clearclipboardcontent="true"
pixlui:typeface="Lato-Light.ttf"
android:layout_below="@id/btnRebate"
/>
</RelativeLayout>
, 10 , " ..." cs0102 pixlUI.
Ex:.../pixlUI/obj/Debug/generated/src/Com.Neopixl.Pixlui.Components.Edittext.IEditTextBatchListener.cs(59,59): CS0102: Com.Neopixl.Pixlui.Components.Edittext.AddNewCharEventArgs' already contains a definition for p0 '(CS0102 ) (pixlUI)
, , , pixlUI - . - , ?