在蜂窝中创建简单表单的示例代码
我是一名经验丰富的 Java 开发人员,但对 Android 编程非常陌生。我正在为我的一位客户开发一个项目,他希望通过他们手工(笔和纸)进行的现场调查创建一个 Android 应用程序。
我想做的是创建一个 UI mach 作为可能的解决方案。我环顾四周,但找不到任何示例代码来创建简单的表单。
我想要做什么:
我想要一个表单(理想情况下看起来有点像创建新消息时邮件的样子),允许用户填写姓名、地址、公司名称等。一些自定义下拉菜单、按钮等。
我想为平板电脑执行此操作,因此我将 Honeycomb 3.x 作为我的平台。
有人可以向我指出任何示例代码来帮助我开始吗?
I am an expereinced Java developer but very new to android programming. I am working on a project for one of my clients who wants to create an android application out of a site survey they have been doing by hand (pen and paper).
What I'm looking to do is create a UI mach up to present as a possible solution. I have looked around but cannot find any sample code to create a simple form.
What I want to do:
I want to have a form (that ideally kinda looks like the way mail looks when you are creating a new message) that allows the user to fill out Name, Address, Business Name, etc. As well a as some custom drop downs, buttons, etc.
I want to do this for a tablet pc so I'm targeting Honeycomb 3.x as my platform.
Can someone point me to any sample code to get me started?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我首先阅读一些布局教程,例如: http ://www.learn-android.com/2010/01/05/android-layout-tutorial/,或 Android 开发人员文档:http://developer.android.com/guide/topics/ui/layout-objects .html。
您需要的所有对象都可以作为布局中的视图来实现。
I would start by reading some layout tutorials such as this one: http://www.learn-android.com/2010/01/05/android-layout-tutorial/, or the Android developer docs: http://developer.android.com/guide/topics/ui/layout-objects.html.
All of the objects you require can be implemented as views in your layout.