}
if (mCurrentKeyMode == KEYMODE_JA_FULL_NIKO) {
- if (true == onKeyNiko(primaryCode, keyCodes)) {
+ if (true == onKeyNico(primaryCode, keyCodes)) {
/* update shift key's state */
if (!mCapsLock && (primaryCode != DefaultSoftKeyboard.KEYCODE_QWERTY_SHIFT)) {
setShiftByEditorInfo();
/*****************************************
* onkey nikotouch
*/
- private boolean onKeyNiko(int primaryCode, int[] keyCodes) {
+ private boolean onKeyNico(int primaryCode, int[] keyCodes) {
Keyboard newKeyboard = null;
boolean retcode = false;
break;
case KEYCODE_JP12_ASTER:
+ if (mNikoFirst == true) {
+ resetNikoKeyboard();
+ }
if (mNikoFirst == false && !mNoInput) {
/* Processing to toggle Dakuten, Handakuten, and capital */
HashMap replaceTable = getReplaceTable();
break;
}
return retcode;
- } // onKeyNiko
+ } // onKeyNico
/*
* reset nikotouch keyboard
*/
/** Height of a line */
public static final int LINE_HEIGHT = 34;
/** Number of lines to display (Portrait) */
- public static final int LINE_NUM_PORTRAIT = 2;
+ public static final int LINE_NUM_PORTRAIT = 1;
/** Number of lines to display (Landscape) */
public static final int LINE_NUM_LANDSCAPE = 1;
mViewCandidateList1st.setOnClickListener(mCandidateOnClick);
int line = getMaxLine();
- int width = mViewWidth;
+ int width = mViewWidth / getCandidateMinimumWidth();
+ //int width = FULL_VIEW_DIV + 1;
for (int i = 0; i < line; i++) {
LinearLayout lineView = new LinearLayout(mViewBodyScroll.getContext());
lineView.setOrientation(LinearLayout.HORIZONTAL);
new LinearLayout.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT);
lineView.setLayoutParams(layoutParams);
- for (int j = 0; j < (width / getCandidateMinimumWidth()); j++) {
+ for (int j = 0; j < width; j++) {
TextView tv = createCandidateView();
lineView.addView(tv);
}
File fileBase = null;
if (fileSdCard != null) {
//fileBase = new File(fileSdCard, mActivity.getPackageName());
- fileBase = new File(fileSdCard, "OpenWnn");
+ fileBase = new File(fileSdCard, "nicoWnn");
if (!fileBase.exists()) {
return false;
}
File fileBase = null;
if (fileSdCard != null) {
//fileBase = new File(fileSdCard, mActivity.getPackageName());
- fileBase = new File(fileSdCard, "OpenWnn");
+ fileBase = new File(fileSdCard, "nicoWnn");
if (!fileBase.exists()) {
if (!fileBase.mkdir()) {
resultString[0] = "false";