Commit 1d160b89 authored by Tassilo Busche's avatar Tassilo Busche

Merge remote-tracking branch 'origin/master'

parents 08c8ef9c 83f20061
# Installation
Add Maven repository
https://mvn.tickaroo.com
to your project and
com.tickaroo:sdk:2.8.0
to the dependencies of your app.
# Javadoc
http://builds.tickaroo.net/pub/doc/embed/android/
# Integration
First you have to initialize `TickarooEmbedManager` by invoking the default constructor. This has to be done exactly once. For your `TickarooEmbedManager` you have to provide an implementation of `TickarooEmbedManagerDelegate`.
# Styling
The following four colours can be overridden in the resources:
- tickaroo\_primary\_color
- tickaroo\_primary\_color\_dark
- tickaroo\_accent\_color
- tickaroo\_accent\_color\_dark
By default the primary colours are green and the accent colours are orange.
The following four fonts can be changed to any standard android font family by overwriting the values in res/values-v16/strings.xml
- font\_family\_medium
- font\_family\_light
- font\_family\_black
- font\_family\_regular
By default these are set to the corresponding sans-serif font families, normally Roboto. The comic font can be replaced by a custom font file in assets/fonts. The file name is specified by the string font\_file\_comic
\ No newline at end of file
......@@ -29,7 +29,7 @@ class SampleActivity : Activity() {
init_owner.setOnClickListener {
try {
TickarooEmbedManager(this, "Tickaroo Sample", resources.getString(R.string.client_id),
RefreshAuto, ScoreboardImageModeOwner, SampleDelegate(), "staging.tickaroo.com")
RefreshAuto, ScoreboardImageModeOwner, SampleDelegate(), "www.tickaroo.com")
pre_init.visibility = GONE
post_init.visibility = VISIBLE
} catch (e: IllegalStateException) {
......@@ -40,7 +40,7 @@ class SampleActivity : Activity() {
init_empty.setOnClickListener {
try {
TickarooEmbedManager(this, "Tickaroo Sample", resources.getString(R.string.client_id),
RefreshAuto, ScoreboardImageModeNone, SampleDelegate(), "staging.tickaroo.com")
RefreshAuto, ScoreboardImageModeNone, SampleDelegate(), "www.tickaroo.com")
pre_init.visibility = GONE
post_init.visibility = VISIBLE
} catch (e: IllegalStateException) {
......@@ -51,7 +51,7 @@ class SampleActivity : Activity() {
sample.setOnClickListener {
try {
val tickerRef = TickerRef()
tickerRef.tickerId = "58d0d5c3af5f1e8cb50aa1cd"
tickerRef.tickerId = "58e3b1ebf7596cf6cfae69c1"
startActivity(TickarooEmbedManager.tickerIntentForRef(this, tickerRef))
} catch (e: IllegalStateException) {
exceptionHandler(e)
......@@ -61,7 +61,7 @@ class SampleActivity : Activity() {
sample2.setOnClickListener {
try {
val tickerRef = TickerRef()
tickerRef.tickerId = "58aff3cdaf5f1e8cb50a9c50"
tickerRef.tickerId = "58e3b1ebf7596cf6cfae69c1"
tickerRef.showScoreboard = false
startActivity(TickarooEmbedManager.tickerIntentForRef(this, tickerRef))
} catch (e: IllegalStateException) {
......@@ -80,7 +80,7 @@ class SampleActivity : Activity() {
init_again.setOnClickListener {
try {
TickarooEmbedManager(this, "Tickaroo Sample", resources.getString(R.string.client_id),
RefreshAuto, ScoreboardImageModeOwner, SampleDelegate(), "staging.tickaroo.com")
RefreshAuto, ScoreboardImageModeOwner, SampleDelegate(), "www.tickaroo.com")
} catch (e: IllegalStateException) {
exceptionHandler(e)
}
......
<resources>
<string name="app_name">SDK Sample App</string>
<string name="client_id">57d6a6bbe4b0cc1b8e5871b0</string>
<string name="client_id">57a4a6dde4b09371f9e75743</string>
</resources>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment