{"id":13396244,"url":"https://github.com/Manabu-GT/ExpandableTextView","last_synced_at":"2025-03-13T22:31:56.903Z","repository":{"id":17128432,"uuid":"19894678","full_name":"Manabu-GT/ExpandableTextView","owner":"Manabu-GT","description":"Android's TextView that can expand/collapse like the Google Play's app description","archived":false,"fork":false,"pushed_at":"2022-07-17T19:55:46.000Z","size":4287,"stargazers_count":4085,"open_issues_count":45,"forks_count":791,"subscribers_count":111,"default_branch":"master","last_synced_at":"2024-10-21T10:36:25.557Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Manabu-GT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-17T19:40:15.000Z","updated_at":"2024-10-20T19:53:59.000Z","dependencies_parsed_at":"2022-08-07T08:15:48.945Z","dependency_job_id":null,"html_url":"https://github.com/Manabu-GT/ExpandableTextView","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manabu-GT%2FExpandableTextView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manabu-GT%2FExpandableTextView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manabu-GT%2FExpandableTextView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manabu-GT%2FExpandableTextView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Manabu-GT","download_url":"https://codeload.github.com/Manabu-GT/ExpandableTextView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221417357,"owners_count":16816868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T18:00:43.021Z","updated_at":"2024-10-25T10:31:54.764Z","avatar_url":"https://github.com/Manabu-GT.png","language":"Java","readme":"ExpandableTextView [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ExpandableTextView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1203)\n===================\n\nExpandableTextView is an Android library that allows developers to easily create an TextView\nwhich can expand/collapse just like the Google Play's app description.\nFeel free to use it all you want in your Android apps provided that you cite this project.\n\n\u003cimg src=\"/art/readme_demo.gif?raw=true\" width=360 height=640 alt=\"Quick Demo\"\u003e\n\nRequirements\n-------------\nAPI Level 8 (Froyo) and above.\n\nSetup\n------\nThe library is pushed to Maven Central as an AAR, \nso you just need to add the followings to your ***build.gradle*** file:\n\n```groovy\n\ndependencies {\n    compile 'com.ms-square:expandableTextView:0.1.4'\n}\n\n```\n\nUsage\n------\nUsing the library is really simple, just look at the source code of the [provided sample][1].\n(Look at the SampleTextListAdapter.java for the use within a ListView)\n\nThe important thing to note is that the view Ids for TextView and ImageButton must be set to\n\"@id/expandable_text\" and \"@id/expand_collapse\" respectively for this library to work.\n\nAlso, you can optionally set the following attributes in your layout xml file to customize the behavior\nof the ExpandableTextView.\n\n * `maxCollapsedLines` (defaults to 8)\n The maximum number of text lines allowed to be shown when the TextView gets collapsed\n\n * `animDuration` (defaults to 300ms)\n Duration of the Animation for the expansion/collapse\n\n * `animAlphaStart` (defaults to 0.7f)\n Alpha value of the TextView when the animation starts\n (NOTE)\n Set this value to 1 if you want to disable the alpha animation.\n\n * `expandDrawable`\n Customize a drawable set to ImageButton to expand the TextView\n\n * `collapseDrawable`\n Customize a drawable set to ImageButton to collapse the TextView\n\n```xml\n  \u003c!-- sample xml --\u003e\n  \u003ccom.ms.square.android.expandabletextview.ExpandableTextView\n      xmlns:android=\"http://schemas.android.com/apk/res/android\"\n      xmlns:expandableTextView=\"http://schemas.android.com/apk/res-auto\"\n      android:id=\"@+id/expand_text_view\"\n      android:layout_width=\"match_parent\"\n      android:layout_height=\"wrap_content\"\n      expandableTextView:maxCollapsedLines=\"4\"\n      expandableTextView:animDuration=\"200\"\u003e\n      \u003cTextView\n          android:id=\"@id/expandable_text\"\n          android:layout_width=\"match_parent\"\n          android:layout_height=\"wrap_content\"\n          android:layout_marginLeft=\"10dp\"\n          android:layout_marginRight=\"10dp\"\n          android:textSize=\"16sp\"\n          android:textColor=\"#666666\" /\u003e\n      \u003cImageButton\n          android:id=\"@id/expand_collapse\"\n          android:layout_width=\"wrap_content\"\n          android:layout_height=\"wrap_content\"\n          android:padding=\"16dp\"\n          android:layout_gravity=\"right|bottom\"\n          android:background=\"@android:color/transparent\"/\u003e\n  \u003c/com.ms.square.android.expandabletextview.ExpandableTextView\u003e\n```\n\n```java\n// sample code snippet to set the text content on the ExpandableTextView\nExpandableTextView expTv1 = (ExpandableTextView) rootView.findViewById(R.id.sample1)\n                    .findViewById(R.id.expand_text_view);\n                    \n// IMPORTANT - call setText on the ExpandableTextView to set the text content to display\nexpTv1.setText(getString(R.string.dummy_text1));\n```\n\nLicense\n----------\n\n    Copyright 2014 Manabu Shimobe\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n[1]: https://github.com/Manabu-GT/ExpandableTextView/tree/master/sample\n","funding_links":[],"categories":["Index `(light-weight pages)`","Java","TextView","Index","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FManabu-GT%2FExpandableTextView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FManabu-GT%2FExpandableTextView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FManabu-GT%2FExpandableTextView/lists"}