在我的应用程序的运行配置中,我已经"使用相同的设备进行未来的启动" 未经检查,尽管它始终在同一目标上运行,直到我自己终止进程,或者构建失败.如果我在途中启动新的模拟器实例并不重要.
这是AS中的错误吗?我可以比杀死这个过程更清洁吗?
(Android Studio 2.3,64位Linux)
Android studio 一直告诉我项目是旧格式,即使我已经转换了它(实际上是 2 次 - 现在它说备份将存储在projectFilesBackup3 中)。点击详情显示:
JUnitConfiguration 类型的 RunConfigurations 将转换为 AndroidJUnitConfiguration。JUnit 测试和 Android Instrumented 测试将一起正常工作。
它有效,但只是不方便。有趣的是,所有这些备份目录都是空的。不过,我如何永久解决这个问题?
android android-studio android-studio-3.0 android-studio-3.1
当我使按钮宽度与父级匹配时,可绘制的开始和文本距离太远,并且它们似乎不尊重android:drawablePadding设置。我也尝试过,android:gravity="center"但android:textAlignment="center"没有成功。设置一些paddingStart/End会间接影响它们之间的距离。请参阅下面的结果:
按钮的代码:
<Button
style="@style/ActionButton.Primary.Light.Large"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:drawableLeft="@drawable/ic_filter_and_sort_white"
android:drawablePadding="0dp"
android:textAlignment="center"
android:text="Apply filters"
app:layout_constraintBottom_toTopOf="@id/someViewBelow"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/someViewAbove" />
Run Code Online (Sandbox Code Playgroud)
样式定义了background, textColor, margins, minDimensions, paddings, radiuses, textSize, textAllCaps, radiuses, stateListAnimator, fontPath- 所以没有什么会影响我正在寻找的内容。
android android-layout android-button material-components material-components-android
android ×3