neopixl / pixlui Goto Github PK
View Code? Open in Web Editor NEWCustom visual components
License: Other
Custom visual components
License: Other
Is it possible for you to version your releases? I use version #'s in commit messages for my code, as well as for when I update the app description on the Play store, and it would be easier to mark down "updated pixelUI to 1.3.1" instead of "updated pixelUI to git commit 1a20sa3"
:)
Thanks!
Is there any way for me to declare a global style like:
<style name="DefaultEditText">
<item name="android:textSize">16sp</item>
<item name="android:textColor">@color/menu_dark_text</item>
<item name="android:textColorHint">@color/menu_light_text</item>
<item name="typeface">RobotoCondensed-Light.ttf</item>
</style>
To attach to my views like this:
<com.neopixl.pixlui.components.edittext.EditText
android:id="@+id/et_list_name"
style="@style/DefaultEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="16dp"
android:hint="@string/new_list_hint"
android:inputType="textCapWords|textAutoCorrect" />
That would be an awesome feature and would really make this library a lot cleaner to use!
Hello guys, I'm using PixIUI because it allows me to use different fonts in my app. Do you guys have any plan to add text justification to your custom textview? I'm in need of justified texts but so for I found libraries that require me to use their custom textView but with that I lose the custom font option.
jitpack is not working on 1.0.5. Can you fix that?
Hello,
It seems that your library is not working on jetpack.io so the only way to use it is to add the .jar to a project but this way it is impossible to define a style with custom font. Could you add it to jetpack please ?
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.
is that possible to adapte this lib that will make the capability of font loading in style xml possible?
It seems not too working on changing on the line height. Are there any fix for that?
Hey, any plans on supporting AutoCompleteTextView component?
Is it possible to use a string resource as the typeface?
For example instead of this:
pixlui:typeface="GillSansStd BoldCondensed.otf"
I'd prefer to do this:
pixlui:typeface="@string/font1"
and somewhere else in my XML value resource files:
<string name="font1">GillSansStd BoldCondensed.otf</string>
Currently it seems that if I try to do this, the typeface doesn't get set at all - I get the following message: Could not get typeface: native typeface cannot be made with name: @string/font1
.
Is there any chance of me achieving the effect I need?
I am trying out similar to sample project:
<com.neopixl.pixlui.components.textview.TextView
android:id="@+id/loadingtext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/loadingtext"
android:textColor="@drawable/text_selector_listview"
android:paddingTop="3dp"
android:layout_gravity="center"
pixlui:clearclipboardcontent="true"
pixlui:copyandpaste="false"
style="@style/TextRoboto.t1"
XML shows: Asset not found: fonts/Roboto-Regular.ttf
I can confirm the file is there in assets/fonts folder (Assets folder is in main Folder and not inside res folder)
What could be wrong?
Could you please describe in documentation how to make all caps?
We're using PixlUI HEAVILY in our app in order to easily use the new Roboto supporting 4.0+ I've written a blog post and given the library a shoutout (also a demo video) that you can check out here: http://www.getflow.com/blog/2014/10/huge-improvements-to-the-flow-android-app/
We'd love to be a featured app in this library! please let me know and I'll send you over an icon.
Play Store link: https://play.google.com/store/apps/details?id=com.metalab.flow
EditText is not working as expected with android:inputType="textPassword"
I have tested on the line spacing on the component with
android:lineSpacingMultiplier="0.5"
but it doesnt work.
Added this library to my build.gradle file using the latest version number from the changelog as documented in README:
repositories {
maven {
url "https://jitpack.io"
}
}
dependencies {
compile 'com.google.android.gms:play-services:7.5.0'
compile 'com.github.neopixl:PixlUI:1.0.5'
compile 'com.android.support:appcompat-v7:22.2.1'
}
Build fails:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
at com.android.dx.command.dexer.Main.run(Main.java:246)
at com.android.dx.command.dexer.Main.main(Main.java:215)
at com.android.dx.command.Main.main(Main.java:106)
:app:dexDebug FAILED
FAILURE: Build failed with an exception.
Updated to:
repositories {
maven {
url "https://jitpack.io"
}
}
dependencies {
compile 'com.google.android.gms:play-services:7.5.0'
compile 'com.github.neopixl:PixlUI:1.0.6'
compile 'com.android.support:appcompat-v7:22.2.1'
}
Build completes.
Could the README changelog please be updated to include versions as they are created to save people spending hours trying to debug a problem that's already been fixed?
Hi !
I'm a big fan of the typeface attribute. Make me win a lot of time.
On a specific TextView I've some kind of side effect.
Printed text is "..." while text attribute is set to a word (in this case, "Category")
See XML :
<com.neopixl.pixlui.components.textview.TextView
android:id="@+id/categorie"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="3dp"
android:paddingTop="3dp"
android:paddingLeft="25dp"
android:background="@color/grey_dark"
android:text="Category"
android:textStyle="bold"
android:textColor="@color/white"
pixlui:typeface="archivoblackregular.ttf"
android:textAllCaps="true"
/>
When typeface is removed, the bug doesn't appear. It might be due to onMeasure not being properly implemented.
What do you think about that ?
PixlUIfaceManager.INSTANCE holds reference of the first activity using the widgets, and causing memory leak. (Activity is not released properly)
There are 2 options to address this issue:
Which one would you prefer?
how do we set the font to be 9px? does it render out as 9px in dp?
I couldn't apply different colors to different parts of the texts to the TextView component.
I tried the different methods mentioned here: http://stackoverflow.com/questions/6094315/single-textview-with-two-different-colored-text
If I load Typeface manually then all solutions works, so it's not a problem from Android.
Hi all !
If you want to be in readme file, please post Application Name + URL
Thanks !
Thought about supporting RadioButton aswell? :)
Are there any text spacing supported from the textview? Is that possible to have space between each letter?
It would be helpful to just add the dependency from Maven.
Hi, I'm using your TextViews mostly for the ease of applying custom fonts - they work great :)
However, I've got a small problem now: how can I properly ellipsize my text? I put a long string into a TextView, e.g. "Twig 0000000000000000000000000000" and whatever I've tried, I'd always get "Twig..." - regardless of the type of ellipsizing I specified in the XML code.
Is that the intended behaviour or am I missing something? Maybe I should be using the EllipsizingTextView class?
Just in case, here's my code for the TextView:
<com.neopixl.pixlui.components.textview.TextView
android:id="@+id/listview_item_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginRight="10dp"
android:layout_marginTop="20dp"
android:layout_toRightOf="@+id/listview_item_thumbnail"
android:maxLines="1"
android:textAllCaps="true"
android:textColor="@android:color/black"
android:textSize="30sp"
pixlui:typeface="DIN Condensed Bold.otf" />
I am getting below error
java.lang.ClassFormatError: Code attribute in native or abstract methods in class file com/neopixl/pixlui/intern/PixlUIfaceManager$DrawCallback
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.