2
1

More than 1 year has passed since last update.

Android TextViewでOS標準のコピーを使用できるようにする方法

Posted at

今回はTextViewでOS標準のコピーを使用できるようにする方法です。

EditTextでは特に設定などせずに標準のコピー、ペーストができるので、意識したことないのですが、TextViewでは設定しないとコピーができないみたいです。

xmlに設定を追加するだけでコピー可能になります。

android:textIsSelectable="true"

こちらをTextViewの設定に追加するだけです。

以上です。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1