PixlUI


Source link: https://github.com/neopixl/PixlUI

PixlUI

Provide few methods for visual elements.

CheckBox:

  • Custom font
  • Text All caps (works on all API version)

Button:

  • Custom font
  • Text All caps (works on all API version)

EditText:

  • Custom font
  • Copy/Cut/Paste (enable/disable) (works on all API version)
  • Cancel clipboard content (works on all API version)
  • Text All caps (works on all API version) - (in progress)
  • Focus listener
  • Batch listener (replace TextWatcher, wich that you can intercept DEL touch on all API)

AutoCompleteEditText:

  • Custom font
  • Copy/Cut/Paste (enable/disable) (works on all API version)
  • Cancel clipboard content (works on all API version)
  • Text All caps (works on all API version) - (in progress)
  • Focus listener
  • Batch listener (replace TextWatcher, wich that you can intercept DEL touch on all API)

Image View:

  • Alpha (works on all API version)

RelativeLayout:

  • Alpha (works on all API version)

TextView:

  • Contains a fix to do proper ellipsizing
  • Custom font
  • Text All caps (works on all API version)

Screenshot

Gradle Setup

Compile with one line easy code!

repositories {

  maven {

url "https://jitpack.io"
  
}
 
}
 

Compile in the build.gradle file. for X.X.X please refer to the change log.

dependencies{

compile 'com.github.neopixl:PixlUI:vX.X.X.' 
}

Maven Setup

Add Repository

<repository>

<id>jitpack.io</id>

<url>https://jitpack.io</url>  </repository> 

Add Dependency:

 <dependency>

<groupId>com.github.neopixl</groupId>

<artifactId>PixlUI</artifactId>

<version>v1.0.5</version>  </dependency>

How use it ?

  1. Add your custom fonts in /assets/fonts/

  2. Define your fonts in styles.xml

 <style name="AppTheme.TextGearedSlab">

<item name="typeface">GearedSlab.ttf</item>
  </style>

 <style name="AppTheme.TextGearedSlab.t1">

<item name="android:textSize">12sp</item>
  </style>

 <style name="AppTheme.TextGearedSlab.t2">

<item name="android:textSize">14sp</item>
  </style>
  1. Use it in XML:
<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" >

<np.TextView

style="@style/AppTheme.TextGearedSlab.t1"

android:id="@+id/textView1"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="@string/hello_world"

pixlui:copyandpaste="false"

pixlui:clearclipboardcontent="true"/> </RelativeLayout>

ChangeLog

1.1.2

  • closes #31 (Memory Leak: Activity Leak on PixlUIfaceManager.INSTANCE)
  • Update buildTools (25.0.3) and compileSdkVersion / targetSdkVersion = 25.

1.1

  • Android studio 1.5.1 Support
  • Android Layout Preview support (on API >=23 preview)
  • CheckedTextView added
  • Chronometer added
  • ExtractEditText added
  • Switch added
  • Refactor
  • Fixed some bugs
  • Find easy accessor to our components: - Before: <com.neopixl.pixlui.components.textview.TextView - Now: <np.TextView

1.0.6

  • Upgraded to last build tools
  • EllipsizingTextView is now removed from com.neopixl.pixlui.components.textview

1.0.5a (Prerelease)

  • Temp release to fix jitpack.io build
  • include a gradle'ized versin of PixlUI (now a library project)

1.0.5

  • Added custom RadioButton ( Custom font, Text all caps)

1.0.4

  • Added RelativeLayoutAnimator ( VISIBLE/GONE/INVISIBLE transition animation)
  • Added LinearLayoutAnimator ( VISIBLE/GONE/INVISIBLE transition animation)
  • Added custom AutoCompleteEditText
  • Added custom AutoResizeTextView ( in progress)

1.0.3

  • Added custom CheckBox ( Custom font, Text all caps)

1.0.2

  • Added method in custom EditText ( Autofocus Listener, Hide/Show Keyboard)

1.0.1

  • Added method in custom TextView ( Text all caps) - for old api version
  • Added method in custom EditText ( Text all caps) - for old api version
  • Added method in custom Button ( Text all caps) - for old api version
  • Fix NPE in Batch Listener
  • Added custom RelativeLayout ( Alpha) - for old api version

1.0.0

  • Added custom TextView ( Custom font)
  • Added custom EditText ( Custom font, Focus Listener, Batch Listener)
  • Added custom Button ( Custom font)
  • Fix many crash

Application using PixlUI

[Flow] ( https://play.google.com/store/apps/details?id=com.metalab.flow) - W-Zup - FLASHiZ - MeeTincS - Wort.lu -
Hypebeast - iBeezi- RootCoinExplorer

Donation

Copyright

Copyright 2014-2016 Neopixl - Olivier Demolliens  Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this  file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software distributed under  the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
ANY KIND, either express or implied. See the License for the specific language governing  permissions and limitations under the License. 

Resources

A small library replicating the new dialogs in Android L.

Just as there was Retroweaver et al. for running Java 5 code with generics on Java 1.4, Retrolambda lets you run Java 8 code with lambda expressions on Java 7 or lower. It does this by transforming your Java 8 compiled bytecode so that it can run on a Java 7 runtime. After the transformation they are just a bunch of normal .class files, without adding any runtime dependencies.

ViewServer is a simple class you can use in your Android application to use the HierarchyViewer inspection tool.

ViewServer requires the Android SDK r12 or higher. http://developer.android.com/sdk/index.html

Extended Javassist for Android. DEX (ODEX) file can be made from ".class" file that is generated by Javassist.

Simple binary instrumentation toolkit for Android ARM + Thumb.

Instrumentation is based on library injection and hooking function entry points (in-line hooking).

The toolkit consists of two main components the hijack tool and the base library.

ddi

Simple and easy to use toolkit for dynamic instrumentation of Dalvik code. Instrumentation is based on library injection and hooking method entry points (in-line hooking). The actual instrumentation code is written using the JNI interface.

The DDI further supports loading additional dex classes into a process. This enables instrumentation code to be partially written in Java and thus simplifies interacting with the instrumented process and the Android framework.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes