android - 删除 androidx 首选项上的空图标空间

标签 android android-xml android-preferences androidx

我刚刚将我的项目迁移到使用 androidx 库。新的首选项/设置屏幕现在显示空白图标空间,如图所示 here .

我尝试了 official documentation没有运气。如何去除首选项前的空白图标空间?

最佳答案

你可以用这个删除空的图标空间:

app:iconSpaceReserved="false"

关于android - 删除 androidx 首选项上的空图标空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54394971/

相关文章:

android - Android/Ionic 上 navigator.mediaDevices.getUserMedia 的 DOMException

Android 检测用户滑动完成的时间

android - 以下类无法实例化 android.support.v7.widget.AppCompatTextView

android - 如何在 Android 应用程序上放置 "About"部分

java - 无法将类型为 java.lang.Long 的对象转换为类型

android - Android上的百度 map : access key does not work for location searching

android - TypedArray.getInteger() 和 TypedArray.getInt() 有什么区别?

Android - 带有首选项支持库的 EditTextPreference 中没有 getEditText 方法

android - Activity 布局 : Fragment class: vs android:name attributes

Android:2 个 fragment 共享相同的 ViewPager XML 布局