Giter Site home page Giter Site logo

Comments (2)

theDazzler avatar theDazzler commented on August 18, 2024

@loeschg This is a minor bug that is being worked on. For your example, just use 2dp or greater.

from droidicon.

MioMioReimu avatar MioMioReimu commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.