This is the client component. The server is here.
Get information about your current games:
TeamWard isn't endorsed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially involved in producing or managing League of Legends. League of Legends and Riot Games are trademarks or registered trademarks of Riot Games, Inc. League of Legends © Riot Games, Inc.
For more information about TeamWard, please visit https://github.com/neamar/teamward-server
Most of the code lives in the GameActivity, through different fragments.
The least intutitive thing is probably how to add a new kind of tip, since it requires change in a lot of files.
tip
, extending Tip, or reuse an existing one (for instance PlayerStandardTip). It should be a very simple holder to store data you'll need for display, nothing more.tip.builder
extending TipBuilder
getTips()
method, returning an ArrayList<? extends Tip>tip.holder
, extending from TipHolder, that will be used to display the tip in the recyclerview.
bindtip(Tip)
method. You can safely cast the Tip to your subclass.onCreateViewHolder
method that will be responsible for inflating the view you want to use (don't forget to use both the layout AND the Holder)tip.Tip
class, add a reference to your builder in property tipsBuilders
. Order will define the order of the card, so you may want to add it somewhere else than at the endadapter.TipAdapter.onCreateViewHolder
, add a new else
comparing the value of your class hashcode with the specified integer, and call your onCreateViewHolder
function.