Comments (2)
@loeschg This is a minor bug that is being worked on. For your example, just use 2dp or greater.
from droidicon.
the layout:
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="40dp"
android:orientation="horizontal"
android:id="@+id/chose_city_button"
android:clickable="true"
android:background="@drawable/selector_city_chosen_btn_bg"
android:layout_alignParentTop="true"
>
<com.thedazzler.droidicon.badges.DroidiconBadge
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:minWidth="20dp"
android:minHeight="20dp"
droidicon:db_icon="fa-map-marker"
droidicon:db_size="20dp"
droidicon:db_icon_padding="4dp"
droidicon:db_icon_color="@color/LightGrey"
android:layout_marginLeft="10dp"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:textSize="16sp"
android:text="广州"
android:gravity="center"
android:textAlignment="center"
android:paddingRight="10dp"
/>
</LinearLayout>
the icon won't dispaly on the 480x800 160dpi‘s emulator device, but display on the 720x1280 240dpi and 1080x1920 320dpi.
from droidicon.
Related Issues (20)
- Custom icon doesn't show HOT 2
- Question: ImageView.setImageDrawable possible? HOT 4
- No icon shown on certain os versions HOT 2
- set custom icon font size? HOT 2
- Quick question HOT 2
- Change DroidiconBadge background programmatically HOT 1
- work with drawables & add invert-method/inverted-style HOT 3
- Manifest merger failed - mipmap/ic_launcher HOT 2
- Instagram Badge HOT 2
- Creating a icon circular background programatically. HOT 8
- Attribute "rippleColor" has already been defined HOT 1
- adding icons to buttons and menues HOT 1
- Instagram icon appears very small HOT 1
- set gravity to icons
- how to get icon text HOT 2
- NullPointerException on updateTextSize HOT 9
- Icons not centered in Android Nougat (24) HOT 2
- Failed to resolve: com.github.theDazzler:droidicon:x.y.z
- droidicon noob question HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from droidicon.