diff --git a/.idea/AndroidProjectSystem.xml b/.idea/AndroidProjectSystem.xml new file mode 100644 index 0000000..4a53bee --- /dev/null +++ b/.idea/AndroidProjectSystem.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/caches/deviceStreaming.xml b/.idea/caches/deviceStreaming.xml new file mode 100644 index 0000000..8d2a5ae --- /dev/null +++ b/.idea/caches/deviceStreaming.xml @@ -0,0 +1,1454 @@ + + + + + + \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..b589d56 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml new file mode 100644 index 0000000..5c18785 --- /dev/null +++ b/.idea/deploymentTargetSelector.xml @@ -0,0 +1,18 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index b17f342..aa64d09 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -1,10 +1,12 @@ + diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..3479cd1 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,12 @@ + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..3870572 --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml new file mode 100644 index 0000000..b1077fb --- /dev/null +++ b/.idea/kotlinc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/markdown.xml b/.idea/markdown.xml new file mode 100644 index 0000000..c61ea33 --- /dev/null +++ b/.idea/markdown.xml @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/.idea/migrations.xml b/.idea/migrations.xml new file mode 100644 index 0000000..f8051a6 --- /dev/null +++ b/.idea/migrations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index b8ca955..1a05895 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,10 +1,14 @@ - + + + + + - + diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index d36b263..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml index 7f68460..16660f1 100644 --- a/.idea/runConfigurations.xml +++ b/.idea/runConfigurations.xml @@ -3,9 +3,14 @@ diff --git a/AutoFitTextViewLibrary/.classpath b/AutoFitTextViewLibrary/.classpath deleted file mode 100644 index 298b912..0000000 --- a/AutoFitTextViewLibrary/.classpath +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/AutoFitTextViewLibrary/.project b/AutoFitTextViewLibrary/.project deleted file mode 100644 index 2423645..0000000 --- a/AutoFitTextViewLibrary/.project +++ /dev/null @@ -1,33 +0,0 @@ - - - AutoFitTextViewLibrary - - - - - - com.android.ide.eclipse.adt.ResourceManagerBuilder - - - - - com.android.ide.eclipse.adt.PreCompilerBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.android.ide.eclipse.adt.ApkBuilder - - - - - - com.android.ide.eclipse.adt.AndroidNature - org.eclipse.jdt.core.javanature - - diff --git a/AutoFitTextViewLibrary/AndroidManifest.xml b/AutoFitTextViewLibrary/AndroidManifest.xml deleted file mode 100644 index 82e47a7..0000000 --- a/AutoFitTextViewLibrary/AndroidManifest.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/AutoFitTextViewLibrary/build.gradle b/AutoFitTextViewLibrary/build.gradle deleted file mode 100644 index 413cb76..0000000 --- a/AutoFitTextViewLibrary/build.gradle +++ /dev/null @@ -1,45 +0,0 @@ -apply plugin: 'com.android.library' -apply plugin: 'kotlin-android-extensions' -apply plugin: 'kotlin-android' - -android { - compileSdkVersion 28 - - defaultConfig { - minSdkVersion 14 - targetSdkVersion 28 - versionCode 1 - versionName "1.0" - } - - sourceSets { - main { - manifest.srcFile 'AndroidManifest.xml' - java.srcDirs = ['src'] - resources.srcDirs = ['src'] - aidl.srcDirs = ['src'] - renderscript.srcDirs = ['src'] - res.srcDirs = ['res'] - assets.srcDirs = ['assets'] - } - } - - buildTypes { - release { - minifyEnabled false - } - } - compileOptions { - sourceCompatibility = '1.8' - targetCompatibility = '1.8' - } -} - -dependencies { - implementation 'androidx.appcompat:appcompat:1.0.2' - implementation "androidx.core:core-ktx:1.0.1" - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" -} -repositories { - mavenCentral() -} diff --git a/AutoFitTextViewLibrary/build.gradle.kts b/AutoFitTextViewLibrary/build.gradle.kts new file mode 100644 index 0000000..384295f --- /dev/null +++ b/AutoFitTextViewLibrary/build.gradle.kts @@ -0,0 +1,50 @@ +import org.gradle.kotlin.dsl.withType +import org.jetbrains.kotlin.gradle.dsl.JvmTarget +import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile + +plugins { + id("com.android.library") + id("maven-publish") +} + +android { + namespace = "com.lb.auto_fit_textview" + compileSdk = 36 + + defaultConfig { + minSdk = 23 + } + lint { + targetSdk = 36 + } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 + } + tasks.withType().configureEach { + compilerOptions { + jvmTarget.set(JvmTarget.JVM_17) + } + } + publishing { + singleVariant("release") { + withSourcesJar() + withJavadocJar() + } + } +} + +dependencies { + implementation("com.google.android.material:material:1.13.0") + implementation("androidx.core:core-ktx:1.17.0") +} + +afterEvaluate { + publishing { + publications { + register("release") { + from(components["release"]) + } + } + } +} diff --git a/AutoFitTextViewLibrary/proguard-project.txt b/AutoFitTextViewLibrary/proguard-rules.pro similarity index 100% rename from AutoFitTextViewLibrary/proguard-project.txt rename to AutoFitTextViewLibrary/proguard-rules.pro diff --git a/AutoFitTextViewLibrary/project.properties b/AutoFitTextViewLibrary/project.properties deleted file mode 100644 index e195e98..0000000 --- a/AutoFitTextViewLibrary/project.properties +++ /dev/null @@ -1,14 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system edit -# "ant.properties", and override values to adapt the script to your -# project structure. -# -# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): -#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt -# Project target. -target=android-21 -android.library=true diff --git a/AutoFitTextViewLibrary/src/main/AndroidManifest.xml b/AutoFitTextViewLibrary/src/main/AndroidManifest.xml new file mode 100644 index 0000000..9a40236 --- /dev/null +++ b/AutoFitTextViewLibrary/src/main/AndroidManifest.xml @@ -0,0 +1,3 @@ + + + diff --git a/AutoFitTextViewLibrary/src/com/lb/auto_fit_textview/AutoResizeTextView.kt b/AutoFitTextViewLibrary/src/main/kotlin/com/lb/auto_fit_textview/AutoResizeTextView.kt similarity index 55% rename from AutoFitTextViewLibrary/src/com/lb/auto_fit_textview/AutoResizeTextView.kt rename to AutoFitTextViewLibrary/src/main/kotlin/com/lb/auto_fit_textview/AutoResizeTextView.kt index df5689f..7dfd413 100644 --- a/AutoFitTextViewLibrary/src/com/lb/auto_fit_textview/AutoResizeTextView.kt +++ b/AutoFitTextViewLibrary/src/main/kotlin/com/lb/auto_fit_textview/AutoResizeTextView.kt @@ -1,8 +1,6 @@ package com.lb.auto_fit_textview -import android.annotation.TargetApi import android.content.Context -import android.content.res.Resources import android.graphics.RectF import android.graphics.Typeface import android.os.Build @@ -16,21 +14,23 @@ import androidx.appcompat.widget.AppCompatTextView /** * a textView that is able to self-adjust its font size depending on the min and max size of the font, and its own size.

* code is heavily based on this StackOverflow thread: - * http://stackoverflow.com/questions/16017165/auto-fit-textview-for-android/21851239#21851239

- * It should work fine with most Android versions, but might have some issues on Android 3.1 - 4.04, as setTextSize will only work for the first time.

- * More info here: https://code.google.com/p/android/issues/detail?id=22493 and here in case you wish to fix it: http://stackoverflow.com/a/21851239/878126 + * http://stackoverflow.com/questions/16017165/auto-fit-textview-for-android/21851239#21851239 */ -class AutoResizeTextView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyle: Int = android.R.attr.textViewStyle) : AppCompatTextView(context, attrs, defStyle) { +class AutoResizeTextView @JvmOverloads constructor( + context: Context, + attrs: AttributeSet? = null, + defStyle: Int = android.R.attr.textViewStyle +) : AppCompatTextView(context, attrs, defStyle) { private val availableSpaceRect = RectF() private val sizeTester: SizeTester - private var maxTextSize: Float = 0.toFloat() + private var maxTextSize: Float = 0f private var spacingMult = 1.0f private var spacingAdd = 0.0f - private var minTextSize: Float = 0.toFloat() + private var minTextSize: Float = 0f private var widthLimit: Int = 0 - private var maxLines: Int = 0 + private var maxLinesValue: Int = -1 private var initialized = false - private var textPaint: TextPaint? = null + private var textPaint: TextPaint private interface SizeTester { /** @@ -48,59 +48,58 @@ class AutoResizeTextView @JvmOverloads constructor(context: Context, attrs: Attr minTextSize = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, 12f, resources.displayMetrics) maxTextSize = textSize textPaint = TextPaint(paint) - if (maxLines == 0) - // no value was assigned during construction - maxLines = NO_LINE_LIMIT + maxLinesValue = maxLines + // prepare size tester: sizeTester = object : SizeTester { - internal val textRect = RectF() + val textRect = RectF() - @TargetApi(Build.VERSION_CODES.JELLY_BEAN) override fun onTestSize(suggestedSize: Int, availableSpace: RectF): Int { - textPaint!!.textSize = suggestedSize.toFloat() + textPaint.textSize = suggestedSize.toFloat() val transformationMethod = transformationMethod - val text: String - if (transformationMethod != null) - text = transformationMethod.getTransformation(getText(), this@AutoResizeTextView).toString() - else - text = getText().toString() - val singleLine = maxLines == 1 + val textToTest: String = transformationMethod?.getTransformation(text, this@AutoResizeTextView) + ?.toString() + ?: text.toString() + + val singleLine = maxLinesValue == 1 if (singleLine) { - textRect.bottom = textPaint!!.fontSpacing - textRect.right = textPaint!!.measureText(text) + textRect.bottom = textPaint.fontSpacing + textRect.right = textPaint.measureText(textToTest) } else { val layout: StaticLayout = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { - StaticLayout.Builder.obtain(text, 0, text.length, textPaint!!, widthLimit).setLineSpacing(spacingAdd, spacingMult).setAlignment(Alignment.ALIGN_NORMAL).setIncludePad(true).build() - } else StaticLayout(text, textPaint, widthLimit, Alignment.ALIGN_NORMAL, spacingMult, spacingAdd, true) + StaticLayout.Builder.obtain(textToTest, 0, textToTest.length, textPaint, widthLimit) + .setLineSpacing(spacingAdd, spacingMult) + .setAlignment(Alignment.ALIGN_NORMAL) + .setIncludePad(true) + .build() + } else { + @Suppress("DEPRECATION") + StaticLayout(textToTest, textPaint, widthLimit, Alignment.ALIGN_NORMAL, spacingMult, spacingAdd, true) + } // return early if we have more lines - if (maxLines != NO_LINE_LIMIT && layout.lineCount > maxLines) + if (maxLinesValue != NO_LINE_LIMIT && layout.lineCount > maxLinesValue) return 1 textRect.bottom = layout.height.toFloat() - var maxWidth = -1 + var maxWidth = -1f val lineCount = layout.lineCount for (i in 0 until lineCount) { val end = layout.getLineEnd(i) - if (i < lineCount - 1 && end > 0 && !isValidWordWrap(text[end - 1], text[end])) + if (i < lineCount - 1 && end > 0 && !isValidWordWrap(textToTest[end - 1])) return 1 - if (maxWidth < layout.getLineRight(i) - layout.getLineLeft(i)) - maxWidth = layout.getLineRight(i).toInt() - layout.getLineLeft(i).toInt() + val lineWidth = layout.getLineRight(i) - layout.getLineLeft(i) + if (maxWidth < lineWidth) + maxWidth = lineWidth } - //for (int i = 0; i < layout.getLineCount(); i++) - // if (maxWidth < layout.getLineRight(i) - layout.getLineLeft(i)) - // maxWidth = (int) layout.getLineRight(i) - (int) layout.getLineLeft(i); - textRect.right = maxWidth.toFloat() + textRect.right = maxWidth } textRect.offsetTo(0f, 0f) return if (availableSpace.contains(textRect)) -1 else 1 - // else, too big } } initialized = true } - fun isValidWordWrap(before: Char, after: Char): Boolean { - return before == ' ' || before == '-' - } + private fun isValidWordWrap(c: Char): Boolean = c == ' ' || c == '-' override fun setAllCaps(allCaps: Boolean) { super.setAllCaps(allCaps) @@ -119,43 +118,36 @@ class AutoResizeTextView @JvmOverloads constructor(context: Context, attrs: Attr override fun setMaxLines(maxLines: Int) { super.setMaxLines(maxLines) - this.maxLines = maxLines + this.maxLinesValue = maxLines adjustTextSize() } - override fun getMaxLines(): Int { - return maxLines - } + override fun getMaxLines(): Int = maxLinesValue + @Deprecated("Deprecated in Java", ReplaceWith("maxLines = 1")) override fun setSingleLine() { + @Suppress("DEPRECATION") super.setSingleLine() - maxLines = 1 + maxLinesValue = 1 adjustTextSize() } + @Deprecated("Deprecated in Java", ReplaceWith("maxLines = if (singleLine) 1 else -1")) override fun setSingleLine(singleLine: Boolean) { + @Suppress("DEPRECATION") super.setSingleLine(singleLine) - if (singleLine) - maxLines = 1 - else - maxLines = NO_LINE_LIMIT + maxLinesValue = if (singleLine) 1 else NO_LINE_LIMIT adjustTextSize() } override fun setLines(lines: Int) { super.setLines(lines) - maxLines = lines + maxLinesValue = lines adjustTextSize() } override fun setTextSize(unit: Int, size: Float) { - val c = context - val r: Resources - r = if (c == null) - Resources.getSystem() - else - c.resources - maxTextSize = TypedValue.applyDimension(unit, size, r.displayMetrics) + maxTextSize = TypedValue.applyDimension(unit, size, context.resources.displayMetrics) adjustTextSize() } @@ -167,8 +159,6 @@ class AutoResizeTextView @JvmOverloads constructor(context: Context, attrs: Attr /** * Set the lower text size limit and invalidate the view - * - * @param minTextSize */ fun setMinTextSize(minTextSize: Float) { this.minTextSize = minTextSize @@ -176,31 +166,16 @@ class AutoResizeTextView @JvmOverloads constructor(context: Context, attrs: Attr } private fun adjustTextSize() { - // This is a workaround for truncated text issue on ListView, as shown here: https://github.com/AndroidDeveloperLB/AutoFitTextView/pull/14 - // TODO think of a nicer, elegant solution. - // post(new Runnable() - // { - // @Override - // public void run() - // { - if (!initialized) - return + if (!initialized) return val startSize = minTextSize.toInt() val heightLimit = measuredHeight - compoundPaddingBottom - compoundPaddingTop widthLimit = measuredWidth - compoundPaddingLeft - compoundPaddingRight - if (widthLimit <= 0) - return + if (widthLimit <= 0) return textPaint = TextPaint(paint) availableSpaceRect.right = widthLimit.toFloat() availableSpaceRect.bottom = heightLimit.toFloat() - superSetTextSize(startSize) - // } - // }); - } - - private fun superSetTextSize(startSize: Int) { - val textSize = binarySearch(startSize, maxTextSize.toInt(), sizeTester, availableSpaceRect) - super.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize.toFloat()) + val calculatedSize = binarySearch(startSize, maxTextSize.toInt(), sizeTester, availableSpaceRect) + super.setTextSize(TypedValue.COMPLEX_UNIT_PX, calculatedSize.toFloat()) } private fun binarySearch(start: Int, end: Int, sizeTester: SizeTester, availableSpace: RectF): Int { @@ -212,16 +187,14 @@ class AutoResizeTextView @JvmOverloads constructor(context: Context, attrs: Attr mid = (lo + hi).ushr(1) val midValCmp = sizeTester.onTestSize(mid, availableSpace) if (midValCmp < 0) { - lastBest = lo + lastBest = mid lo = mid + 1 } else if (midValCmp > 0) { hi = mid - 1 - lastBest = hi - } else + } else { return mid + } } - // make sure to return last best - // this is what should always be returned return lastBest } @@ -237,6 +210,6 @@ class AutoResizeTextView @JvmOverloads constructor(context: Context, attrs: Attr } companion object { - private val NO_LINE_LIMIT = -1 + private const val NO_LINE_LIMIT = -1 } } diff --git a/AutoFitTextViewSample/.classpath b/AutoFitTextViewSample/.classpath deleted file mode 100644 index 298b912..0000000 --- a/AutoFitTextViewSample/.classpath +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/AutoFitTextViewSample/.project b/AutoFitTextViewSample/.project deleted file mode 100644 index 9dcca0e..0000000 --- a/AutoFitTextViewSample/.project +++ /dev/null @@ -1,33 +0,0 @@ - - - AutoFitTextViewSample - - - - - - com.android.ide.eclipse.adt.ResourceManagerBuilder - - - - - com.android.ide.eclipse.adt.PreCompilerBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.android.ide.eclipse.adt.ApkBuilder - - - - - - com.android.ide.eclipse.adt.AndroidNature - org.eclipse.jdt.core.javanature - - diff --git a/AutoFitTextViewSample/AndroidManifest.xml b/AutoFitTextViewSample/AndroidManifest.xml deleted file mode 100644 index 335ebc0..0000000 --- a/AutoFitTextViewSample/AndroidManifest.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/AutoFitTextViewSample/build.gradle b/AutoFitTextViewSample/build.gradle deleted file mode 100644 index 21850d3..0000000 --- a/AutoFitTextViewSample/build.gradle +++ /dev/null @@ -1,50 +0,0 @@ -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android-extensions' -apply plugin: 'kotlin-android' - -android { - compileSdkVersion 28 - - defaultConfig { - applicationId "com.example.autofittextviewsample" - minSdkVersion 17 - targetSdkVersion 28 - versionCode 1 - versionName "1.0" - } - - buildTypes { - release { - } - } - - sourceSets { - main { - manifest.srcFile 'AndroidManifest.xml' - java.srcDirs = ['src'] - resources.srcDirs = ['src'] - aidl.srcDirs = ['src'] - renderscript.srcDirs = ['src'] - res.srcDirs = ['res'] - assets.srcDirs = ['assets'] - } - } - compileOptions { - sourceCompatibility = '1.8' - targetCompatibility = '1.8' - } - -} - -dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation 'androidx.appcompat:appcompat:1.0.2' - implementation 'androidx.recyclerview:recyclerview:1.0.0' - implementation project(':AutoFitTextViewLibrary') - implementation 'androidx.core:core-ktx:1.0.1' - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation 'androidx.constraintlayout:constraintlayout:1.1.3' -} -repositories { - mavenCentral() -} diff --git a/AutoFitTextViewSample/build.gradle.kts b/AutoFitTextViewSample/build.gradle.kts new file mode 100644 index 0000000..7bee511 --- /dev/null +++ b/AutoFitTextViewSample/build.gradle.kts @@ -0,0 +1,50 @@ +import org.gradle.kotlin.dsl.withType +import org.jetbrains.kotlin.gradle.dsl.JvmTarget +import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile + +plugins { + id("com.android.application") +} + +android { + namespace = "com.example.autofittextviewsample" + compileSdk = 36 + + defaultConfig { + applicationId = "com.example.autofittextviewsample" + minSdk = 23 + targetSdk = 36 + versionCode = 1 + versionName = "1.0" + } + + buildTypes { + getByName("release") { + isMinifyEnabled = false + proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") + } + } + + compileOptions { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 + } + tasks.withType().configureEach { + compilerOptions { + jvmTarget.set(JvmTarget.JVM_17) + } + } + buildFeatures { + viewBinding = true + } +} + +dependencies { + implementation("com.google.android.material:material:1.13.0") + implementation("androidx.recyclerview:recyclerview:1.4.0") + implementation(project(":AutoFitTextViewLibrary")) + implementation("androidx.core:core-ktx:1.17.0") + implementation("androidx.constraintlayout:constraintlayout:2.2.1") + implementation("com.github.AndroidDeveloperLB:CommonUtils:37") + +} diff --git a/AutoFitTextViewSample/lint.xml b/AutoFitTextViewSample/lint.xml deleted file mode 100644 index 9c0ed5a..0000000 --- a/AutoFitTextViewSample/lint.xml +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/AutoFitTextViewSample/proguard-project.txt b/AutoFitTextViewSample/proguard-rules.pro similarity index 100% rename from AutoFitTextViewSample/proguard-project.txt rename to AutoFitTextViewSample/proguard-rules.pro diff --git a/AutoFitTextViewSample/project.properties b/AutoFitTextViewSample/project.properties deleted file mode 100644 index fb9fae5..0000000 --- a/AutoFitTextViewSample/project.properties +++ /dev/null @@ -1,14 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system edit -# "ant.properties", and override values to adapt the script to your -# project structure. -# -# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): -#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt -# Project target. -target=android-21 -android.library.reference.1=..\\AutoFitTextViewLibrary diff --git a/AutoFitTextViewSample/res/layout/activity_main.xml b/AutoFitTextViewSample/res/layout/activity_main.xml deleted file mode 100644 index 855d748..0000000 --- a/AutoFitTextViewSample/res/layout/activity_main.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - -