1.配省份、车牌号kebord数据源。
首先在资源目录res文件夹下创建xml文件夹。
明明省份数据源:
number_or_letters.xml:
<?xml version="1.0" encoding="utf-8"?> <Keyboard android:keyWidth="10%p" android:keyHeight="8%" android:horizontalGap="0.0px" android:verticalGap="0.0px" xmlns:android="http://schemas.android.com/apk/res/android"> <Row android:verticalGap="1%p"> <Key android:codes="49" android:keyLabel="1" android:horizontalGap="1%p" android:keyWidth="8%p" android:keyEdgeFlags="left" /> <Key android:codes="50" android:keyLabel="2" android:horizontalGap="2%p" android:keyWidth="8%p" /> <Key android:codes="51" android:keyLabel="3" android:horizontalGap="2%p" android:keyWidth="8%p" /> <Key android:codes="52" android:keyLabel="4" android:horizontalGap="2%p" android:keyWidth="8%p" /> <Key android:codes="53" android:keyLabel="5" android:horizontalGap="2%p" android:keyWidth="8%p" /> <Key android:codes="54" android:keyLabel="6" android:horizontalGap="2%p" android:keyWidth="8%p" /> <Key android:codes="55" android:keyLabel="7" android:horizontalGap="2%p" android:keyWidth="8%p" /> <Key android:codes="56" android:keyLabel="8" android:horizontalGap="2%p" android:keyWidth="8%p" /> <Key android:codes="57" android:keyLabel="9" android:horizontalGap="2%p" android:keyWidth="8%p" /> <Key android:codes="48" android:keyLabel="0" android:horizontalGap="2%p" android:keyWidth="8%p" android:keyEdgeFlags="right"/> </Row> <Row android:verticalGap="1%p"> <Key android:codes="81" android:keyLabel="Q" android:horizontalGap="1%p" android:keyWidth="8%p" android:keyEdgeFlags="left" /> <Key android:codes="87" android:keyLabel="W" android:horizontalGap="2%p" android:keyWidth="8%p" /> <Key android:codes="69" android:keyLabel="E" android:horizontalGap="2%p" android:keyWidth="8%p" /> <Key android:codes="82" android:keyLabel="R" android:horizontalGap="2%p" android:keyWidth="8%p" /> <Key android:codes="84" android:keyLabel="T" android:horizontalGap="2%p" android:keyWidth="8%p" /> <Key android:codes="89" android:keyLabel="Y" android:horizontalGap="2%p" android:keyWidth="8%p" /> <Key android:codes="85" android:keyLabel="U" android:horizontalGap="2%p" android:keyWidth="8%p" /> <Key android:codes="73" android:keyLabel="I" android:horizontalGap="2%p" android:keyWidth="8%p" /> <Key android:codes="79" android:keyLabel="O" android:horizontalGap="2%p" android:keyWidth="8%p" /> <Key android:codes="80" android:keyLabel="P" android:horizontalGap="2%p" android