{"id":24482489,"url":"https://github.com/iamageo/anotherreadmorelibrary","last_synced_at":"2025-04-13T16:43:04.869Z","repository":{"id":44631124,"uuid":"454620157","full_name":"iamageo/AnotherReadMoreLibrary","owner":"iamageo","description":"📖 Another Read More Library is a simple TextView with read more text","archived":false,"fork":false,"pushed_at":"2025-03-17T07:15:50.000Z","size":271,"stargazers_count":15,"open_issues_count":5,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T07:47:49.593Z","etag":null,"topics":["android","android-library","customview","java","jitpack","kotlin","library","read-more","read-more-android","readmoretextview","recycerview","textview"],"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/iamageo.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}},"created_at":"2022-02-02T02:29:23.000Z","updated_at":"2025-03-02T20:21:59.000Z","dependencies_parsed_at":"2024-02-11T18:30:25.088Z","dependency_job_id":"db327f29-4d91-4a9f-97a0-3224d3a40287","html_url":"https://github.com/iamageo/AnotherReadMoreLibrary","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamageo%2FAnotherReadMoreLibrary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamageo%2FAnotherReadMoreLibrary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamageo%2FAnotherReadMoreLibrary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamageo%2FAnotherReadMoreLibrary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamageo","download_url":"https://codeload.github.com/iamageo/AnotherReadMoreLibrary/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248747426,"owners_count":21155448,"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":["android","android-library","customview","java","jitpack","kotlin","library","read-more","read-more-android","readmoretextview","recycerview","textview"],"created_at":"2025-01-21T12:13:57.024Z","updated_at":"2025-04-13T16:43:04.862Z","avatar_url":"https://github.com/iamageo.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"![banner_lib](https://user-images.githubusercontent.com/26925002/152582154-45f53428-5048-4b04-9297-e769a49ea4ec.png)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://opensource.org/licenses/Apache-2.0\"\u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://android-arsenal.com/api?level=19\"\u003e\u003cimg alt=\"API\" src=\"https://img.shields.io/badge/API-19%2B-brightgreen.svg?style=flat\"/\u003e\u003c/a\u003e\n  \u003cimg alt=\"repo size\" src=\"https://img.shields.io/github/repo-size/iamageo/AnotherReadMoreLibrary\"/\u003e\n  \u003cbr/\u003e\n\n\n  \u003cbr/\u003e\n    \u003cimg alt=\"forks\" src=\"https://img.shields.io/github/forks/iamageo/AnotherReadMoreLibrary?style=social\"/\u003e\n    \u003cimg alt=\"stars\" src=\"https://img.shields.io/github/stars/iamageo/AnotherReadMoreLibrary?style=social\"/\u003e\n\u003c/p\u003e\n\n[![Android CI](https://github.com/iamageo/AnotherReadMoreLibrary/actions/workflows/android_ci.yml/badge.svg)](https://github.com/iamageo/AnotherReadMoreLibrary/actions/workflows/android_ci.yml)\n\n\n## 🏁 Including in your project \n[![](https://jitpack.io/v/iamageo/AnotherReadMoreLibrary.svg)](https://jitpack.io/#iamageo/AnotherReadMoreLibrary)\n\nAdd it in your root build.gradle at the end of repositories:\n\n\tallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\nStep 2. Add the dependency\n\n\tdependencies {\n\t  implementation 'com.github.iamageo:another-read-more-lib:1.0.3'\n\t}\n\n## 🛠 Library Attributes \nAttributes | Type | Default | Description\n--- | --- | --- | ---\ntextLength | Int | 0 | Minimal text to show labels. \ntextLengthType | Int TYPE_LINE(1) or TYPE_CHARACTER(2) | 0 | Indicates whether text trimming should be done by number of characters or by number of lines. \nmoreLabel | String | none | text of more label. \nlessLabel | String | none | text of less label.\nmoreLabelColor | Int | Color.BLACK | Color from moreLabel.\nlessLabelColor | Int | Color.BLACK | Color from lessLabel.\nunderlineVisible | Boolean | true | Show/hide underline in more and less labels.\n\n### ✨ Basic example for Kotlin \n\n\u003cimg src=\"https://user-images.githubusercontent.com/26925002/152575671-bea1c64f-3506-42a4-a106-8fc8460223e6.gif\" align=\"right\" width=\"32%\"/\u003e\n\n```kotlin\nval tv = findViewById\u003cTextView\u003e(R.id.mTextView)\n        \nval anotherReadMore: AnotherReadMore = AnotherReadMore.Builder(this)\n    .textLength(100, AnotherReadMore.TYPE_LINE)\n    .moreLabel(\"mais\")\n    .lessLabel(\"menos\")\n    .build()\n\nanotherReadMore.addReadMoreTo(tv,\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\")\n```\n### Example with RecyclerView\n\u003cimg src=\"https://user-images.githubusercontent.com/26925002/152580755-c51a58b3-f488-49e6-9e43-72b0e240e9e1.gif\" align=\"right\" width=\"32%\"/\u003e\n\n```kotlin\ninternal class SimpleAnotherAdapter internal constructor(private val context: Context) :\n    RecyclerView.Adapter\u003cSimpleAnotherAdapter.ViewHolder\u003e() {\n\n    private val anotherReadMore: AnotherReadMore = AnotherReadMore.Builder(context)\n        .build()\n\n    internal class ViewHolder(v: View) : RecyclerView.ViewHolder(v) {\n        var mTextView: TextView = v.findViewById(R.id.tv)\n    }\n\n    override fun onCreateViewHolder(\n        parent: ViewGroup,\n        viewType: Int\n    ): ViewHolder {\n        val v = LayoutInflater.from(parent.context)\n            .inflate(R.layout.item, parent, false) as View\n        return ViewHolder(v)\n    }\n\n    override fun onBindViewHolder(holder: ViewHolder, position: Int) {\n        if (position % 2 == 0) {\n            anotherReadMore.addReadMoreTo(\n                holder.mTextView,\n                Html.fromHtml(context.getString(R.string.big_text))\n            )\n        } else {\n            anotherReadMore.addReadMoreTo(\n                holder.mTextView,\n                Html.fromHtml(context.getString(R.string.big_text)).toString()\n            )\n        }\n    }\n\n    override fun getItemCount(): Int {\n        return 30\n    }\n}\n```\n\n## License\n```\n\n\n    Copyright 2022 Geovani Amaral\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```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamageo%2Fanotherreadmorelibrary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamageo%2Fanotherreadmorelibrary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamageo%2Fanotherreadmorelibrary/lists"}