-
Notifications
You must be signed in to change notification settings - Fork 12
ContributorWedge
James Fenn edited this page Jun 26, 2020
·
3 revisions
The ContributorWedge
displays a set of information about a person in a small layout. If the bio
attribute is defined, a dialog will appear upon interaction displaying more information, such as... um... their biography... and links. If it is not defined, it will open the highest priority LinkWedge
child instead.
<me.jfenn.attribouter.wedges.ContributorWedge
login="github:fennifith"
name="James Fenn"
avatar="https://avatars3.githubusercontent.com/u/13000407"
task="Developer"
bio="It me."
websiteUrl="https://jfenn.me/"
email="[email protected]"
position="1" />
Attribute | Type | Description |
---|---|---|
login | String | The git username/login URI of the contributor (especially useful for overriding specific attributes of certain contributors. |
name | String / String Resource | The name of the contributor. |
avatar | String (URL) / Drawable Resource | The "profile picture" of the contributor. |
task | String / String Resource | A short phrase describing the contributor's role in the project ("Icon Designer", "Founder", etc). |
bio | String / String Resource | The biography of the contributor. |
websiteUrl | String | The contributor's website. |
String / String Resource | The email of the contributor. | |
position | Integer | If this attribute is given to three contributors with values between 1 and 3 (one each), they will be displayed in a row at the top of the list (1 in the middle, slightly bigger, 2 on the left, 3 on the right). |
hidden | Boolean | Whether to remove the contributor from the list. This is only really useful if you want to remove certain contributors that are fetched from the API. Default value is 'false', obviously. |
The links that are automatically created by this wedge are as follows. See LinkWedge
for more information.
ID | Description | Required Attributes |
---|---|---|
git | The git profile of the contributor. |
login or profileUrl
|
website | The website of the contributor. |
websiteUrl or login (if the user has a blog defined on their git profile) |
The email of the contributor. |
email or login (if the user has a public email on their git profile) |
This documentation can also be found at https://jfenn.me/.