
上次我发了 http://v2ex.com/t/191168 然后最近我自己用python3写了一个根据windows ini配置文件生成layout.xml的脚本, 地址在这里
欢迎大家试用, 不过程序尚不完善, 目前只支持Button TextView EditText LinearLayout
四种, 我会陆续添加新的widget和布局方式进去, 同时也欢迎大家一起完善程序:smile:
对了, 至于说明文档, 我英文渣, 求轻喷。
示例:
[Linear2] ori = vt wi = wc [Button1] id = btn1 te = Start wi = wc [Button2] id = btn2 te = Stop wi = wc 会生成:
<Linear android:orientation="vertical" android:layout_width="wrap_content" /> we have not match that <Button android:id="@+id/btn1" android:text="Start" android:layout_width="wrap_content" /> <Button android:id="@+id/btn2" android:text="Stop" android:layout_width="wrap_content" /> 1 zts1993 2015 年 6 月 9 日 ini2xml ? |
3 zhgg0 2015 年 12 月 24 日 不明白为什么要这么干, ide 不是打一两个字母就自动补全了吗? 这样还需要记缩略词,岂不更烦? |