【SoftKeyboard研究系列】Keyboard.Row研究

本文详细介绍了Android中Keyboard.Row类,它是键盘上的键行容器。内容包括Row的默认属性,如横向和纵向间隙、键的高度和宽度,以及与键盘模式相关的方法。此外,还讨论了源码分析和Row的研究。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、Keyboard.Row doc位置


本地:%ANDROID_HOME%/sdk/docs/reference/android/inputmethodservice/Keyboard.Row.html

Web:


二、Keyboard.Row doc内容


Added in  API level 3
public static class

Keyboard.Row

extends  Object
java.lang.Object
   ↳ android.inputmethodservice.Keyboard.Row

Class Overview


Container for keys in the keyboard. All keys in a row are at the same Y-coordinate. Some of the key size defaults can be overridden per row from what the Keyboard defines.

Summary


XML Attributes
Attribute Name Related Method Description
android:horizontalGap   Default horizontal gap between keys. 
android:keyHeight   Default height of a key, in pixels or percentage of display width. 
android:keyWidth   Default width of a key, in pixels or percentage of display width. 
android:keyboardMode   Mode of the keyboard. 
android:rowEdgeFlags   Row edge flags. 
android:verticalGap  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值