{"id":13604604,"url":"https://github.com/medyo/android-about-page","last_synced_at":"2025-05-14T11:09:18.129Z","repository":{"id":41490395,"uuid":"56727413","full_name":"medyo/android-about-page","owner":"medyo","description":"Create an awesome About Page for your Android App in 2 minutes","archived":false,"fork":false,"pushed_at":"2024-04-05T17:01:17.000Z","size":983,"stargazers_count":2039,"open_issues_count":20,"forks_count":284,"subscribers_count":52,"default_branch":"master","last_synced_at":"2025-04-12T14:14:56.722Z","etag":null,"topics":["android","android-ui"],"latest_commit_sha":null,"homepage":null,"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/medyo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"ko_fi":"medyoo"}},"created_at":"2016-04-20T23:26:30.000Z","updated_at":"2025-03-10T05:58:49.000Z","dependencies_parsed_at":"2022-09-26T21:41:26.687Z","dependency_job_id":"ca963041-4aed-4cf7-b041-f8d99b081aa6","html_url":"https://github.com/medyo/android-about-page","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medyo%2Fandroid-about-page","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medyo%2Fandroid-about-page/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medyo%2Fandroid-about-page/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medyo%2Fandroid-about-page/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/medyo","download_url":"https://codeload.github.com/medyo/android-about-page/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254129488,"owners_count":22019628,"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-ui"],"created_at":"2024-08-01T19:00:49.072Z","updated_at":"2025-05-14T11:09:18.087Z","avatar_url":"https://github.com/medyo.png","language":"Java","funding_links":["https://ko-fi.com/medyoo"],"categories":["Java","关于页面","Libs","Uncategorized"],"sub_categories":["\u003cA NAME=\"Component\"\u003e\u003c/A\u003eComponent","Uncategorized"],"readme":"# Android About Page\nCreate an awesome About Page for your Android App in 2 minutes\n\n\u003cimg src=\"/resources/cover.png\" width=\"80%\" alt=\"Android About Page Cover\"/\u003e\n\nThis library allows to generate beautiful About Pages with less effort, it's fully customizable and supports opening specific intent\n\n```java\nView aboutPage = new AboutPage(this)\n  .isRTL(false)\n  .setCustomFont(String) // or Typeface\n  .setImage(R.drawable.dummy_image)\n  .addItem(versionElement)\n  .addItem(adsElement)\n  .addGroup(\"Connect with us\")\n  .addEmail(\"elmehdi.sakout@gmail.com\")\n  .addWebsite(\"https://mehdisakout.com/\")\n  .addFacebook(\"the.medy\")\n  .addTwitter(\"medyo80\")\n  .addYoutube(\"UCdPQtdWIsg7_pi4mrRu46vA\")\n  .addPlayStore(\"com.ideashower.readitlater.pro\")\n  .addGitHub(\"medyo\")\n  .addInstagram(\"medyo80\")\n  .create();\n```\n\n## Setup\nAvailable on Jcenter, Maven and JitPack\n\n```groovy\nimplementation 'io.github.medyo:android-about-page:2.0.0'\n```\n\n\n## Usage\n### 1. Add Description\n\n```java\nsetDescription(String)\n```\n\n### 2. Add Image\n```java\nsetImage(Int)\n```\n\n### 3. Add predefined Social network\nThe library has already some predefined social networks like :  \n\n* Facebook\n* Twitter\n* Instagram\n* Youtube\n* PlayStore\n\n```java\naddFacebook(String PageID)\naddTwitter(String AccountID)\naddYoutube(String AccountID)\naddPlayStore(String PackageName)\naddInstagram(String AccountID)\naddGitHub(String AccountID)\n```\n\n### 4. Add Custom Element\nFor example `app version` :\n\n```java\nElement versionElement = new Element();\nversionElement.setTitle(\"Version 6.2\");\naddItem(versionElement)\n```\n\n### 5. Available attributes for Element Class\n\n\n| Function        | Description  |\n| ------------- |:-------------:|\n| setTitle(String) | Set title of the element|\n| setIconTint(Int) | Set color of the element|\n| setSkipTint(Boolean) | Skip tinting the icon (useful when using non vector drawables)|\n| setIconDrawable(Int) | Set icon of the element|\n| setValue(String) | Set Element value like Facebook ID|\n| setIntent(Intent) | Set an intent to be called on `onClickListener` |\n| setGravity(Gravity) | Set a Gravity for the element  |\n| setOnClickListener(View.OnClickListener) | If `intent` isn't suitable for you need, implement your custom behaviour by overriding the click listener|\n\n### 6. How to use the library in a fragment\n```java\n @Override\n    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n        return new AboutPage(getContext())\n                .isRTL(false)\n                .setDescription(getString(R.string.app_description))\n                .addGroup(getString(R.string.contact_group))\n                .addEmail(\"us@example.com\", \"Email\")\n                .addGroup(getString(R.string.application_information_group))\n                .addItem(new VersionElement())\n                .create();\n    }\n```\nsnippet by [nrhoffmann](https://github.com/nrhoffmann)\n\n### 7. Styling\n\nThe library supports day-night modes. The dependents may use the following\nstyling attributes to create a dedicated style for `AboutPage`. If the\ndependents choose not to specify an explicit style, the library falls back to\nsensible defaults.\n\nFirst, declare an `AboutPage` style in your `styles.xml`.\n\n```xml\n\u003c!-- Define a global style for AboutPage in your 'styles.xml' --\u003e\n\u003cstyle name=\"Widget.App.AboutPage\" parent=\"about_About\"\u003e\n  \u003citem name=\"aboutBackground\"\u003e#ffffff\u003c/item\u003e\n  \u003citem name=\"aboutElementIconTint\"\u003e#333333\u003c/item\u003e\n  \u003citem name=\"aboutSeparatorColor\"\u003e#999999\u003c/item\u003e\n  \u003citem name=\"aboutDescriptionTextAppearance\"\u003e@style/TextAppearance.App.AboutPage.Description\u003c/item\u003e\n\n  \u003c!-- similarly, you can also apply the following text appearances --\u003e\n  \u003citem name=\"aboutElementTextAppearance\"\u003e@style/about_elementTextAppearance.Dark\u003c/item\u003e\n  \u003citem name=\"aboutGroupTextAppearance\"\u003e@style/about_groupTextAppearance\u003c/item\u003e\n\u003c/style\u003e\n\n\u003cstyle name=\"TextAppearance.App.AboutPage.Description\" parent=\"about_descriptionTextAppearance.Dark\"\u003e\n  \u003citem name=\"android:textStyle\"\u003ebold|italic\u003c/item\u003e\n\u003c/style\u003e\n\n```\n\nTo apply this style globally, assign its reference to `aboutStyle` attribute in\nyour app theme.\n\n```xml\n\u003cstyle name=\"Theme.App\" parent=\"Theme.AppCompat\"\u003e\n  \u003citem name=\"aboutStyle\"\u003e@style/Widget.AboutPage\u003c/item\u003e\n\u003c/style\u003e\n```\n\nOr explicitly pass the style resource to the `AboutPage` constructor to apply it\non selective `AboutPage` instances.\n\n```java\nAboutPage aboutPage = new AboutPage(context, R.style.Widget_AboutPage);\n```\n\n### 8. Force Night/Day mode\n\nWe recommend that the dependents use\n[`AppCompatDelegate.setDefaultNightMode()`](https://developer.android.com/reference/androidx/appcompat/app/AppCompatDelegate#setDefaultNightMode(int))\nto force enable/disable the night mode across their apps. If the dependents are\nunable to use the recommended approach, they can use the `AboutPage(Context,\nboolean)` constructor to specify the desired mode. The dependents must note that\nby using this constructor, the `AboutPage` will use its default styles, ignoring\nany explicitly specified style.\n\n```java\nAboutPage aboutPage = AboutPage(context, true); // force enable dark mode.\nAboutPage aboutPage = AboutPage(context, false); // force enable bright mode.\n```\n\n## Sample Project\n[medyo/android-about-page/app/](https://github.com/medyo/android-about-page/tree/master/app)\n\n## Translations\nThe library does supports the following languages :\n\n* Arabic (by [zecharyah](https://github.com/zecharyah))\n* Catalan (by [unxavi](https://github.com/unxavi))\n* Croatian (by [skmlcd](https://github.com/skmlcd))\n* Czech (by [semanticer](https://github.com/semanticer))\n* Dutch (by [artaex](https://github.com/artaex))\n* English (by [medyo](https://github.com/medyo))\n* French (by [medyo](https://github.com/medyo))\n* Georgian (by [tatocaster](https://github.com/tatocaster))\n* German (by [vanniktech](https://github.com/vanniktech) \u0026\u0026 [nikothegreek](https://github.com/nikothegreek))\n* Greek (by [jvoyatz](https://github.com/jvoyatz))\n* Hungarian (by [jbarat](https://github.com/jbarat))\n* Indian (by [kartikarora](https://github.com/kartikarora))\n* Indonesian (by [hyuwah](https://github.com/hyuwah))\n* Italian (by [greenaddress](https://github.com/greenaddress))\n* Japanese (by [chibatching](https://github.com/chibatching))\n* Korean (by [Alfex4936](https://github.com/Alfex4936))\n* Persian (by [mortezasun](https://github.com/mortezasun))\n* Polish (by [karmil32](https://github.com/karmil32))\n* Portuguese Brazil (by [rbaprado](https://github.com/rbaprado))\n* Romanian (by [Vally79](https://github.com/Vally79))\n* Russian (by [NumezmaT](https://github.com/NumezmaT))\n* Serbian (by [ljmocic](https://github.com/ljmocic))\n* Simplified Chinese (by [whiskeyfei](https://github.com/whiskeyfei))\n* Slovenian (by [skmlcd](https://github.com/skmlcd))\n* Spanish (by [danramirez](https://github.com/danramirez))\n* Swedish (by [Krillsson](https://github.com/Krillsson))\n* Traditional Chinese (by [ppcrong](https://github.com/ppcrong))\n* Turkish (by [tekseker](https://github.com/tekseker))\n* Ukrainian (by [NumezmaT](https://github.com/NumezmaT))\n* Uzbek (by [gladuz](https://github.com/gladuz))\n* Norwegian Nynorsk (by [boxhock](https://github.com/boxhock))\n* Norwegian Bokmål (by [boxhock](https://github.com/boxhock))\n* Azerbaijani (by [Chingiz](https://github.com/Chingiz))\n* Hebrew (by [evyatar100](https://github.com/evyatar100))\n* Bulgarian (by [kstoyanov5](https://github.com/kstoyanov5))\n\nPlease make a Pull request to add a new language.\n\n## ProGuard\nNothing to include\n\n## License\n\n~~~\nThe MIT License (MIT)\nCopyright (c) 2016 Mehdi Sakout\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n~~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedyo%2Fandroid-about-page","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmedyo%2Fandroid-about-page","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedyo%2Fandroid-about-page/lists"}