вы можете использовать ViewSwitcher, который является самым лучшим методом
Здесь просто измените текст редактирования кнопкой Simple :)
* 1003 например *
XML
<ViewSwitcher
android:id="@+id/my_switcher"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView
android:id="@+id/clickable_text_view"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:onClick="TextViewClicked"
android:text="abc"
android:textColor="@color/white"
android:textSize="16sp" >
</TextView>
<EditText
android:id="@+id/hidden_edit_view"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="12"
android:text="12"
android:textColor="@color/white"
android:textSize="16sp" >
</EditText>
</ViewSwitcher>
JAVA
ViewSwitcher my_switcher;
my_switcher = (ViewSwitcher) findViewById(R.id.my_switcher);
TextView profile_name = (TextView) findViewById(R.id.clickable_text_view);
profile_name.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
TextViewClicked();
}
});
TextViewClicked ()
public void TextViewClicked() {
my_switcher.showNext(); //or switcher.showPrevious();
TextView myTV = (TextView) my_switcher.findViewById(R.id.clickable_text_view);
myTV.setText("value");
}
Надеюсь, это поможет