简体   繁体   English

Eclipse Android开发代码,用于在运行的应用程序中添加按钮

[英]Eclipse Android Development Code for adding Buttons in the running Application

I want to build an application in which the User is able to add and to remove buttons, that send a certain command onClick. 我想构建一个应用程序,用户可以在其中添加和删除按钮,这些按钮发送特定的命令onClick。 But I have no idea how to do this in the Code. 但是我不知道如何在《守则》中做到这一点。 I don't know much about programming in Android. 我对Android编程了解不多。 I already programmed in Java, but I'm new in this area of development. 我已经用Java编程了,但是在这个开发领域中我是新手。

I'd be very thankful for some suggestions on how to manage this. 非常感谢您提供一些有关如何管理此问题的建议。

考虑使用LayoutInflater以编程方式添加视图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Eclipse和Android应用程序开发 - Eclipse and Android application development 为Android开发运行eclipse时出错-“ Java已启动,但返回了退出代码13” - Error in running eclipse for android development- “Java was started but returned exit code 13” 在Eclipse中运行android应用程序时出现问题 - Problems running an android application in Eclipse 在Eclipse Android开发中更正Java代码 - correct a java code in eclipse android development Eclipse中的Android开发不可破解的代码意图 - Android Development in Eclipse Unrechable Code Intent 在Android Eclipse开发中实施多个图像按钮时出错 - Error Implementing multiple Image Buttons in Android Eclipse Development Android开发-将自己的应用程序添加到“共享vCalendar” - Android development - adding own application to “share vCalendar” 如何在每个片段内使用按钮更改Android应用程序开发的片段? - How to change fragments for Android application development, with buttons inside each fragments? 在Eclipse中作为android应用程序运行-什么也没发生 - Running as android application in Eclipse - nothing happens Photoshop图片在Android应用程序开发中不起作用(使用Eclipse) - Photoshop pictures are not working in Android application development (using Eclipse)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM