GithubHelp home page GithubHelp logo

Comments (4)

jaredrummler avatar jaredrummler commented on May 31, 2024

Will you please provide a screenshot. I will re-open the issue when more details are provided. Thanks.

from materialspinner.

TobiPristupin avatar TobiPristupin commented on May 31, 2024

First of all thanks for the library I really liked it!

My question is the following:

In this image when selecting "All" two options are cut
screenshot_20170930-114645

When selecting "Month" no options are cut
screenshot_20170930-114653

When selecting "Week" no options are cut, and when selecting "Year" only "Month" option is cut.

The code I'm using is:

dateSpinner = (MaterialSpinner) rootView.findViewById(R.id.history_date_spinner);
dateSpinner.setItems("Month", "Week", "Year", "All");
<com.jaredrummler.materialspinner.MaterialSpinner
            android:id="@+id/history_date_spinner"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true"
            android:layout_marginLeft="50dp"
            android:layout_marginStart="50dp"
            app:ms_arrow_tint="@android:color/white"
            app:ms_background_color="@color/colorPrimary"
            app:ms_text_color="@android:color/white" />

The version of the library is 1.2.0

Is the shrinking a feature or a bug? If it is a feature then it is inconsistent, it seems to not follow any formatting rules. When selecting "Week" a 4 character word no options are cut, but when selecting "Year", also four characters it cuts one of the options.

Is there any way to disable it?

Thanks for supporting the library 👍

from materialspinner.

jaredrummler avatar jaredrummler commented on May 31, 2024

This will be fixed in 1.2.1. You can also specify the layout_height instead of setting wrap_content.

from materialspinner.

TobiPristupin avatar TobiPristupin commented on May 31, 2024

Updated to 1.2.1 and issue was fixed.

from materialspinner.

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.