Back to project page fonticon.
The source code is released under:
Apache License
If you think the Android project fonticon listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.shamanland.fonticon.example; //from w ww. ja va 2 s .c o m import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; import android.view.View; import android.view.ViewGroup; import com.shamanland.fonticon.FontIconDrawable; public class GlowingIconsFragment extends ContentFragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle state) { View result = inflater.inflate(R.layout.f_glowing, container, false); return result; } @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.glowing, menu); menu.findItem(R.id.action_camera).setIcon(FontIconDrawable.inflate(getContext(), R.xml.ic_ab_camera)); menu.findItem(R.id.action_settings).setIcon(FontIconDrawable.inflate(getContext(), R.xml.ic_ab_settings)); } }