hakobast / dropdowntextview Goto Github PK
View Code? Open in Web Editor NEWSimple drop-down(expandable) TextView for Android
Simple drop-down(expandable) TextView for Android
A great use for this would be an "More information..." expander but the current implementation doesn't appear to allow the title text to be right aligned.
please add a new method "setTitleMaxLines", because when I set a long text in the header, part of the text is hidden.
And in kotlin you don't need findViewById. You can simply use the element id from xml
It seams like there is not option to set title text style? I see that in the example "this is a title" is bold. How should I do that?
Unable to add spannable text with different style using setContentText
It Change the style to simple text
gradle:
implementation 'com.github.hakobast:dropdown-textview:0.3.1'
layout file:
<hakobastvatsatryan.DropdownTextView
android:id="@+id/first_dropdown_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:title_text="Text"
app:content_text="Text2"
app:arrow_drawable="@drawable/ic_teacher"
app:title_text_color="@color/colorPrimary" />
errors:
Android resource linking failed
AAPT: \app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:4155: error: resource attr/title_text (aka com.example.test:attr/title_text) not found.
\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:4156: error: resource attr/content_text (aka com.example.test:attr/content_text) not found.
app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:4160: error: resource attr/title_text_color (aka com.example.test:attr/title_text_color) not found.
\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:4161: error: resource attr/title_text_color_expanded (aka com.example.test:attr/title_text_color_expanded) not found.
\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:4165: error: resource attr/content_text_color (aka com.example.test:attr/content_text_color) not found.
\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:4166: error: resource attr/link_text_color (aka com.example.test:attr/link_text_color) not found.
error: failed linking references.
Awesome library, but I have a problem. I'm fetching data from my server, and I want to create the dropdown dynamically, but the method setTitleText and setContentText can only receive an integer id for resource. Can you add methods that receive strings as well?
This two elements are not working
Hi, I'm trying to replicate the style of Dropdown TextView demonstrated in https://github.com/hakobast/DropdownTextView/blob/master/example-screens/example-1.gif
but couldn't find its code in the sample repository.
Could you maybe provide it too?
Android change compile to implementation
Log: "'compile' is obsolete and has been replaced with 'implementation'"
In the ReadMe file:
Download
Gradle:
compile 'com.github.hakobast:dropdown-textview:0.2'
Need to be change to:
Download
Gradle:
implementation 'com.github.hakobast:dropdown-textview:0.2'
It only supports minsdk level 19 and above, is it possible to make it support 14?
its a good library. its support RTL? in in right to left mode the icon should be show in left side
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.