<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应用程序发布一个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()并将结果复制到常规的休息客户端,它也可以正常工作.