hakobast / Dropdowntextview
Simple drop-down(expandable) TextView for Android
Stars: ✭ 307
Programming Languages
kotlin
9241 projects
Projects that are alternatives of or similar to Dropdowntextview
Fole
Fole is a simple library to collapse and expand a TextView.
Stars: ✭ 67 (-78.18%)
Mutual labels: textview, expandable
Rskgrowingtextview
A light-weight UITextView subclass that automatically grows and shrinks.
Stars: ✭ 820 (+167.1%)
Mutual labels: textview, expandable
CustomFontView
Custom View classes for TextView, EditText & Buttons - to set custom fonts
Stars: ✭ 26 (-91.53%)
Mutual labels: textview
Vue Stripe Menu
Creating a navigation menu with animations like on Stripe
Stars: ✭ 266 (-13.36%)
Mutual labels: dropdown
Easy Toggle State
A tiny JavaScript library to easily toggle the state of any HTML element in any contexts, and create UI components in no time.
Stars: ✭ 261 (-14.98%)
Mutual labels: dropdown
AccordionRecycler
Android RecyclerView Adapter with nested items & expand/contract functionality
Stars: ✭ 17 (-94.46%)
Mutual labels: expandable
textmatcher
A simple text watcher that matches specific targets like mention or hashtag in a string by defining rules
Stars: ✭ 67 (-78.18%)
Mutual labels: textview
Attributedstring
基于Swift插值方式优雅的构建富文本, 支持点击长按事件, 支持不同类型过滤, 支持自定义视图等.
Stars: ✭ 294 (-4.23%)
Mutual labels: textview
Material Ui Superselectfield
multiselection autocomplete dropdown component for Material-UI
Stars: ✭ 260 (-15.31%)
Mutual labels: dropdown
TTInputVisibilityController
Lightweight controller to keep your inputs visible when the keyboard is presented.
Stars: ✭ 21 (-93.16%)
Mutual labels: textview
iOSEasyList
A data-driven UICollectionView and UITableView framework for building fast and flexible lists
Stars: ✭ 29 (-90.55%)
Mutual labels: expandable
Android Expandabletextview
An expandable TextView for Android applications
Stars: ✭ 268 (-12.7%)
Mutual labels: textview
Swiftuix
Extensions and additions to the standard SwiftUI library.
Stars: ✭ 4,087 (+1231.27%)
Mutual labels: textview
React Click Outside
Higher Order Component that provides click outside functionality
Stars: ✭ 266 (-13.36%)
Mutual labels: dropdown
Autocomplete.js
Simple autocomplete pure vanilla Javascript library.
Stars: ✭ 3,428 (+1016.61%)
Mutual labels: dropdown
DropdownTextView
Simple drop-down TextView for Android
Intro
Usage
Adds drop-down to your layout via XML
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<hakobastvatsatryan.DropdownTextView
android:id="@+id/first_dropdown_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:title_font="@font/your-title-font"
app:title_text="@string/your-title-text"
app:title_text_color="@color/your-title-text-color"
app:title_text_color_expanded="@color/your-title-text-color-expanded"
app:title_text_size="@dimen/your-title-text-size"
app:content_font="@font/your-font"
app:content_padding="@dimen/your-content-padding"
app:content_text="@string/your-content-text"
app:content_text_color="@color/your-content-text-color"
app:content_text_size="@color/your-content-text-size"
app:link_text_color="@color/your-text-link-color"
app:underline_link="isUnderlineVisible"
app:arrow_drawable="@drawable/your-arrow-icon" comment="icon should be faced to the right"
app:bg_drawable_regular="@drawable/your-regular-background"
app:bg_drawable_expanded="@drawable/your-expanded-background"
app:expand_duration="@integer/your-expand-duration"
app:panel_padding="@dimen/your-panel-padding"/>
</LinearLayout>
Adds drop-down to your layout pragmatically
val dropdown = DropdownTextView.Builder(this)
.setTitleTextRes(R.string.your_title_text)
.setTitleTextColorRes(R.color.your_title_text_color)
.setTitleTextColorExpandedRes(R.color.your_title_text_color_expanded)
.setTitleTextSizeRes(R.dimen.your_title_text_size)
.setTitleFontRes(R.font.your_title_font)
.setContentTextRes(R.string.your_content_text)
.setContentTextColorRes(R.color.your_content_text_color)
.setContentTextSizeRes(R.color.your_content_text_size)
.setContentFontRes(R.color.your_content_text_font)
.setContentPaddingRes(R.dimen.your_content_padding)
.setHtmlContent(htmlText)
.setHtmlContent(htmlText, handler)
.setLinkTextColorRes(R.color.your_text_link_color)
.setLinkUnderline(isUnderlineVisible)
.setArrowDrawableRes(R.drawable.your_drawable_icon) // icon should be faced to the right
.setRegularBackgroundDrawableRes(R.drawable.your_regular_background)
.setExpandedBackgroundDrawableRes(R.drawable.your_expanded_background)
.setPanelPaddingRes(R.dimen.your_panel_padding)
.setExpandDuration(your_expand_duration)
.build()
root.addView(dropdown) // You can specify layout params for dropdown
Download
Gradle:
compile 'com.github.hakobast:dropdown-textview:0.3.1'
Maven:
<dependency>
<groupId>com.github.hakobast</groupId>
<artifactId>dropdown-textview</artifactId>
<version>0.3.1</version>
<type>pom</type>
</dependency>
Contact
- Email: [email protected]
- Twitter: https://twitter.com/hak_ast
License
Copyright 2018 Hakob Astvatsatryan
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.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].