안드로이드 샘플 코드를 이용하여 프로젝트를 생성하고
Softkeyboard.apk를 생성하였습니다.
(com.example.android.softkeyboard)
버젼은 2.3.3 으로 생성하였습니다.
근데 이게 캘럭시 tab에서 사용하면 사이즈가 무지 작아지는데요...
초보라서...어디서 어떻게 접근해야 하는지 막막합니다.
답변 좀 부탁드립니다.
* 의심가는 부분
layout/input.xml
<com.example.android.softkeyboard.LatinKeyboardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/keyboard"
android:layout_alignParentRight="true"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
softkeyboard.java
@Override public View onCreateInputView() {
Log.d("SDS_Softkey", "onCreateInputView"+"()");
View tView = getLayoutInflater().inflate(
R.layout.input, null);
mInputView = (KeyboardView) tView;
mInputView.setOnKeyboardActionListener(this);
mInputView.setKeyboard(mQwertyKeyboard);
return mInputView;
}
여기저기 찾아보니깐
layout 의 가로 세로 길이를 match_parent로 설정하라고 하여 xml파일에서 변경하였으나 변화가 없습니다.
그래서 onCreateInputView() 함수 내에서 inflate 할 때, 사이즈를 변경하는 방법이 있어서 사용하려고 하는데요
아래의 addContentView를 어떻게 적용해야 하나요??
addContentView(v, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
혹시 문제점이 addContentView를 이용하여 해결하는 것이 아니라
다른 방법으로 해결해야 하는건가요??
고수님들의 조언 부탁드립니다....