Skip to content

Commit 94307f7

Browse files
committed
Release version 2.0.5
1 parent 7ab41d8 commit 94307f7

21 files changed

+353
-404
lines changed

app/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
3+
apply plugin: 'kotlin-android-extensions'
24
apply from: '../dependencies.gradle'
35

46
android {
@@ -16,6 +18,7 @@ android {
1618
}
1719

1820
dependencies {
21+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$versions.kotlin"
1922
implementation "androidx.appcompat:appcompat:$versions.androidxAppcompat"
2023
implementation "com.google.android.material:material:$versions.googleMaterial"
2124
implementation project(":elasticviews")

app/src/main/java/com/skydoves/elasticviewsdemo/ExampleActivity0.java

Lines changed: 0 additions & 78 deletions
This file was deleted.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/*
2+
* The MIT License (MIT)
3+
*
4+
* Copyright (c) 2017 skydoves
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
package com.skydoves.elasticviewsdemo
25+
26+
import android.graphics.Color
27+
import android.os.Bundle
28+
import android.view.View
29+
import android.widget.Toast
30+
import androidx.appcompat.app.AppCompatActivity
31+
import com.google.android.material.snackbar.Snackbar
32+
import com.skydoves.elasticviews.ElasticCheckButton
33+
34+
class ExampleActivity0 : AppCompatActivity() {
35+
36+
override fun onCreate(savedInstanceState: Bundle?) {
37+
super.onCreate(savedInstanceState)
38+
setContentView(R.layout.activity_example0)
39+
}
40+
41+
fun checkButtons(v: View) {
42+
val elasticCheckButton = v as ElasticCheckButton
43+
Snackbar.make(
44+
v,
45+
"[Change checked state] " +
46+
elasticCheckButton.text.toString() +
47+
" : " +
48+
elasticCheckButton.isChecked,
49+
200)
50+
.setActionTextColor(Color.WHITE)
51+
.show()
52+
}
53+
54+
fun layout(v: View) {
55+
Snackbar.make(v, "Pop-up likes 'TimePickerDialog'", 200).setActionTextColor(Color.WHITE).show()
56+
}
57+
58+
fun imageViews(v: View) {
59+
when (v.id) {
60+
R.id.example0_ibtn_q_timeset01 -> Snackbar.make(v, "Alarm goes off between start-time and end-time", 200)
61+
.setActionTextColor(Color.WHITE)
62+
.show()
63+
R.id.example0_ibtn_q_timeset02 -> Snackbar.make(v, "This is time interval description", 200)
64+
.setActionTextColor(Color.WHITE)
65+
.show()
66+
}
67+
}
68+
69+
fun addNewAlarm(v: View) {
70+
Toast.makeText(baseContext, "a new Alarm added!", Toast.LENGTH_SHORT).show()
71+
finish()
72+
}
73+
}

app/src/main/java/com/skydoves/elasticviewsdemo/ExampleActivity1.java

Lines changed: 0 additions & 136 deletions
This file was deleted.

0 commit comments

Comments
 (0)