-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiline TextField Like Native iOS Token View #14
Comments
Thanks for the feedback. I believe the original design didn’t involve multiline layout in order to keep it simple, hence the horizontal scrolling. It definitely requires some design updates to build multiline support on top of the current behaviour. Any good ideas? |
Hi, I designed the UI and UI interaction for this component. And with @bcylin 's great talents, we make this library. Some Random Thoughts About This Issue In Chinese(Not Actually A Native Speaker So Thinking And Typing In Chinese Is Faster For Me) 大致上想像是:
或是一個bool ?(isMultipleLinesEnabled 之類的)去判斷是否是單行橫向滑動模式(bool 是因為,可能沒有要限制到底內容有多少行,可能是要可以一直打,所以差別只有是不是單行),但這只是很單純粗淺的想法,真的要實作的話也許有更好的方式
舉例來說:上面提到的Facebook 的大致上是可以顯示到2行,但實際內容應該沒有限制,所以token還能顯示在一行內的時候,高度就只有1行的高度,到了得用兩行才放得下的時候,高度就對應變成2行,但當內容到了得超過兩行才放得下的時候,高度就還是2行的高度 但iOS 自己的Mail或是Gmail的收件人那欄,就是一直增長高度的那種,但是一但focus離開那個欄位,就會縮到一行的高度,而且變成概述的文字 但上述兩種的目的和用途不太一樣,如果要說的話,會覺得以延續之前一開始的設計和用途的話,會比較像是前面的Facebook那種,因為主要用途不是打很多,而是比較像是提供一些filter的options 但這個issue的標題應該是比較想像Mail那種? 但不管是哪種,其實主要變動會是Layout的方式,單行橫向當然還是跟現在一樣,但當不是單行的時候,就會變成要看scrollview的width來決定token的擺放的位置要不要換行
Facebook的會是上面講的那種,但因為他最多只顯示兩行(剩下要滑動才看得到),所以左側icon下方的留白不會太多 iOS 的Mail會是跟收件人那個欄位標註對齊,
這種的排列方式有可能就會動到現有比較多東西 |
Perhaps it'd go through less trouble if the multiline layout could be achieved using a separate class? It's also easier to maintain code-wise. |
Yes, I think so. |
Can we use textView instead on textField to support multi line?
This library is more beautiful than the others.
oh +100 fir this feature.
Thanks
The text was updated successfully, but these errors were encountered: