Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Bootstrap not displaying icons in button

I implemented Android Bootstrap library: https://github.com/Bearded-Hen/Android-Bootstrap

Everything works fine, but icons in buttons are not displayed.

I add font-awesome file into asset folder, but still without successful result.

How can be this solved?

Thanks for any help.

like image 694
redrom Avatar asked Feb 13 '26 21:02

redrom


1 Answers

Try what it worked for me, make sure that "android-support-v4.jar" file in libs folder (assuming that you're working in eclipse) is the same copy in AndroidBootstrap library project and your project. This might only partially solve your problem, you might have problems with the icon not displaying when you change orientation (landscape/portrait) and there might be better solution, but this is my quick fix:

in OnResume add:

if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE){

        bbYourButton1.setLeftIcon("fa-heart");
        bbYourButton2.setRightIcon("fa-twitter");
    }
like image 83
ViksaaSkool Avatar answered Feb 16 '26 11:02

ViksaaSkool