开发者

Extending LatinIME

开发者 https://www.devze.com 2023-01-19 16:50 出处:网络
I want to extend android\'s default IME, LatinIME. I cloned LatinIME\'s Android 2.1 tag from here, but there are some issues with the code.

I want to extend android's default IME, LatinIME. I cloned LatinIME's Android 2.1 tag from here, but there are some issues with the code.

For example in the class CandidateView the variable mScrollX is used, which is part of View, the extended class. But turns out that with the public SDK, that variable is private so it can't be used by children classes.

What I found in Google to be the solution to this is to change the use of mScrollX for the public getters of View, but the code also sets that variable and there are no setters available.

Another issue is that com.android.internal.R is us开发者_开发技巧ed, which also isn't public available.

How am I supposed to extend LatinIME? Has anyone tried to do something like this?


Use this:

int scrollX = getScrollX();
0

精彩评论

暂无评论...
验证码 换一张
取 消