作者:冬季梅花1991_156 | 来源:互联网 | 2023-05-18 23:28
ImlookingforchangingtheTextViewSizesautomatically.AndIfoundthesolutionaswell.Hereis
I'm looking for changing the TextView Sizes automatically. And I found the solution as well. Here is the official Doc for Auto sizing textviews. But Still I'm not able to resolve it. When i paste autoSizeTextType its showing error in xml file.
我正在寻找自动更改TextView大小。我也找到了解决方案。以下是自动调整文本视图的官方文档。但我还是无法解决它。当我将autoSizeTextType粘贴到xml文件中时显示错误。
Here is the my xml code and gradle code snippets
这是我的xml代码和gradle代码片段
myactivity.xml
Gradle snippet
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:support-v4:25.2.0'//Added support library
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.android.support:design:25.2.0'
testCompile 'junit:junit:4.12'
}
3 个解决方案