Skip to content

Commit 4e262ec

Browse files
Merge pull request #17 from EusebiuCandrea/eusebiu_dev
Eusebiu dev
2 parents 69ae8fc + eed662e commit 4e262ec

File tree

28 files changed

+200
-161
lines changed

28 files changed

+200
-161
lines changed

.idea/codeStyles/Project.xml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ apply plugin: 'kotlin-android-extensions'
66

77
android {
88
compileSdkVersion 29
9-
buildToolsVersion "29.0.2"
9+
buildToolsVersion "29.0.3"
1010
defaultConfig {
1111
applicationId "com.example.tooltipopbyword"
12-
minSdkVersion 23
12+
minSdkVersion 26
1313
targetSdkVersion 29
1414
versionCode 1
1515
versionName "1.0"
@@ -26,12 +26,13 @@ android {
2626
dependencies {
2727
implementation fileTree(dir: 'libs', include: ['*.jar'])
2828
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
29-
implementation 'androidx.appcompat:appcompat:1.1.0'
30-
implementation 'androidx.core:core-ktx:1.0.2'
31-
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
32-
testImplementation 'junit:junit:4.12'
33-
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
34-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
29+
implementation 'androidx.appcompat:appcompat:1.2.0'
30+
implementation 'androidx.core:core-ktx:1.3.2'
31+
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
32+
implementation 'com.google.android.material:material:1.3.0'
33+
testImplementation 'junit:junit:4.13.1'
34+
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
35+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
3536

3637
implementation project (path: ':tooltipopupwordtv')
3738
}

app/src/main/java/com/example/tooltipopbyword/MainActivity.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import android.widget.TextView
55
import android.widget.Toast
66
import androidx.appcompat.app.AppCompatActivity
77
import androidx.core.content.ContextCompat
8-
import com.ecandrea.library.tooltipopwordtv.listeners.SelectableWordListeners
9-
import com.ecandrea.library.tooltipopwordtv.tooltipopupWindows.ArrowCustomizer
10-
import com.ecandrea.library.tooltipopwordtv.tooltipopupWindows.ToolPopupWindows
11-
import com.ecandrea.library.tooltipopwordtv.wordTextView.SelectableWordTextView
8+
import com.boyzdroizy.library.tooltipopwordtv.listeners.SelectableWordListeners
9+
import com.boyzdroizy.library.tooltipopwordtv.tooltipopupWindows.ArrowCustomised
10+
import com.boyzdroizy.library.tooltipopwordtv.tooltipopupWindows.ToolPopupWindows
11+
import com.boyzdroizy.library.tooltipopwordtv.wordTextView.SelectableWordTextView
1212
import kotlinx.android.synthetic.main.activity_main.*
1313
import kotlinx.android.synthetic.main.custom_layout.view.*
1414

@@ -32,7 +32,7 @@ class MainActivity : AppCompatActivity() {
3232
.setTitleTextColor(ContextCompat.getColor(this@MainActivity, R.color.colorAccent))
3333
.setTitleTextSize(20f)
3434
.setIsOutsideTouchable(false)
35-
.setArrowCustomizer(ArrowCustomizer.Builder(this@MainActivity)
35+
.setArrowCustomizer(ArrowCustomised.Builder(this@MainActivity)
3636
.setArrowSize(14)
3737
.build())
3838
.build()
@@ -54,7 +54,7 @@ class MainActivity : AppCompatActivity() {
5454
.setIsOutsideTouchable(true)
5555
.setWidthPercentsFromScreen(0.7)
5656
.setAutoDismissDuration(2000)
57-
.setArrowCustomizer(ArrowCustomizer.Builder(this@MainActivity)
57+
.setArrowCustomizer(ArrowCustomised.Builder(this@MainActivity)
5858
.setArrowColor(ContextCompat.getColor(this@MainActivity, R.color.arrow))
5959
.setArrowSize(25)
6060
.build())
@@ -91,7 +91,7 @@ class MainActivity : AppCompatActivity() {
9191
const val text1 = "No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to " +
9292
"pursue pleasure rationally encounter consequences that are extremely painful."
9393

94-
const val text2 = "One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible " +
94+
const val text2 = "One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible" +
9595
"vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided " +
9696
"by arches into stiff sections."
9797
}

app/src/main/res/layout/activity_main.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
android:layout_height="match_parent"
77
android:fillViewport="true">
88

9-
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
10-
xmlns:app="http://schemas.android.com/apk/res-auto"
11-
xmlns:tools="http://schemas.android.com/tools"
9+
<androidx.constraintlayout.widget.ConstraintLayout
1210
android:layout_width="match_parent"
13-
android:layout_height="match_parent"
11+
android:layout_height="wrap_content"
1412
android:background="@color/background_color"
1513
tools:context=".MainActivity">
1614

@@ -41,7 +39,7 @@
4139
android:textColor="@color/colorAccent"
4240
app:layout_constraintTop_toBottomOf="@id/icon" />
4341

44-
<com.ecandrea.library.tooltipopwordtv.wordTextView.SelectableWordTextView
42+
<com.boyzdroizy.library.tooltipopwordtv.wordTextView.SelectableWordTextView
4543
android:id="@+id/word"
4644
android:layout_width="match_parent"
4745
android:layout_height="wrap_content"
@@ -64,7 +62,7 @@
6462
android:textColor="@color/colorAccent"
6563
app:layout_constraintBottom_toTopOf="@id/wordTwo" />
6664

67-
<com.ecandrea.library.tooltipopwordtv.wordTextView.SelectableWordTextView
65+
<com.boyzdroizy.library.tooltipopwordtv.wordTextView.SelectableWordTextView
6866
android:id="@+id/wordTwo"
6967
android:layout_width="match_parent"
7068
android:layout_height="wrap_content"

app/src/main/res/layout/custom_layout.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
android:layout_width="wrap_content"
1717
android:layout_height="wrap_content"
1818
android:layout_gravity="center"
19-
android:textStyle="bold"
2019
android:textColor="@color/colorPrimaryDark"
20+
android:textStyle="bold"
2121
app:layout_constraintEnd_toEndOf="parent"
2222
app:layout_constraintStart_toStartOf="parent"
2323
app:layout_constraintTop_toTopOf="parent"
@@ -27,8 +27,8 @@
2727
android:id="@+id/newDescription"
2828
android:layout_width="match_parent"
2929
android:layout_height="wrap_content"
30-
android:gravity="center"
3130
android:layout_marginTop="@dimen/space_10dp"
31+
android:gravity="center"
3232
android:textColor="@color/colorPrimaryDark"
3333
android:textSize="12sp"
3434
app:layout_constraintBottom_toTopOf="@id/testButton"
@@ -39,14 +39,15 @@
3939

4040
<Button
4141
android:id="@+id/testButton"
42-
android:layout_width="80dp"
43-
android:layout_height="30dp"
42+
android:layout_width="120dp"
43+
android:layout_height="35dp"
4444
android:layout_marginTop="15dp"
4545
android:layout_marginBottom="10dp"
4646
android:background="@drawable/border_dialog"
4747
android:backgroundTint="@color/btn_background"
48+
android:gravity="center"
4849
android:text="Remove"
49-
android:textColor="@color/colorPrimaryDark"
50+
android:textColor="@color/white"
5051
android:textSize="12sp"
5152
app:layout_constraintBottom_toBottomOf="parent"
5253
app:layout_constraintEnd_toEndOf="parent"

app/src/main/res/values/styles.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<resources>
22

33
<!-- Base application theme. -->
4-
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
4+
<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
55
<!-- Customize your theme here. -->
66
<item name="colorPrimary">@color/colorPrimary</item>
77
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88

99
}
1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:3.5.1'
11+
classpath 'com.android.tools.build:gradle:4.1.2'
1212
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1313
// NOTE: Do not place your application dependencies here; they belong
1414
// in the individual module build.gradle files

0 commit comments

Comments
 (0)