All Projects → emil-ep → TournamentBrackets

emil-ep / TournamentBrackets

Licence: MIT License
Android project written in Java to display Tournaments brackets with animation

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to TournamentBrackets

CKBracketView
Tournament bracket view for iOS. Developed in swift.
Stars: ✭ 38 (-2.56%)
Mutual labels:  brackets, tournament-bracket
brackets-viewer.js
A simple library to display tournament brackets (round-robin, single elimination, double elimination).
Stars: ✭ 52 (+33.33%)
Mutual labels:  bracket, tournament-bracket
bootstrap-starter-template
Bootstrap Starter Template for Brackets
Stars: ✭ 33 (-15.38%)
Mutual labels:  brackets
tournament-generator
A set of classes used to create multiple kinds of tournament brackets in PHP
Stars: ✭ 38 (-2.56%)
Mutual labels:  bracket
coronate
A Swiss-style chess tournament management app.
Stars: ✭ 96 (+146.15%)
Mutual labels:  tournament-manager
esx scoreboard
esx - scoreboard | A user friendly scoreboard for your server ;)
Stars: ✭ 28 (-28.21%)
Mutual labels:  scoreboard
tabout
Tab out of quotes, brackets, etc for Visual Studio Code
Stars: ✭ 67 (+71.79%)
Mutual labels:  brackets
Cake
Yummy syntax theme for Atom, Brackets, Sublime Text and Visual Studio Code
Stars: ✭ 47 (+20.51%)
Mutual labels:  brackets
lazy ncaa elm
An Elm app to randomly generate tournament bracket winners
Stars: ✭ 14 (-64.1%)
Mutual labels:  bracket
brackets-htmlhint
Brackets wrapper for HTMLHint
Stars: ✭ 29 (-25.64%)
Mutual labels:  brackets
CIBYL
Lightweight curly-bracket language which compiles to Ruby and Crystal.
Stars: ✭ 45 (+15.38%)
Mutual labels:  brackets
API
API for SQLMatches.
Stars: ✭ 48 (+23.08%)
Mutual labels:  scoreboard
Glaedr
An extensive, modular functional scoreboard library for the Bukkit/Spigot API.
Stars: ✭ 23 (-41.03%)
Mutual labels:  scoreboard
brackets-zurb-foundation
This Brackets extension adds the Zurb Foundation basic template to an empty new file.
Stars: ✭ 30 (-23.08%)
Mutual labels:  brackets
smashgg.js
Node.JS SDK for the Smash.gg public API.
Stars: ✭ 31 (-20.51%)
Mutual labels:  brackets
react-brackets
Reusable and customizable react brackets component, you can use it to build components such as single elimination, or double elimination brackets
Stars: ✭ 56 (+43.59%)
Mutual labels:  brackets
dewdle
A remote video-feed drawing tool (telestrator) for streaming and broadcast environments.
Stars: ✭ 29 (-25.64%)
Mutual labels:  scoreboard
brackets-compare
Brackets extension to diff files.
Stars: ✭ 49 (+25.64%)
Mutual labels:  brackets
scoreboard
Online judge scoreboard parser
Stars: ✭ 23 (-41.03%)
Mutual labels:  scoreboard
world-cup-scoreboards
⚽🏆 A Node.js CLI to show FIFA World Cup 2018 results in real time.
Stars: ✭ 16 (-58.97%)
Mutual labels:  scoreboard

TournamentBracketLib

A library to generate tournament brackets with smooth transition and animations.

Find the Library repository here : https://github.com/Emil333/TournamentBracketLib

Screenrecorder-2021-06-19-21-12-54-701.mp4

Use Cases of TournamentBracketLib

  • Include a layout for tournament brackets in your project
  • provides customisation options for background color, bracket color and text colors

Find this project useful? ❤️

  • support it by providing a ⭐️ on the upper right of this page.

Requirement

  • TournamentBracketLib can be included in Android version 7 (Nougat) and above

Using TournamentBracket in your application

  • Add this to your project level build.gradle

    allprojects {
     	repositories {
     		...
     		maven { url 'https://jitpack.io' }
     	}
     }
    
  • Add the dependency

    dependencies {
              implementation 'com.github.emil-ep:TournamentBracketLib:1.0.4'
      }
    
  • Add a BracketsView component in your XML file

    <com.ventura.bracketslib.BracketsView
          android:id="@+id/bracket_view"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          app:bracketBackgroundColor="#1c222e"
          app:bracketColor="#262e40"
          app:bracketTextColor="#fff" />
          
    
  • Initialise your BracketsView

    BracketsView bracketsView = findViewById(R.id.bracket_view);
    
    
  • Provide the necessary data to populate the Brackets

    • Breaking down the Attributes
      • CompetitorData corresponds to an object with the necessary team/player data. Takes in name and score as parameters.

         CompetitorData brazilSemiFinal = new CompetitorData("Brazil", "3");
         CompetitorData englandSemiFinal = new CompetitorData("England", "1");
         CompetitorData argentinaSemiFinal = new CompetitorData("Argentina", "3");
         CompetitorData russiaSemiFinal = new CompetitorData("Russia", "2");
         CompetitorData brazilFinal = new CompetitorData("Brazil", "4");
         CompetitorData argentinaFinal = new CompetitorData("Argentina", "2");
        
        
      • MatchData corresponds to an object with the necessary competitor informations for a particular Match. Takes in two CompetitorData as parameters(Team1, Team2).

          MatchData match1SemiFinal = new MatchData(brazilSemiFinal, englandSemiFinal);
          MatchData match2SemiFinal = new MatchData(argentinaSemiFinal, russiaSemiFinal);
          MatchData match3Final = new MatchData(brazilFinal, argentinaFinal);
        
      • ColomnData corresponds to list of matches that needs to be displayed in a section (Semi final, final etc). Takes in a list of MatchData as parameter.

          ColomnData semiFinalColomn = new ColomnData(Arrays.asList(match1SemiFinal, match2SemiFinal));
          ColomnData finalColomn = new ColomnData(Arrays.asList(match3Final));
        
  • call the setBracketsData(List<ColomnData> sectionList) methods from bracketsView

    bracketsView.setBracketsData(Arrays.asList(semiFinalColomn, finalColomn));
    
    
  • All set 👏🏻

  • Additional functionalities like double elimination mode, single elimination mode are available in a premium version. Please contact [email protected] for more details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].