{"id":17101352,"url":"https://github.com/behindthemath/justifiedtextview","last_synced_at":"2025-06-19T19:36:25.013Z","repository":{"id":221086616,"uuid":"63518334","full_name":"BehindTheMath/JustifiedTextView","owner":"BehindTheMath","description":"A custom view for Android for displaying text with full justification.","archived":false,"fork":false,"pushed_at":"2016-08-05T00:46:20.000Z","size":314,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-15T15:24:50.923Z","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/BehindTheMath.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}},"created_at":"2016-07-17T06:36:56.000Z","updated_at":"2022-06-29T13:30:09.000Z","dependencies_parsed_at":"2024-02-06T04:53:29.497Z","dependency_job_id":null,"html_url":"https://github.com/BehindTheMath/JustifiedTextView","commit_stats":null,"previous_names":["behindthemath/justifiedtextview"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/BehindTheMath/JustifiedTextView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BehindTheMath%2FJustifiedTextView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BehindTheMath%2FJustifiedTextView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BehindTheMath%2FJustifiedTextView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BehindTheMath%2FJustifiedTextView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BehindTheMath","download_url":"https://codeload.github.com/BehindTheMath/JustifiedTextView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BehindTheMath%2FJustifiedTextView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260816838,"owners_count":23067381,"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-10-14T15:24:53.238Z","updated_at":"2025-06-19T19:36:20.003Z","avatar_url":"https://github.com/BehindTheMath.png","language":"Java","readme":"[ ![Download](https://api.bintray.com/packages/behindthemath/maven/justifiedtextview/images/download.svg) ](https://bintray.com/behindthemath/maven/justifiedtextview/_latestVersion)\n\n# JustifiedTextView\n\nJustifiedTextView is a custom view that displays text with full justification. This is as opposed to the standard `TextView`, which only allows right- or left-justification (depending on the *gravity* attribute).\n\n\u003cimg src=\"http://i.imgur.com/Jatiyjn.png\" width=\"60%\" /\u003e\n\n## Usage\n\nXML usage:\n```\n\u003cio.behindthemath.justifiedtextview.JustifiedTextView\n    android:id=\"@+id/justifiedTextView\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:text=\"@string/sample_text\"/\u003e\n```\n\nCode usage:\n```\nString sample_text = getResources().getString(R.string.sample_text);\nJustifiedTextView justifiedTextView = new JustifiedTextView(this, sample_text);\n((LinearLayout) findViewById(R.id.linearLayout)).addView(justifiedTextView);\n```\nFor more documentation, see the [Wiki](/../../wiki).\n\n## Installation\n\nUsing Gradle:\n\n1. Make sure the `repositories` block in your project's `build.gradle` includes `jcenter()` (This is now the default in Android Studio).  \n2. Add the following line to the `dependencies` block in your app module's `build.gradle`:\n\n  ```\ncompile 'io.behindthemath.justifiedtextview:justifiedtextview:x.y.z'\n  ```\nwhere *x.y.z* is the latest version available (see the tag at the top of this README).\n\n## License\n\n    Copyright 2016 Behind The Math\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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbehindthemath%2Fjustifiedtextview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbehindthemath%2Fjustifiedtextview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbehindthemath%2Fjustifiedtextview/lists"}