我想在弹出屏幕中显示一个复选框。实际上我的复选框已四舍五入。我不需要圆形背景,并且勾选应该是绿色,如图所示。我需要复选框放在右侧,没有背景但是有绿色。
这是我的傻瓜:http://plnkr.co/edit/cBR2AcneBvbUCvHqwHIh?p=preview 请点击按钮查看复选框。
HashMap<Integer, String> hmap = new HashMap<Integer, String>();
hmap.put(5, "A");
hmap.put(11, "C");
hmap.put(4, "Z");
hmap.put(77, "Y");
hmap.put(9, "P");
hmap.put(66, "Q");
hmap.put(0, "R");
System.out.println("Before Sorting:");
Set set = hmap.entrySet();
Iterator iterator = set.iterator();
while(iterator.hasNext()) {
Map.Entry me = (Map.Entry)iterator.next();
System.out.print(me.getKey() + ": ");
System.out.println(me.getValue());
}
Map<Integer, String> map = new TreeMap<Integer, String>(hmap);
System.out.println("After Sorting:");
Set set2 = map.entrySet();
Iterator iterator2 = set2.iterator();
while(iterator2.hasNext()) {
Map.Entry me2 = (Map.Entry)iterator2.next();
System.out.print(me2.getKey() + ": ");
System.out.println(me2.getValue());
}
}
我需要这样:
答案 0 :(得分:1)
你可以尝试这样,我想你也一样 plnkr.co/edit/fHdnWwIRgi5jFLQlCWKs?p=preview