parent
48f989dee5
commit
1c9817f0e6
|
@ -331,7 +331,6 @@ public class KeyboardView extends View implements PointerTracker.DrawingProxy {
|
|||
mPreviewText = null;
|
||||
mShowKeyPreviewPopup = false;
|
||||
}
|
||||
// TODO: Use Theme (android.R.styleable.Theme_backgroundDimAmount)
|
||||
mBackgroundDimAmount = a.getFloat(R.styleable.KeyboardView_backgroundDimAmount, 0.5f);
|
||||
a.recycle();
|
||||
|
||||
|
|
|
@ -183,13 +183,10 @@ public class LatinKeyboardBaseView extends KeyboardView {
|
|||
attrs, R.styleable.KeyboardView, defStyle, R.style.KeyboardView);
|
||||
mVerticalCorrection = a.getDimensionPixelOffset(
|
||||
R.styleable.KeyboardView_verticalCorrection, 0);
|
||||
|
||||
mPopupLayout = a.getResourceId(R.styleable.KeyboardView_popupLayout, 0);
|
||||
// TODO: Use Theme (android.R.styleable.Theme_backgroundDimAmount)
|
||||
a.recycle();
|
||||
|
||||
final Resources res = getResources();
|
||||
|
||||
final float keyHysteresisDistance = res.getDimension(R.dimen.key_hysteresis_distance);
|
||||
mKeyDetector = new KeyDetector(keyHysteresisDistance);
|
||||
mSwipeThreshold = (int) (500 * res.getDisplayMetrics().density);
|
||||
|
|
Loading…
Reference in New Issue