如何在android应用程序中隐藏类别/项目

如何在android应用程序中隐藏类别/项目,android,eclipse,android-activity,Android,Eclipse,Android Activity,我有一个本地android应用程序,它正在从opencart网站获取数据,有一些类别/项目我不想在应用程序中显示 我认为这是处理类别/项目可见性的类 public class CategoryListActivity extends BaseActivity { List<Category> categoryData = new ArrayList<Category>(); ListView categoryList

我有一个本地android应用程序,它正在从opencart网站获取数据,有一些类别/项目我不想在应用程序中显示

我认为这是处理类别/项目可见性的类

public class CategoryListActivity extends BaseActivity
{

List<Category>      categoryData            = new ArrayList<Category>();
ListView            categoryList            = null;
TextView            activityTitle           = null;
CategoryListAdapter categoryListAdapter     = null;
int                 categoryId              = -1;
String              categoryTitle           = "";
SharedPreferences   prefs                   = null;
ProgressDialog      loadingDialog;
String              currentParentHierarchy  = "";
公共类CategoryStactivity扩展了BaseActivity
{
List categoryData=new ArrayList();
ListView类别列表=空;
TextView activityTitle=null;
CategoryListAdapter CategoryListAdapter=null;
int categoryId=-1;
字符串categoryttle=“”;
SharedReferences prefs=null;
进程对话框加载对话框;
字符串currentParentHierarchy=“”;
有人能帮忙吗


谢谢你

你可以使用item.setVisibility(不见了);请再添加一些数据,你到底想隐藏什么?