草庐IT

android - 使用自定义键盘中可见的候选 View 重新调整 UI

我正在使用自定义键盘。我在onCreateCandidatesView()中设置了setCandidatesViewShown(true)函数,问题是UI没有得到正确的重新调整。如有帮助将不胜感激..以下是我所做的@OverridepublicViewonCreateCandidatesView(){LayoutInflaterli=(LayoutInflater)getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);ViewwordBar=li.inflate(R.layout.wordba