Is there some kind of icon set that can be used in Android
that contains icons similar to the
GitHub Icons. For example, the events push, pull, fork, merge, comment ...
Or is this something that is only possible in a browser?
I was looking to use the UTF-8
encoding in a Textview
but it did not render properly. From what I read it's a proprietary set of UTF
character codes.
Just use the GitHub icons. Here's the assets folder for the official GitHub Android app including the TTF font. The license is pretty permissive.
Assuming you have a TextView
with the id text
and the TTF file in your assets folder, you can do something like this:
TextView text = (TextView) findViewById(R.id.text);
text.setText("Clone \uf04c");
text.setTypeface(Typeface.createFromAsset(getAssets(), "octicons-regular-webfont.ttf"));