Cosmetic changes / QVGA buttons / Pixel positioning
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 545 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 545 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
BIN
res/drawable-ldpi/k07.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
res/drawable-ldpi/k08.png
Normal file
After Width: | Height: | Size: 1,019 B |
BIN
res/drawable-ldpi/k09.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
res/drawable-ldpi/k10.png
Normal file
After Width: | Height: | Size: 1,012 B |
BIN
res/drawable-ldpi/k11.png
Normal file
After Width: | Height: | Size: 1,004 B |
BIN
res/drawable-ldpi/k12.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
res/drawable-ldpi/k13.png
Normal file
After Width: | Height: | Size: 993 B |
BIN
res/drawable-ldpi/k14.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
res/drawable-ldpi/k15.png
Normal file
After Width: | Height: | Size: 1,023 B |
BIN
res/drawable-ldpi/k16.png
Normal file
After Width: | Height: | Size: 999 B |
BIN
res/drawable-ldpi/k17.png
Normal file
After Width: | Height: | Size: 999 B |
BIN
res/drawable-ldpi/k18.png
Normal file
After Width: | Height: | Size: 1,010 B |
BIN
res/drawable-ldpi/k19.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
res/drawable-ldpi/k20.png
Normal file
After Width: | Height: | Size: 1,018 B |
BIN
res/drawable-ldpi/k21.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
res/drawable-ldpi/k22.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
res/drawable-ldpi/k23.png
Normal file
After Width: | Height: | Size: 1,021 B |
BIN
res/drawable-ldpi/k24.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
res/drawable-ldpi/k25.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
res/drawable-ldpi/k26.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
res/drawable-ldpi/k27.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
res/drawable-ldpi/k28.png
Normal file
After Width: | Height: | Size: 999 B |
BIN
res/drawable-ldpi/k29.png
Normal file
After Width: | Height: | Size: 999 B |
BIN
res/drawable-ldpi/k30.png
Normal file
After Width: | Height: | Size: 996 B |
BIN
res/drawable-ldpi/k31.png
Normal file
After Width: | Height: | Size: 356 B |
BIN
res/drawable-ldpi/k32.png
Normal file
After Width: | Height: | Size: 376 B |
BIN
res/drawable-ldpi/k33.png
Normal file
After Width: | Height: | Size: 382 B |
BIN
res/drawable-ldpi/k34.png
Normal file
After Width: | Height: | Size: 349 B |
BIN
res/drawable-ldpi/k35.png
Normal file
After Width: | Height: | Size: 294 B |
BIN
res/drawable-ldpi/k36.png
Normal file
After Width: | Height: | Size: 360 B |
BIN
res/drawable-ldpi/k37.png
Normal file
After Width: | Height: | Size: 375 B |
BIN
res/drawable-ldpi/k38.png
Normal file
After Width: | Height: | Size: 367 B |
BIN
res/drawable-ldpi/k39.png
Normal file
After Width: | Height: | Size: 367 B |
BIN
res/drawable-ldpi/k40.png
Normal file
After Width: | Height: | Size: 285 B |
BIN
res/drawable-ldpi/k41.png
Normal file
After Width: | Height: | Size: 314 B |
BIN
res/drawable-ldpi/k42.png
Normal file
After Width: | Height: | Size: 357 B |
BIN
res/drawable-ldpi/k43.png
Normal file
After Width: | Height: | Size: 382 B |
BIN
res/drawable-ldpi/k44.png
Normal file
After Width: | Height: | Size: 282 B |
BIN
res/drawable-ldpi/k45.png
Normal file
After Width: | Height: | Size: 992 B |
BIN
res/drawable-ldpi/k46.png
Normal file
After Width: | Height: | Size: 330 B |
BIN
res/drawable-ldpi/k47.png
Normal file
After Width: | Height: | Size: 275 B |
BIN
res/drawable-ldpi/k48.png
Normal file
After Width: | Height: | Size: 401 B |
BIN
res/drawable-ldpi/k49.png
Normal file
After Width: | Height: | Size: 316 B |
|
@ -1,12 +1,12 @@
|
|||
package org.ab.x48;
|
||||
|
||||
import java.nio.ShortBuffer;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Vector;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.SharedPreferences.Editor;
|
||||
import android.content.res.Configuration;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
|
@ -183,7 +183,15 @@ public class HPView extends SurfaceView implements SurfaceHolder.Callback, Runna
|
|||
Paint keyPaint = new Paint();
|
||||
keyPaint.setFilterBitmap(true);
|
||||
|
||||
ArrayList<Integer> orderKeys = new ArrayList<Integer>();
|
||||
for(int k=0;k<keys.length;k++) {
|
||||
orderKeys.add(k);
|
||||
}
|
||||
orderKeys.add(0, orderKeys.remove(30));
|
||||
orderKeys.add(0, orderKeys.remove(31));
|
||||
orderKeys.add(0, orderKeys.remove(32));
|
||||
|
||||
for(int k:orderKeys) {
|
||||
float key_x = 0f;
|
||||
float key_width = 0f;
|
||||
float key_y = 0f;
|
||||
|
@ -409,7 +417,7 @@ public class HPView extends SurfaceView implements SurfaceHolder.Callback, Runna
|
|||
//ratio_ky = key_height / (float) bh;
|
||||
delta_y = ((int)key_height-bh)/2;
|
||||
}
|
||||
if (!keybLite && !land && !fullWidth && (k == 30 || k == 31 || k == 32 ||
|
||||
if (!keybLite && !land && (k == 30 || k == 31 || k == 32 ||
|
||||
k == 35 || k == 36 || k == 37 ||
|
||||
k == 40 || k == 41 || k == 42 || k == 39)) {
|
||||
Paint p2 = new Paint();
|
||||
|
|
|
@ -13,15 +13,11 @@ import android.content.Intent;
|
|||
import android.content.SharedPreferences;
|
||||
import android.content.SharedPreferences.Editor;
|
||||
import android.content.res.Configuration;
|
||||
import android.inputmethodservice.Keyboard;
|
||||
import android.inputmethodservice.KeyboardView;
|
||||
import android.inputmethodservice.KeyboardView.OnKeyboardActionListener;
|
||||
import android.os.Bundle;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.util.Log;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
|
||||
public class X48 extends Activity {
|
||||
|
@ -76,7 +72,6 @@ public class X48 extends Activity {
|
|||
mainView = (HPView) findViewById(R.id.hpview);
|
||||
|
||||
checkPrefs();
|
||||
currentOrientation = getResources().getConfiguration().orientation;
|
||||
}
|
||||
|
||||
public void checkPrefs() {
|
||||
|
@ -403,12 +398,9 @@ public class X48 extends Activity {
|
|||
|
||||
}
|
||||
|
||||
private int currentOrientation;
|
||||
|
||||
@Override
|
||||
public void onConfigurationChanged(Configuration newConfig) {
|
||||
super.onConfigurationChanged(newConfig);
|
||||
currentOrientation = newConfig.orientation;
|
||||
}
|
||||
|
||||
}
|