
Android
文章平均质量分 62
独孤酒溅
这个作者很懒,什么都没留下…
展开
-
Toggle Buttons
toggle button是用来切换两个状态的一个控件。 你可以在layout中添加ToggleButton对象。Android4.0(API level 14)介绍了另外一种toggle button, 叫switch,提供了一种滑动操作。 Toggle Buttons Switches ToggleButton 和Switch控件都是CompoundButton的子类,函翻译 2015-03-30 16:19:02 · 1176 阅读 · 0 评论 -
Checkboxes
Checkboxes允许用户从一个集合选择一个或是多个选择。典型的就是你可以在一个垂直的列表通过checkbox给用户选择。 你可以在layout中创建一个Checkbox,因为一系类的checkbox选择可以允许用户多选,每个checkbox都是分开管理,你必须为每一个checkbox添加一个点击listener。 响应点击事件 当用户选择一个checkbox,checkb翻译 2015-03-30 15:52:19 · 735 阅读 · 0 评论 -
Radio Buttons
Radio Buttons 允许用户从一个集合中做出一个选择。如果你觉得用户需要对比每个选择,你可以通过使用radio button来实现,如果不需要的话你可以使用spinner替换 你可以在layout中创建每个radio button。但是,由于radio button都是相互关联的,你必须使用RadioGroup把他们包含起来。通过RadioGroup,系统会限制用户,只能选择一个翻译 2015-03-30 16:02:15 · 666 阅读 · 0 评论 -
JNI javah cannot access android.app.Activity 处理方案
今天在玩jni,生成.h文件的时候,使用javah -classpath [path] -d [path] com.xxx.xx..xxx,然后一只提示cannot access android.app.Activity,真是气死了 后面找了一下,说是没有android.jar配置问题,然后通过-classpath [android-sdk-location]/platforms/android原创 2016-06-26 16:15:59 · 789 阅读 · 0 评论