在这个偏好屏幕中,用户将设备从他的账户中取消链接。目前我只是写成取消链接设备,一旦用户点击它,就会发生取消链接的操作。
但我想添加一个像这样的文本:
Joe Foo的设备(joefoo@gmail.com)- 取消链接设备
我该怎么做?我还需要从settingsActivity动态地添加用户名。
但我想添加一个像这样的文本:
Joe Foo的设备(joefoo@gmail.com)- 取消链接设备
我该怎么做?我还需要从settingsActivity动态地添加用户名。
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<Preference android:title="@string/pref_title_advanced_unlink" >
<TextView somehow must be in here
android:id="@id/user_name_and_email" />
<intent android:action="android.intent.action.VIEW"
android:targetPackage="com.example.tvrplayer"
android:targetClass="com.example.tvrplayer.UnlinkActivity"
android.setflags="FLAG_ACTIVITY_CLEAR_TOP"/>
</Preference>
</PreferenceScreen>