KO
|
EN
gitlite — search
Search
#typescript
#ai-agents
#ai
#dsh-plugin
#deepseek-harness
#open-source
#cli
#claude-code
#codex
#developer-tools
#react
#windows
ExpandableTextView
★ 31
Open GitHub ↗
ExpandableTextView
Download README (.md)
Explore Similar Repositories
Anko-ExpandableTextView
:
An expandable Android TextView written in Kotlin
ExpandableTextView
:
An expandable Android TextView written in Kotlin
expandable-text
:
Light-weighted, convenient implementation of expandable text view that supports expanding & collapsing animations for Android projects.
ExpandableTextView
:
一个用于Android的可展开折叠的文本控件,可以指定展开收起提示的位置及样式
ExpandableTextView
:
An android library that is TextView performs multiline ellipsize.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
ExpandableTextView
?
Download (.md)
# ExpandableTextView Read More TextView for Android  ## Usage #### Gradle ```gradle dependencies { implementation 'com.wayne.expandabletextview:expandable-textview:1.1.3' } ``` #### How to use * xml ```xml <com.wayne.expandabletextview.ExpandableTextView android:layout_width="match_parent" android:layout_height="wrap_content" app:expandable_text_font="@font/roboto_bold" app:expandable_gradient_view_height="16dp" app:expandable_text="text" app:expandable_text_collapsedLines="3" app:expandable_text_color="@android:color/black" app:expandable_text_line_spacing_extra="4sp" app:expandable_text_size="14sp" /> ``` * kotlin ```kotlin class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) et_test.stateChangeListener = object : OnStateChangeListener { override fun onStateChanged(state: ExpandableTextView.State) { tv_current_state.text = state.name } } // change font et_test.textTypeface = ResourcesCompat.getFont(this, R.font.roboto_bold) } } ``` #### Attributes - `expandable_gradient_view_height` (16dp) - `expandable_text` ("") - `expandable_text_collapsedLines` (4) - `expandable_text_color` (Color.BLACK) - `expandable_text_line_spacing_extra` (8dp) - `expandable_text_size` (14dp) - `expandable_text_font` #### Important note while applying font - You must create a directory to res/value/ and place the font file within that path. #### Fetures - expand/colleapse animation ## License ``` Copyright 2020 @Wayne 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. ```