Coder Social home page Coder Social logo

Comments (8)

mikepenz avatar mikepenz commented on May 21, 2024

@carmelo-ruota just tried on my Nexus 5. The sample activity shows the icon for the IconicsButton. Not if you try to style it via code.

Any additional information?

from android-iconics.

carmelo-ruota avatar carmelo-ruota commented on May 21, 2024

The same code:

    <IconicsButton
                    android:id="@+id/buttonAdd"
                    android:layout_height="36dp"
                    android:layout_width="36dp"
                    android:text="{faw-plus}"/>

Works fine with a fragment and shows nothing in Activity.

from android-iconics.

mikepenz avatar mikepenz commented on May 21, 2024

@carmelo-ruota first please update to the latest version. and then make sure you don't do different things with this button between fragment and activity

from android-iconics.

carmelo-ruota avatar carmelo-ruota commented on May 21, 2024

Just update to latest version and still not works. The only difference between fragment and activity is that in fragment IconicsButton is contained in TableRow, while in Activity IconicsButton is inside a LinearLayout (Horizontal):

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content" 
        android:gravity="center_vertical"  
        android:orientation="horizontal">
        <it.myapp.view.MaterialSpinner
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/spinnerProprietario"
            app:ms_floatingLabelText="Proprietario"
            android:layout_weight="1"/>


        <com.mikepenz.iconics.view.IconicsButton
            android:id="@+id/buttonAddProprietario"
            android:layout_width="36dp"
            android:layout_height="36dp"
            android:text="{faw-plus}"/>
        <com.mikepenz.iconics.view.IconicsButton
            android:id="@+id/buttonEditProprietario"
            android:layout_width="36dp"
            android:layout_height="36dp"
            android:text="{gmd-create}"/>

    </LinearLayout>

from android-iconics.

mikepenz avatar mikepenz commented on May 21, 2024

Do you use any font modifying library?

from android-iconics.

carmelo-ruota avatar carmelo-ruota commented on May 21, 2024

Yes I do! This:
https://github.com/chrisjenx/Calligraphy

from android-iconics.

mikepenz avatar mikepenz commented on May 21, 2024

@carmelo-ruota i assume this one overwrites the typeface for the view. try to disable it, to check my assumption.

from android-iconics.

carmelo-ruota avatar carmelo-ruota commented on May 21, 2024

Now, without Calligraphy, seem it works fine! :-)

from android-iconics.

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.