qwerty.xml>의
<Keyboard
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/kbd_qwerty"
android:keyWidth="10%p"
android:keyHeight="@dimen/key_height"
android:horizontalGap="0px"
android:verticalGap="0px">
dimens.xml>
<resources>
<dimen name="key_height">55px</dimen>
<dimen name="key_height_Max">75px</dimen>
<dimen name="key_height_Min">35px</dimen>
java 코드>
int nKeyboardHeight = ((LatinKeyboard)mInputView.getKeyboard()).getKeyboardHeight(); //현제 키보드 높이값 받아옴
Log.i("nKeyboardHeight", toString().valueOf(nKeyboardHeight)); // 로그로 확인
nKeyboardHeight = (int) getApplicationContext().getResources().getDimension(R.dimen.key_height_Max); //적용할 높이값 가져옴 LatinKeyboard testKeboard = (LatinKeyboard)mInputView.getKeyboard(); //임시 키보드 생성 이전키보드 받음.
testKeboard.setKeyboardHeight(nKeyboardHeight); //키보드 높이 변경 적용 //ExtendsKeyboard 클레스에 get/set 메서드 구현해놈
mInputView.setKeyboard(testKeboard); //변경된 키보드 세팅.
Log.i("nKeyboardHeight", toString().valueOf(nKeyboardHeight)); //로그로 키보드 높이 변경 확인.
이렇게 하여 키보드의 keyHeight 이 값은 변경할 수 있었으나. 화면에 나타나는 키보드 높이는 변화가 없습니다.
키보드를 갱신해 줘야 할것 같다는 생각이 드는데
갱신을 어디서 해줘야 할까요?
키보드뷰의 onMeasure을 오버라이딩하여 뷰의 크기는 조정할 수 있었으나. 키보드키의 크기는 꿈쩍도 안하네요.
조언 부탁드립니다.! )); // 로그로 확인
nKeyboardHeight = (int) getApplicationContext().getResources().getDimension(R.dimen.key_height_Max); //적용할 높이값 가져옴
LatinKeyboard testKeboard = (LatinKeyboard)mInputView.getKeyboard(); //임시 키보드 생성 이전키보드 받음.
testKeboard.setKeyboardHeight(nKeyboardHeight); //키보드 높이 변경 적용 //ExtendsKeyboard 클레스에 get/set 메서드 구현해놈
mInputView.setKeyboard(testKeboard); //변경된 키보드 세팅.
Log.i("nKeyboardHeight", toString().valueOf(nKeyboardHeight)); //로그로 키보드 높이 변경 확인.
전.대체.어디서.삽질중인지.
로그로 값을 확인하면 값은 변경이 되었지만.. 키보드의 크기는 꿈쩍도. 안합니다.
값을 변경하고 키보드를 갱신해주는 부분이 필요할듯한데..
조언 부탁드려요~~
갱신을 어떻게 하는지 모르겠어요
혹시 height를 set한다음에 키보드를 다시 생성하면 변경된 크기로 생성되지는 않을까요?