# MaterialSpinner **Repository Path**: HarmonyOS-tpc/MaterialSpinner ## Basic Information - **Project Name**: MaterialSpinner - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-17 - **Last Updated**: 2023-04-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## MaterialSpinner ## Introduction MaterialSpinner aims to provide a Material Design Spinner. This Component is based on TextInputLayout ## Usage Instruction Supported Features with usage Examples ====================================== ## Material Spinner Display with text : In Xml add: MaterialSpinner aims to provide a material design spinner and Material spinner display with text and In java need to set Spinner items.library MaterialSpinner spinner = (MaterialSpinner) findComponentById(ResourceTable.Id_spinner); spinner.setItems(String[] items); xml supported custom attributes: 1. ms_background_color - sets background color. 2. ms_text_color - sets text color 3. ms_arrow_tint - sets arrow color 4. ms_hide_arrow - hide arrow for spinner 5. ms_dropdown_max_height - height of the popup 6. ms_padding_top - padding top for spinner. 7. ms_padding_right - padding right for spinner. 8. ms_padding_left - padding left for spinner. 9. ms_padding_bottom - padding bottom for spinner. 10. ms_popup_padding_top - popup top padding. 11. ms_popup_padding_right - popup right padding. 12. ms_popup_padding_bottom - popup bottom padding. 13. ms_popup_padding_left - popup left padding. Setting selector: spinner.setBackgroundSelector(ResourceTable.Graphic_selectdialog_changecolor); Note: Graphic_selectdialog_changecolor - this should be based on state container. ## Installation instruction Method 1: Generate the .har package through the library and add the .har package to the libs folder. Add the following code to the entry gradle: implementation fileTree (dir: 'libs', include: ['*.jar', '*.har']) implementation 'io.openharmony.tpc.thirdlib:floatingactionbutton:1.0.0' implementation project(':library') Method 2: In project level build.gradle: allprojects{ repositories{ mavenCentral() } } ## LICENSE : Copyright (C) 2016 Jared Rummler Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.