Git Product home page Git Product logo

iconview's Introduction

IconView

IconView is an extension of Android TextView class which provides support for a custom icon font

here's a screenshot of the simple example application included screenshot

Usage

Including in your project

IconView is presented as an Android library project. It is not a standalone JAR because fonts are stored as a raw resources.

You can include this project by referencing it as a library project in Eclipse or ant.

add the following line to the root element of your layout

xmlns:iconview="http://schemas.android.com/apk/res-auto"

Sample usage

Layout:

<be.webelite.iconview.IconView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    iconview:icon_name="entypo_search"
    android:textSize="25dp"/>

Available fonts

the entypo font is loaded out of the box, you can add your own font by creating a package at http://icomoon.io the reason for not using the icofonts as supplied by ex. www.entypo.com is that the have unicode values used by the fonts are too long and not supported by android.

##creating your own font pack

  • go to icomoon.io
  • create a fontpack
  • download the font pack
  • include the ttf file in res/raw
  • replace enum types in res/values/attr.xml with the ones in the style.css given to you by icomoon.io (some manual search&replace action will help you).
  • ?????
  • PROFIT

License

Note that all fonts have their own license.

iconview's People

Contributors

marsvard avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.