StNekroman

Results 17 comments of StNekroman

BTW, there is iconics library from Mike Penz, which do like to user as inner content of button. It supports material icons and a lot of other icon libs instead...

I need ViewGroup with rounded corners in bootstrap-style colors. Currently I can achieve this only using my own custom view. But that would be nice to have BootstrapViewGroup in this...

I'm looking on https://github.com/binaryfork/Spanny at the moment. But that would be great to have spannable elements inside this Bootstrap project.

I forgot to add clarification: [#hashtag] - it's BootstrapLabel. So whole text [#hashtag] blah blah blah....\nsecond line, blah blah... is content of some TextView. But I cannot insert BootstrapLabel as...

In Spanny (https://github.com/binaryfork/Spanny) take a look on CustomBackgroundSpan. That's what I need, but with bootstrap background colors.

I ended up with my own impl Span (like CustomBackgroundSpan) which uses BootstrapBrand styling. I'll post here my solution later.

That's what I need: ![device-2017-01-03-212645](https://cloud.githubusercontent.com/assets/12896163/21620123/836813dc-d1fb-11e6-8491-7472cc389584.png)

I found two solutions: **Solution I:** ``` public class BootstrapSpan extends CharacterStyle implements LineBackgroundSpan, UpdateAppearance { private DefaultBootstrapSize bootstrapSize; private final BootstrapBrand bootstrapBrand; private final Context context; private final float...

Solution 2 is based on ReplacementSpan. It's good in all cases becuase provides full controll over drawing and measing the size of span. But I faced later with strange bug:...

Additionaly, > return (float) (DimenUtils.dpToPixels(mPaint.measureText(text))); is not correct, because measureText output is already in pixels. Although, > mPaint.setTextSize(baselineDropDownViewFontSize * bootstrapSize); looks like isn't correct as well due to http://stackoverflow.com/questions/6232541/android-measuretext-return-pixels-based-on-scaled-pixels