Android Keyboard layout based on user preference - android

I am developing an Android Keyboard using Softkey keyboard example in native language.
Now, I want user to be able to set keyborder,have a option of setting background colors,size and similar customization available and correspondingly appropriate keyboard should be generated.
Can anyone please guide me the right direction.

color setting
You need define your custom color scheme in your code. I store it in XML file.
<theme>
<!--define color-->
<color-def name="key_white" value="#F9F9FA"/>
<!--<color-def name="light_gray" value="#D4D6D7"/>-->
<color-def name="white" value="#FFFFFF"/>
<color-def name="shadow_black" value="#828386"/>
<color-def name="text_black" value="#000000"/>
<color-def name="light_gray" value="#BAC2C7"/>
<color-def name="cute_blue" value="#194FDC"/>
...
Then, parse this xml file, and apply these color values to onDraw() method.
size setting
Do it in the similar way, when drawing keyboard, using parameters which defined by user to determine size information.
I have made contribution to an input method software. The key of developing custom keyboard is designing the structure properly.

Related

Android Custom Keyboard Layout as a Vector Asset

I am attempting to create a custom keyboard where a vector image is the keyboard itself. Rather than having a custom xml file in the directory res/xml and defining a Keyboard tag, I want to have solely the image as the keyboard. I wanted to know if this is even possible to do because all of the examples I have seen thus far regarding how to create a custom keyboard is just defining an xml file for the layout of the keys and placing it inside of a KeyboardView. Any help would be appreciated!
No, it's not possible. To create a cusotm keyboard you need KeyboardView and Keyboard classes.
Also, I don't understand why would you need it. Do you want a background/theme for your keyboard? If yes, you can do it like this : mKeyboardView.setBackground(drawable/color) Also, there are other ways to set theme(including key border/background/color etc) for a keyboard, but since you are only concern to learn if it's possible to create a custom keyboard via vector asset. So, the answer is no.

How to change font of textbox drop-down menu in HTML using Alpha Anywhere

I am writing a mobile app for Android and iOS using the Alpha Anywhere framework. I have a dropdown textbox which currently displays two options "King Kong" and "Peter Jackson". How do I change the font size of these names in Alpha Anywhere?
If you know of a solution using JavaScript or Xbasic in the software suite that would also useful, and appreciated.
Are you using a ControlBar control? If so, that is where you would style it. On the other hand, if it is simply a drop-down control in a header, you could click on the object in the UX editor, and edit it's style in the Properties column on the right.

Get Android keyboard colors to add views with same color

Do you know a way to get the current Android soft keyboard colors (especially background) so I can add a row of buttons on top with same colors?
Thanks!
There's no predefined color type assigned for IME. Keyboard can either use system colors but also provide own (i.e. Swype comes with variety of themes), so basically you seem out of luck

Create custom button based on Android style

I need to create a custom button control that will inherit from the same Android style as all other buttons in my application. However, I want to be able to add several lines of text where some characters of the text will be in different colors. Is there anyway to achieve this, I can't seem to see a way?
Currently I have created a view that looks like a button by drawing the background, this is ok but I want the background etc to change with the application style.
You should make your button descend from the generic theme for Widget.Button. This way you can ensure that all the default settings will come through for you.

how do I change the style of a button in android?

I want to change the style of a button in an android app. here is a picture that has both kinds of buttons, the one that I have now, and the one that I want to switch to:
the kinds of buttons that I am using now, look like any of the letters on that keyboard. the ones that I want to use like like the arrows. I would I go about changing this. I prefer to do it in xml but I can do it in java if that is the only way. Thanks
change the background of the Button to a png image with arrows!
in XML use android:background="#drawable/yourimage"
To get more sophisticated control check here,
Standard Android Button with a different color

Categories

Resources