I am developing a soft-keyboard for android with the goal of expanding the original 8pen keyboard in mind which is now discontinued.
I have the basic structure working and now want to make the size of the keyboard user-configurable.
Is there a way to configure the height and width of the keyboard?
Since a few people have asked what my code looks like following is a snippet and the full up to date version can be found here -> 8Vim
public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
/*Logging stuff*/
int width = View.MeasureSpec.getSize(widthMeasureSpec);
int height = View.MeasureSpec.getSize(heightMeasureSpec);
/*Various other Stuff*/
radius = (0.325f * width) / 2;
centre = new PointF((width/2),(height/2));
circle = new Circle(centre, radius);
// Set the new size because the "onMeasure" contract so specifies
setMeasuredDimension(width, height);
Logger.v(this, "onMeasure returns");
}
UPDATE:
So I have found that the InputServiceMethod class has a method called getMaxWidth(), and if I set my keyboard's width less then this in my view class (responsible for displaying the keyboard), the remaining area on the right side of the keyboard blacks out and no longer usable.
I get the Idea that if I change the height of the keyboard in the view class itself, I might be able to achieve what I am looking for, but... is it possible to change the height of the view on user's whim? Any advise/Ideas/Experience is welcome.