gpt4 book ai didi

android - 如何改变KeyPreview的高度

转载 作者:行者123 更新时间:2023-11-29 20:56:31 25 4
gpt4 key购买 nike

我在做软键盘,想改变软键盘的按键预览高度。

  <TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:gb="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="200dp"
android:background="@drawable/shape_key_preview_bkgnd" />

按键预览的高度完全没有变化。如何更改键预览的高度

最佳答案

您应该将以下代码添加到您的键盘 View 布局 xml 文件中。

android:keyPreviewHeight="200dp"

关于android - 如何改变KeyPreview的高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27540869/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com