Comments (8)
@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.
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.
@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.
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.
Do you use any font modifying library?
from android-iconics.
Yes I do! This:
https://github.com/chrisjenx/Calligraphy
from android-iconics.
@carmelo-ruota i assume this one overwrites the typeface for the view. try to disable it, to check my assumption.
from android-iconics.
Now, without Calligraphy, seem it works fine! :-)
from android-iconics.
Related Issues (20)
- Update playstore App HOT 1
- Some icons are incorrectly rendered with `IconicsTextView` + XML HOT 13
- Update Community Material to latest version HOT 7
- Using custom fonts, icons can be displayed in Java code, but not in XML HOT 7
- Shadows with Compose HOT 1
- Disabling AppStartup silently breaks the library HOT 3
- com.mikepenz.iconics.view.IconicsImageView won't show image HOT 2
- Update Phosphor icon set to latest version HOT 1
- Custom Font library import error: Expecting member declaration HOT 2
- Update Google Material icons HOT 11
- How to make icons take on highlighted color of MaterialDrawerItem in XML? HOT 3
- Upgrade from 3.x to 5.x HOT 2
- java.lang.ClassNotFoundException: Didn't find class "com.mikepenz.iconics.typeface.IconicsInitializer" HOT 4
- Wrong icon name: faw-android
- Compose equivalent of IconicsTextView HOT 1
- Can I get source code for the iconpack creator tool? HOT 4
- Interface IIcon is unstable. HOT 12
- faw_bluetooth is missing
- Compose Image is ignoring `size` modifier HOT 1
- Document how to use "aar" artifacts with version catalogs 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 android-iconics.