How can I create my custom properties on xml for Android?

前端 未结 4 598
死守一世寂寞
死守一世寂寞 2020-12-04 17:59

We have in our project a keyboard with \"Key\" elements, this Key elements have attributes such as android:codes=\"119\", android:keyLabel=\"w\" and so on.

My questi

4条回答
  •  北海茫月
    2020-12-04 18:34

    android:keyLabel is one of many XML attribute used by the Keyboard.Key class for each key on your keyboard. android:keyLabel is what you want to label the key with (like a "w" as in above). The attributes are pre-defined for the class. The "w" isn't but android:keyLabel is. If you could create android:alternativeKeyLabel what would you expect the class to do with it? I think maybe you should try to explain further what you are trying to accomplish.

提交回复
热议问题