如何从intent中获取缺省值,而不在下一个类中显示 [英] how to get integer value as default from intent without display in next class
本文介绍了如何从intent中获取缺省值,而不在下一个类中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
实际上我是新手.am创建了listview,列出了item.if我点击了一行。特定数据将显示在编辑文本中的下一个活动中使用intent.I得到了值..但我想得到ID(整数值)默认情况下,该项目列表没有显示edittext中的id
解决方案
将id分配给textview并将其可见性设置为在新活动中消失
Actually am new to android .am created listview having list of item.if i click on one row .that particular datas will displayed in next activity in edit text using intent.I got values ..but i want to get ID (integer value) as defaultly along with that list of item without display that id in edittext
解决方案
Assigned the id to a textview and set its visibility to gone in the new activity.
这篇关于如何从intent中获取缺省值,而不在下一个类中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文