小编not*_*ana的帖子

设置Theme.Holo.Light会更改除列表中的复选框之外的所有内容

<style name="CustomTheme" parent="@android:style/Theme.Holo.Light">
Run Code Online (Sandbox Code Playgroud)

我制作了自己的主题,并在我的清单中添加了对它的引用.除了我的自定义列表中的复选框外,一切看起来都很完美(按钮,文本框等).

    android:checkMark="?android:attr/listChoiceIndicatorMultiple"
Run Code Online (Sandbox Code Playgroud)

我的listitem中的复选框是Theme.Holo的默认复选框,我无法找出原因.

感谢任何帮助!

android android-theme

4
推荐指数
1
解决办法
4028
查看次数

特殊字符会导致REST Web服务通信出现问题

我试图从Android应用程序发布一个JSON对象到REST Web服务.一切正常,直到我添加å,ä,ö等特殊字符.

JSONObject absenceObject = new JSONObject();
absenceObject.put(INFO_DESCRIPTION, "åka pendeltåg");
StringEntity entity = new StringEntity(absenceObject.toString());
httpPost.setEntity(entity);
httpPost.setHeader("Accept", "application/json";character);
httpPost.setHeader("Content-type", "application/json;charset=UTF-8");
HttpResponse response = httpclient.execute(httpPost);
Run Code Online (Sandbox Code Playgroud)

如果我打印absenceObject.toString()并将结果复制到常规的休息客户端,它也可以正常工作.

rest android json special-characters

1
推荐指数
1
解决办法
6942
查看次数

标签 统计

android ×2

android-theme ×1

json ×1

rest ×1

special-characters ×1