Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module library wrapping #22

Open
jjhesk opened this issue Mar 25, 2015 · 3 comments
Open

module library wrapping #22

jjhesk opened this issue Mar 25, 2015 · 3 comments

Comments

@jjhesk
Copy link
Contributor

jjhesk commented Mar 25, 2015

This is a really good library and I would like to ask if it is possible to use pixlui as the secondary library that wrapped inside from another library. I have an ui module I would like to produce and it will be using xml attribute declaration as example:

<xxx.my.component 
android:layout_width="100dp"
android:layout_height="100dp">

</xxx.my.component>

is this possible to declare this in my custom module that takes my attribute element names into pixlui xml declaration elements directly?

<xxx.my.component 
        app:iconColor="#FFFFFF"
        app:materialTabsPrimaryColor="YOUR_PRIMARY_COLOR"
        app:accentColor="YOUR_ACCENT_COLOR"

app:typeface="@string/font1"     //given that typeface is declared from pixlui

android:layout_width="100dp"
android:layout_height="100dp">

</xxx.my.component>

my question is, what does it need to be done in order to achieve this.

@odemolliens
Copy link
Contributor

Do you have try to extend your components to our custom TextView for example?
And add xmlns:pixlui="http://schemas.android.com/apk/com.neopixl.pixlui" ?

@odemolliens
Copy link
Contributor

works?

@jjhesk
Copy link
Contributor Author

jjhesk commented Mar 31, 2015

sorry for the late reply, I haven't got a chance to try it yet. I will let you to see the result once i got the time to touch it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants