【发布时间】:2014-12-14 21:44:28
【问题描述】:
我的偏好中有一个编辑框,用户可以在其中键入一个数字来增加计数器,但我不确定如何获取该值并在我的主类中使用它。
根据我的喜好,我有;
android:defaultValue="1"
android:inputType="number"
android:key="incrementBy"
android:maxLength="3"
android:summary="Set the incremental value of the counter"
android:title="Increase Count by" />
我想要做的是,从这个编辑框中获取用户输入并将其隐含到我的主类中的一个变量中。
【问题讨论】:
标签: android preferences editbox