{"id":16962899,"url":"https://github.com/kojofosu/tweeze","last_synced_at":"2026-04-09T11:11:41.120Z","repository":{"id":60380516,"uuid":"476828925","full_name":"kojofosu/Tweeze","owner":"kojofosu","description":"Tweeze is an android twitter library","archived":false,"fork":false,"pushed_at":"2022-09-28T19:58:18.000Z","size":122,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T11:43:00.876Z","etag":null,"topics":["android","android-library","api","customview","gradle","java","kotlin","twitterapi"],"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/kojofosu.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":"2022-04-01T18:27:37.000Z","updated_at":"2022-04-03T11:39:29.000Z","dependencies_parsed_at":"2022-09-28T20:50:21.951Z","dependency_job_id":null,"html_url":"https://github.com/kojofosu/Tweeze","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/kojofosu%2FTweeze","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kojofosu%2FTweeze/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kojofosu%2FTweeze/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kojofosu%2FTweeze/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kojofosu","download_url":"https://codeload.github.com/kojofosu/Tweeze/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244826558,"owners_count":20516779,"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","api","customview","gradle","java","kotlin","twitterapi"],"created_at":"2024-10-13T23:08:09.417Z","updated_at":"2025-12-30T22:53:45.142Z","avatar_url":"https://github.com/kojofosu.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tweeze\n![Jitpack](https://img.shields.io/jitpack/v/github/kojofosu/Tweeze?style=for-the-badge\u0026color=2F9319)\n\nTweeze is an android twitter library\n\n## Setup\n\nAdd it in your root `build.gradle` at the end of repositories:\n\n```groovy\nallprojects {\n    repositories {\n        //...omitted for brevity\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\nAdd the dependency\n\n```groovy\ndependencies {\n   implementation \"com.github.kojofosu:Tweeze:$tweeze_version\"\n}\n```\n\n![Tweeze](https://user-images.githubusercontent.com/20203694/161426931-9cb8c2e1-cd14-4fa1-aa47-3ec784d8ff09.png)\n\n\n## TwitterDisplayNameView\nThis view makes it convenient to set twitter display names. It exposes a method that adds the verified badge to users that are verified, just pass the `isVerified` response from the Twitter API.\n\nDeclare it in your xml layout\n```xml\n\u003ccom.mcdev.tweeze.TwitterDisplayNameView\n    android:id=\"@+id/twitter_display_name_view\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"/\u003e\n```\n\nSet display name programmatically\n```kotlin\nvar twitterDisplayNameView: TwitterDisplayNameView = findViewById(R.id.twitter_display_name_view)\n\n/* Sets the display name\n* If the verified status is true, verified badge is shown, if false it's not shown\n* Verified badge Type (Optional) comes in 3 forms, DEFAULT : Blue verified badge, WHITE and BLACK to fit well in every background color */\ntwitterDisplayNameView.setDisplayName(\"FOSU\", true, VerifiedBadge.BLACK)\n\n// set text size\ntwitterDisplayNameView.textSize = 20\n\n// customize text view for display name\ntwitterDisplayNameView.customizeDisplayName.setTextColor(Color.RED)\n```\n\n## TwitterUsernameView\nThis view makes it convenient to set twitter usernames. It prepends the @ symbol automatically when ever you forget to add it.\n\nDeclare it in your xml layout\n```xml\n\u003c!--Twitter Username View--\u003e\n\u003ccom.mcdev.tweeze.TwitterUsernameView\n    android:id=\"@+id/twitter_username_view\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"/\u003e\n```\n\nSet username programmatically\n```kotlin\n// initialize view\nvar twitterUsernameView: TwitterUsernameView = findViewById(R.id.twitter_username_view) \n    \n// set username\ntwitterUsernameView.username = \"McDerek_\" // output @McDerek_\n\n// get username with the @ symbol\nvar myUsername = twitterUsernameView.username // output @McDerek_\n\n// get username without the @ symbol\nvar myUsernameWithoutSymbol = twitterUsernameView.usernameWithoutSymbol // output McDerek_\n\n// customize textview\ntwitterUsernameView.customizeUserName.setTextColor(Color.GREEN) // change text color\ntwitterUsernameView.customizeUserName.textSize = 20f // set text size\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkojofosu%2Ftweeze","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkojofosu%2Ftweeze","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkojofosu%2Ftweeze/lists"}