Comments (1)
@Rushabhs999 i know it's been a while since then, but you can wrap a MaterialSpinner inside a MaterialCardView and use the MaterialCardView radius to make the MaterialSpinner have rounded corners.
Example :
<com.google.android.material.card.MaterialCardView
android:layout_width="wrap_content"
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"
app:cardCornerRadius="15dp"
android:layout_height="wrap_content">
<com.jaredrummler.materialspinner.MaterialSpinner
android:id="@+id/spinner"
android:layout_width="wrap_content"
app:ms_padding_top="5dp"
app:ms_padding_left="13dp"
app:ms_padding_right="13dp"
app:ms_padding_bottom="5dp"
android:textColor="@android:color/white"
app:ms_arrow_tint="@android:color/white"
app:ms_background_color="@color/colorPrimary"
android:layout_height="wrap_content"/>
</com.google.android.material.card.MaterialCardView>
Hope this helps
from materialspinner.
Related Issues (20)
- If we disable the item,we can able to select that item
- I don't want to hide the Adapter HOT 1
- Selected Item shows with .toString() HOT 2
- Spinner only expands below the view. HOT 1
- Spinner Trigger Item
- Add an option to make changes in drop down text alignment
- Update Request ?
- arrow not show HOT 1
- nothing selected
- How to set maximum number of items ?
- Viewpager2 fragment freezes custom spinner widget when returned after swiping HOT 2
- Items not showing on spinner click , after changing spinner visibility from Gone to visible HOT 1
- When I used it in my Presentation, there were no drop-down boxes
- 麻烦修复下这个异常java.lang.IndexOutOfBoundsException: Index: 3, Size: 3 onRestoreInstanceState
- Cannot add two spinner under same layout HOT 1
- DropDown menu doesn't work when change fragment HOT 1
- Inflate Exception
- Do not showing the Spinner Selected item. HOT 1
- MaterialSpinner Hint HOT 1
- Top and bottom offset in the popup list
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 materialspinner.