简体   繁体   English

如何为Android指定XML属性为null?

[英]How can I specify a null as an XML attribute for Android?

I am a beginner in android.I m trying to run some of the examples in eclipse.I was able to do the simple ones but not database involved applications because they involve 2 .java files(databasemanager class and activity class). 我是android的初学者。我尝试在eclipse中运行一些示例。我能够执行简单的示例,但没有涉及数据库的应用程序,因为它们涉及2个.java文件(databasemanager类和activity类)。 I dont know which to copy where and run.I know it is silly...but consider me being a beginner .Anyone please help me out in this.... 我不知道该在哪里复制该文件并在其中运行。我知道这很愚蠢。但是请考虑我是一个初学者。任何人都可以帮助我。

here is the link to the database app i tried: http://www.anotherandroidblog.com/2010/08/04/android-database-tutorial/8/ 这是我尝试过的数据库应用程序的链接: http : //www.anotherandroidblog.com/2010/08/04/android-database-tutorial/8/

尝试

android:background="@null"

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM