help for showing or hiding view on android
To get a Git project into your build:
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.XingRay:ViewTeam:0.2.1'
}
viewTeam = ViewTeam.of(container)
.inflate(1, R.layout.team_01)
.add(2, Button(applicationContext).apply {
text = "team02"
})
.merge(3, R.layout.team_linearlayout)
viewTeam.setTeam(teamId)
more usage see sample