Giter Site home page Giter Site logo

moneytextview's People

Contributors

develodroid avatar fabiomsr avatar shusshu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moneytextview's Issues

Error inflating class org.fabiomsr.moneytextview.MoneyTextView

FATAL EXCEPTION: main
Process: com.network.imyth.network, PID: 3373
android.view.InflateException: Binary XML file line #28: Error inflating class org.fabiomsr.moneytextview.MoneyTextView
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at com.network.imyth.network.MainWindow_page_1$RecyclerAdapter.onCreateViewHolder(MainWindow_page_1.java:592)
at android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:6367)
at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5555)
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5440)
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5436)
at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2224)
at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1551)
at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1511)
at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:595)
at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3583)
at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3312)
at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3844)
at android.view.View.layout(View.java:14840)
at android.view.ViewGroup.layout(ViewGroup.java:4664)
at jp.co.recruit_lifestyle.android.widget.WaveSwipeRefreshLayout.onLayout(WaveSwipeRefreshLayout.java:202)
at android.view.View.layout(View.java:14840)
at android.view.ViewGroup.layout(ViewGroup.java:4664)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1697)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1551)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1460)
at android.view.View.layout(View.java:14840)
at android.view.ViewGroup.layout(ViewGroup.java:4664)
at android.support.v4.view.ViewPager.onLayout(ViewPager.java:1795)
at android.view.View.layout(View.java:14840)
at android.view.ViewGroup.layout(ViewGroup.java:4664)
at android.support.design.widget.HeaderScrollingViewBehavior.layoutChild(HeaderScrollingViewBehavior.java:131)
at android.support.design.widget.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:42)
at android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:1391)
at android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:870)
at android.view.View.layout(View.java:14840)
at android.view.ViewGroup.layout(ViewGroup.java:4664)
at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1193)
at android.view.View.layout(View.java:14840)
at android.view.ViewGroup.layout(ViewGroup.java:4664)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
at android.view.View.layout(View.java:14840)
at android.view.ViewGroup.layout(ViewGroup.java:4664)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1697)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1551)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1460)
at android.view.View.layout(View.java:14840)
at android.view.ViewGroup.layout(ViewGroup.java:4664)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
at android.view.View.layout(View.java:14840)
at android.view.ViewGroup.layout(ViewGroup.java:4664)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1697)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1551)
at android.widget.LinearLayout

add ability adjust padding on decimal

I'd like to adjust the height of the superscript. right now the gravity is just top or bottom . could you make one for center or the ability to add padding so i can push the decimal text down to my specification ? Or can you show me how you got it like this screenshot:
screen shot 2017-04-03 at 11 54 20 pm

because i see thats what i want but your examples dont demo how the decimal part can be perfectly aligned with the dollar part like in that photo.

Span implementation

This is a question/idea more than an issue. Have you considered (or do you know if it's possible) to implement MoneyTextView using Spans on a single TextView?

how to set fontPath

HI! i cannot set the fontPath to customize the fontFamily. have you some idea?

Text bounds are not calculated properly

Hi, I can't found a pattern, but the calculus of bounds is wrong. Here my code:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:orientation="vertical"
    android:layout_height="match_parent">


    <org.fabiomsr.moneytextview.MoneyTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:amount="1256.56"
        app:gravity="center"
        app:symbolTextSize="45sp"
        app:decimalDigitsTextSize="45sp"
        app:baseTextSize="45sp"
        app:decimalSeparator="."
        app:symbol="$"/>

    <org.fabiomsr.moneytextview.MoneyTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:gravity="center"
        app:amount="1.23"
        app:symbolTextSize="45sp"
        app:decimalDigitsTextSize="45sp"
        app:baseTextSize="45sp"
        app:decimalSeparator="."
        app:symbol="$"/>

    <org.fabiomsr.moneytextview.MoneyTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:gravity="center"
        app:amount="1.44"
        app:symbolTextSize="45sp"
        app:decimalDigitsTextSize="45sp"
        app:baseTextSize="45sp"
        app:decimalSeparator="."
        app:symbol="$"/>
</LinearLayout>

I try this with the last version 1.1.0, and this is the result (the integer and symbol section is not aligned with decimal part):
screen shot 2017-09-16 at 7 31 38 pm
screen shot 2017-09-16 at 7 32 09 pm
screen shot 2017-09-16 at 7 32 25 pm

Data binding not supported.

when I am trying to set ,
app:amount="@{data.totals.subTotal}"
then the issue occurs.
Please do something

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.