-
Notifications
You must be signed in to change notification settings - Fork 12
AppWedge
James Fenn edited this page Feb 2, 2021
·
5 revisions
The AppWedge
displays the app icon, name, version, and links to the project sites in a small layout. By default, the icon and app name are fetched from your app's AndroidManifest.xml
, and all other information is fetched from the repo API if the repo
attribute has been specified.
<me.jfenn.attribouter.wedges.AppWedge
repo="github:fennifith/Attribouter"
icon="@mipmap/ic_launcher"
title="Attribouter"
websiteUrl="https://jfenn.me/Attribouter/" />
Attribute | Type | Description |
---|---|---|
repo | String (name/repository) | The repository URI to fetch data from. |
icon | String (URL) / Drawable Resource | The app icon to display. |
title | String | The app title to show (defaults to the application label if unspecified). |
description | String / String Resource | A short description of the app/project (no longer shown in the UI - still supported for custom layouts, though). |
playStoreUrl | String / String Resource (URL) | The URL of the app on the Play Store (generated from the package name by default). |
websiteUrl | String / String Resource (URL) | The website of the project. |
repoUrl | String / String Resource (URL) | The URL for the open source GitHub project. You do not need to define this unless the URL inferred from the repo attribute is incorrect. |
The links that are automatically created by this wedge are as follows. See LinkWedge
for more information.
ID | Description | Required Attributes |
---|---|---|
git | The git repository of the project. |
repo or repoUrl
|
website | The website of the project. |
repo (if the repo has a website assigned) or websiteUrl
|
playStore | A 'rate' button that opens the app in the play store. |
playStoreUrl or repo (if the repository url is the play store url) |
This documentation can also be found at https://jfenn.me/.