NicoWnnソース
| Revision | 94b9b02293450593a117a7d68cd6497d40863d2e (tree) |
|---|---|
| Time | 2010-11-28 00:21:14 |
| Author | Hiromitsu Shioya <hiroshica@gmai...> |
| Commiter | Hiromitsu Shioya |
Ver.1.3.0.5:
・変換エリアの横サイズがおかしい問題の修正
| @@ -16,7 +16,7 @@ | ||
| 16 | 16 | |
| 17 | 17 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | 18 | package="com.hiroshica.android.input.nicownn2" |
| 19 | - android:versionCode="1304" android:versionName="1.3.0.4"> | |
| 19 | + android:versionCode="1305" android:versionName="1.3.0.5"> | |
| 20 | 20 | <uses-permission xmlns:android="http://schemas.android.com/apk/res/android" android:name="android.permission.VIBRATE"/> |
| 21 | 21 | <application android:icon="@drawable/icon" android:label="NicoWnn"> |
| 22 | 22 |
| @@ -5,7 +5,7 @@ | ||
| 5 | 5 | </head> |
| 6 | 6 | <body> |
| 7 | 7 | <div style="background-color: rgb(0, 204, 204);"> |
| 8 | - <big>ニコWnnについて Ver.1.3.0.4</big><br> | |
| 8 | + <big>ニコWnnについて Ver.1.3.0.5</big><br> | |
| 9 | 9 | </div> |
| 10 | 10 | <br> |
| 11 | 11 | ニコWnnはオープンソースとして公開されている<br> |
| @@ -41,9 +41,8 @@ | ||
| 41 | 41 | <div style="background-color: rgb(255, 255, 51);"> |
| 42 | 42 | <big>変更点</big><br> |
| 43 | 43 | </div> |
| 44 | - Ver.1.3.0.4<br> | |
| 45 | - ・Android1.5のサポート復帰<br> | |
| 46 | - ・ニコ2に追加した文字盤が反応していなかったバグの修正<br> | |
| 44 | + Ver.1.3.0.5<br> | |
| 45 | + ・変換エリアの横サイズがおかしい問題の修正<br> | |
| 47 | 46 | <br> |
| 48 | 47 | <!-- |
| 49 | 48 | --> |
| @@ -66,6 +65,10 @@ | ||
| 66 | 65 | <big>履歴</big><br> |
| 67 | 66 | </div> |
| 68 | 67 | <!-- --> |
| 68 | + Ver.1.3.0.4<br> | |
| 69 | + ・Android1.5のサポート復帰<br> | |
| 70 | + ・ニコ2に追加した文字盤が反応していなかったバグの修正<br> | |
| 71 | + <br> | |
| 69 | 72 | Ver.1.3.0.2<br> |
| 70 | 73 | ・フリックの選択文字が他ソフトとずれているのを修正<br> |
| 71 | 74 | ・全角カナ時にフリックできないバグ修正<br> |
| @@ -18,6 +18,7 @@ package com.hiroshica.android.input.nicownn2; | ||
| 18 | 18 | |
| 19 | 19 | import java.util.ArrayList; |
| 20 | 20 | import java.util.HashMap; |
| 21 | +import java.lang.Math; | |
| 21 | 22 | |
| 22 | 23 | import android.content.Context; |
| 23 | 24 | import android.content.SharedPreferences; |
| @@ -389,8 +390,8 @@ public class TextCandidatesViewManager implements CandidatesViewManager, Gesture | ||
| 389 | 390 | /** @see CandidatesViewManager */ |
| 390 | 391 | public View initView(NicoWnn parent, int width, int height) { |
| 391 | 392 | mWnn = parent; |
| 392 | - mViewWidth = width; | |
| 393 | - mViewHeight = height; | |
| 393 | + mViewWidth = Math.round((float)width / mMetrics.density); | |
| 394 | + mViewHeight = Math.round((float)height / mMetrics.density); | |
| 394 | 395 | mPortrait = |
| 395 | 396 | (parent.getResources().getConfiguration().orientation != Configuration.ORIENTATION_LANDSCAPE); |
| 396 | 397 |
| @@ -1378,15 +1379,14 @@ public class TextCandidatesViewManager implements CandidatesViewManager, Gesture | ||
| 1378 | 1379 | * @return the minimum width of a candidate view. |
| 1379 | 1380 | */ |
| 1380 | 1381 | public static int getCandidateMinimumWidth() { |
| 1381 | - return (int)(CANDIDATE_MINIMUM_WIDTH * mMetrics.density); | |
| 1382 | - //return (int)(CANDIDATE_MINIMUM_WIDTH); | |
| 1382 | + //return (int)(CANDIDATE_MINIMUM_WIDTH * mMetrics.density); | |
| 1383 | + return (int)(CANDIDATE_MINIMUM_WIDTH); | |
| 1383 | 1384 | } |
| 1384 | 1385 | |
| 1385 | 1386 | /** |
| 1386 | 1387 | * @return the minimum height of a candidate view. |
| 1387 | 1388 | */ |
| 1388 | 1389 | public static int getCandidateMinimumHeight() { |
| 1389 | - //return (int)(CANDIDATE_MINIMUM_HEIGHT * mMetrics.density); | |
| 1390 | 1390 | //return (int)((float)candidateViewDataTable[mCandidateViewHeightIndex] * mMetrics.density); |
| 1391 | 1391 | return (int)((float)candidateViewDataTable[mCandidateViewHeightIndex]); |
| 1392 | 1392 | } |