How can I get PixlUI for custom Android fonts to work?

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 - . - , ?

+1
1

, pixelui.jar EmbeddedJar.

Metadata.xml:

<!-- Bindings added to rename event parameters  -->
<attr path="/api/package[@name='com.neopixl.pixlui.components.edittext']/interface[@name='EditTextBatchListener']/method[@name='addNewChar']/parameter[@name='p0']" name="name">editText</attr>
<attr path="/api/package[@name='com.neopixl.pixlui.components.edittext']/interface[@name='EditTextBatchListener']/method[@name='deleteKeyboardButton']/parameter[@name='p0']" name="name">editText</attr>
<attr path="/api/package[@name='com.neopixl.pixlui.components.edittext']/interface[@name='EditTextBatchListener']/method[@name='deleteKeyboardButton']/parameter[@name='p1']" name="name">emptyText</attr>

<attr path="/api/package[@name='com.neopixl.pixlui.components.edittext']/interface[@name='EditTextFocusListener']/method[@name='loseFocus']/parameter[@name='p0']" name="name">editText</attr>
<attr path="/api/package[@name='com.neopixl.pixlui.components.edittext']/interface[@name='EditTextFocusListener']/method[@name='requestFocus']/parameter[@name='p0']" name="name">editText</attr>

, Android.

:

Screenshot of PixlUI on Xamarin

+2

All Articles