如何将文本从编辑文本传递到android中的适配器类 [英] How to pass the text from edit text to adapter class in android

查看:137
本文介绍了如何将文本从编辑文本传递到android中的适配器类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将文本从编辑文本值从一个活动传递到另一个类(另一个类扩展了PagerAdapter)。我想从那个适配器访问不同活动类的那些值。

解决方案

亲爱的shanmuga,



为pagerAdapter创建构造函数然后

每当你调用pagerAdapter作为参数发送时

How to pass the text from edit text value from one activity to another class(Another Class extends PagerAdapter).I want to access those values to different activity class from that adapter.

解决方案

Dear shanmuga,

create constructor for pagerAdapter then
whenever you call to pagerAdapter send as a parameter


这篇关于如何将文本从编辑文本传递到android中的适配器类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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