{"id":32643525,"url":"https://github.com/ykw93/expandabletextview","last_synced_at":"2025-10-31T03:55:27.159Z","repository":{"id":299625432,"uuid":"290689767","full_name":"YKW93/ExpandableTextView","owner":"YKW93","description":"ExpandableTextView","archived":false,"fork":false,"pushed_at":"2020-09-01T08:44:16.000Z","size":253,"stargazers_count":30,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T13:50:27.672Z","etag":null,"topics":["andorid","android-library","expandabletextview"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/YKW93.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-08-27T06:00:22.000Z","updated_at":"2024-06-27T09:34:28.000Z","dependencies_parsed_at":"2025-06-17T13:50:33.109Z","dependency_job_id":"8bb74f14-ca56-43c8-b61f-d04dbda3c1c6","html_url":"https://github.com/YKW93/ExpandableTextView","commit_stats":null,"previous_names":["ykw93/expandabletextview"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/YKW93/ExpandableTextView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YKW93%2FExpandableTextView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YKW93%2FExpandableTextView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YKW93%2FExpandableTextView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YKW93%2FExpandableTextView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YKW93","download_url":"https://codeload.github.com/YKW93/ExpandableTextView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YKW93%2FExpandableTextView/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281925789,"owners_count":26584821,"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","status":"online","status_checked_at":"2025-10-31T02:00:07.401Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["andorid","android-library","expandabletextview"],"created_at":"2025-10-31T03:54:59.869Z","updated_at":"2025-10-31T03:55:27.144Z","avatar_url":"https://github.com/YKW93.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ExpandableTextView\nRead More TextView for Android\n\n![](https://user-images.githubusercontent.com/41371709/91629351-4adcb080-ea03-11ea-8210-fbda11379b21.gif)\n\n## Usage\n#### Gradle\n```gradle\ndependencies {\n    implementation 'com.wayne.expandabletextview:expandable-textview:1.1.3'\n}\n```\n\n#### How to use\n* xml\n```xml\n\u003ccom.wayne.expandabletextview.ExpandableTextView\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    app:expandable_text_font=\"@font/roboto_bold\"                                             \n    app:expandable_gradient_view_height=\"16dp\"\n    app:expandable_text=\"text\"\n    app:expandable_text_collapsedLines=\"3\"\n    app:expandable_text_color=\"@android:color/black\"\n    app:expandable_text_line_spacing_extra=\"4sp\"\n    app:expandable_text_size=\"14sp\" /\u003e\n```\n\n* kotlin\n```kotlin\nclass MainActivity : AppCompatActivity() {\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        setContentView(R.layout.activity_main)\n\n        et_test.stateChangeListener = object : OnStateChangeListener {\n            override fun onStateChanged(state: ExpandableTextView.State) {\n                tv_current_state.text = state.name\n            }\n        }\n        // change font\n        et_test.textTypeface = ResourcesCompat.getFont(this, R.font.roboto_bold)\n    }\n}\n```\n\n\n#### Attributes\n- `expandable_gradient_view_height` (16dp)\n- `expandable_text` (\"\")\n- `expandable_text_collapsedLines` (4) \n- `expandable_text_color` (Color.BLACK) \n- `expandable_text_line_spacing_extra` (8dp) \n- `expandable_text_size` (14dp)\n- `expandable_text_font`\n\n#### Important note while applying font\n- You must create a directory to res/value/ and place the font file within that path.\n\n#### Fetures\n- expand/colleapse animation\n\n## License  \n```  \nCopyright 2020 @Wayne\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fykw93%2Fexpandabletextview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fykw93%2Fexpandabletextview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fykw93%2Fexpandabletextview/lists"}