{"id":13644464,"url":"https://github.com/binny1024/MoreTextView","last_synced_at":"2025-04-21T10:33:25.197Z","repository":{"id":184415064,"uuid":"90821899","full_name":"binny1024/MoreTextView","owner":"binny1024","description":":fire:”QQ：交流群 ：192268854。这个群我不维护了，让给同学了。简介：1、在文本末尾，实现点击“展开”---展开所有文本，并把“展开”改为“收起”；点击“收起”，则收起文本； 2、“展开”和“收起”紧跟文本末尾。并且不换行。","archived":false,"fork":false,"pushed_at":"2017-11-07T08:56:52.000Z","size":616,"stargazers_count":153,"open_issues_count":2,"forks_count":27,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-04T00:06:53.056Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binny1024.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-05-10T04:46:53.000Z","updated_at":"2024-08-04T00:06:53.057Z","dependencies_parsed_at":"2023-07-28T10:44:58.394Z","dependency_job_id":null,"html_url":"https://github.com/binny1024/MoreTextView","commit_stats":null,"previous_names":["binny1024/moretextview","xander1024/moretextview"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binny1024%2FMoreTextView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binny1024%2FMoreTextView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binny1024%2FMoreTextView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binny1024%2FMoreTextView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binny1024","download_url":"https://codeload.github.com/binny1024/MoreTextView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250040460,"owners_count":21365109,"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-08-02T01:02:05.438Z","updated_at":"2025-04-21T10:33:24.537Z","avatar_url":"https://github.com/binny1024.png","language":"Java","readme":"## MoreTextView\n一行代码实现TextView的“展开”和“收起”\n#### 引用\n    compile 'com.smart.moretext:moretext:1.0.0\n# 需求介绍：\n1、在文本末尾，实现点击“展开”---展开所有文本，并把“展开”改为“收起”；点击“收起”，则收起文本；\n2、“展开”和“收起”紧跟文本末尾。并且不换行。\n### 函数说明\n#### 1.1 构造函函数\n \n##### 1.1.1 文字形式\n        /**\n         * @param textView  文本框\n         * @param oriMsg    原始信息\n         * @param textOpen  展开性质的文字\n         * @param textClose 关闭性质的文字\n         */\n        public UtilMoreText(final TextView textView, String oriMsg, String textOpen, String textClose) {\n        }\n##### 1.1.2 文字形式    \n        /**\n         * @param textView 文本框\n         * @param oriMsg   原始文字\n         */\n        public UtilMoreText(final TextView textView, String oriMsg) {\n        \n        }\n##### 1.1.3 图片形式  \n        /**\n         * @param textView      文本框\n         * @param oriMsg        原始文字\n         * @param drawableOpen  展开图标\n         * @param drawableColse 关闭图标\n         */\n        public UtilMoreText(final TextView textView, String oriMsg, Drawable drawableOpen, Drawable drawableColse) {\n        }\n####成员方法介绍\n        \n    /** 设置结尾 文字的颜色\n     * @param spanTextColor 颜色id\n     * @return 本类实例\n     */\n    public UtilMoreText setSpanTextColor(int spanTextColor) {\n       \n    }\n### 使用说明\n#### 设置文本\n    new UtilMoreText(tv1,msg).setSpanTextColor(R.color.colorAccent).createString();\n#### 设置图标\n    new UtilMoreText(tv2,msg,down,up).createImg();\n#### UtilMoreText.java 源码地址\nhttps://github.com/XBean1024/MoreTextView/blob/master/moretext/src/main/java/com/smart/moretext/UtilMoreText.java\n#### 效果图，(结尾随意找的图片，项目中更换一下)\n![](https://github.com/xubinbin1024/MoreTextView/blob/master/gif/3.gif)\n\n#### 推荐，其他网友的一个组合view实现的，效果也不错\n##### 先看下效果图吧:\n![simple.gif](https://github.com/1002326270xc/MoreTextView/blob/master/photo/demo.gif)\n##### 地址\nhttps://github.com/XBean1024/MoreTextView-1\n##### QQ：交流群 ：192268854\n![](https://github.com/Xbean1024/XHttp/blob/master/gif/QQ.JPG)\n","funding_links":[],"categories":["TextView"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinny1024%2FMoreTextView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinny1024%2FMoreTextView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinny1024%2FMoreTextView/lists"}