Hi,
I have a clean project created in Android Studio with DroidIcon added via Gradle. Using the example layout shown below the icon appears perfectly on a Nexus 5 running Lollipop, and a Nexus 5 on OS 21 .. but on a Galaxy S1 (yes, 1 :-p) running OS 18, no icon is shown, just the circular background .. the same happens on a Nexus 7. I don't think it's an OS issue, I get the feeling it's more to do with screen density or something because if I go to this method
private void updateTextSize(Rect viewBounds)
.. and edit out the second setTextSize, which is after the delta is applied, the icons appear on all devices .. far too big and cut off, but they do appear, so the missing icon might not be to do with the icon not displaying at all, just that it displays too small after the delta is applied?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:droidicon="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context=".MainActivity$PlaceholderFragment">
<com.thedazzler.droidicon.badges.DroidiconBadge
android:layout_width="wrap_content"
android:layout_height="wrap_content"
droidicon:db_bg_color="@android:color/black"
droidicon:db_icon_color="@android:color/white"
droidicon:db_icon="fa-user"
/>
</RelativeLayout>
Any ideas on how to fix this? I'm happy to give it a go myself if you point me in the right direction!
Thanks,
Steven