在我的布局中,我已经定义了这样的内容。
<RadioButton
android:id="@+id/radio1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Dnt want this text" />
假设活动中的某些函数向我返回此ID(radioButton的ID)。现在我想从此id 获取此文本radio1。简而言之,我想检索写入的文字radio1android:id="@+id/radio1"
有人可以告诉我这怎么可能吗?
长话短说..我需要从服务器接收的一些数据中填充大量的editText数据。因此,我不是在手动为所有文本框设置数据,而是在编写一种可以对我有效的方法……为此,我需要这样做。
—
Code_Life '04