0

The custom UI library does not work in the project

 2 years ago
source link: https://www.codesd.com/item/the-custom-ui-library-does-not-work-in-the-project.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

The custom UI library does not work in the project

advertisements

I have added a library in my project. However, when I use any of the views provided by the library, it gives me unbound prefix error. I have added the namespace as well in my xml file, still I am getting this error.

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:wingokuFlatUI="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
 >

     <com.wingoku.flatUI.WinGokuFlatButton

        android:id="@+id/wingoku3"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="wingoku"
        android:textColor="#fff"
        wingokuFlatUI:normalStateColor="#EB974E"
        wingokuFlatUI:pressedStateColor="#F2784B" />

</RelativeLayout>

UPDATE:

After making some changes, now I am getting this error

Multiple annotations found at this line:
    - error: No resource identifier found for attribute 'normalStateColor' in package
     'com.example.android_flatui_testing'
    - error: No resource identifier found for attribute 'pressedStateColor' in package
     'com.example.android_flatui_testing'

What changes can I make to the code in order to get rid of this error?

Regards


The namespace you are defining is flatUI and you are using flatui later. I think you should be using the same character casing in both the instances.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK