单击项目以显示另一个项目Android [英] Click on item to appear another item Android

查看:71
本文介绍了单击项目以显示另一个项目Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是这个论坛的新手,也是android的新手,我正在学校里做一个项目,在这里我需要一些帮助,因为android的新手,我想知道应该使用哪种类型的组件来显示这些下拉列表(上面写着Projeto 1等).在单击项目后,它将展开并创建另一个组件(列表视图?),该组件显示与该项目关联的成员: 项目页面

当我单击Peter Parker附近的图标/按钮时,它将其片段更改为该视图,该视图是一种在应用后将排名分配给某人的形式: 排名页面

对不起,如果我的英语不好,我是葡萄牙语,我是编程新手. 感谢您查看我的帖子并警告我们.

解决方案

我认为您正在尝试获取可扩展的列表视图

在这里会像

List<String> Colors = new ArrayList<String>();
    Colors.add("Red");
    Colors.add("Green");
    Colors.add("Blue");
    Colors.add("Maroon");
    Colors.add("Yellow");
    Colors.add("Violet");
    Colors.add("Pink");

这里的颜色是一个类别,如果单击它,它将进一步扩展

了解更多详情访问此链接

im new to this forum and new to android, i'm doing a project on my school and i need some help here, since im new to android i wanna know what type of component i should use to show those dropdown lists(Where it says Projeto 1, etc...). And after i click on the project it expands and creates another compenent (listview?) which shows the members associated with that project: Project Page

And when i click on the icon/button near Peter Parker it changes it fragment to this view which is a form that assigns a ranking to a person after applying it: Ranking Page

Im sorry if my english is bad, i'm portuguese and i'm new to programming. Thanks for viewing my post and awsnering.

解决方案

i think you are trying to get a expandable listview if yes

here it will be like

List<String> Colors = new ArrayList<String>();
    Colors.add("Red");
    Colors.add("Green");
    Colors.add("Blue");
    Colors.add("Maroon");
    Colors.add("Yellow");
    Colors.add("Violet");
    Colors.add("Pink");

here colors is a category where in if you click it will expand further

for more details visit this link

这篇关于单击项目以显示另一个项目Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆