1
나는 텍스트 뷰가 있습니다안드로이드 텍스트 뷰 링크 이메일 포함 아포스트로피
: 다음의 이메일 주소를 (내가 Monodroid를 사용하고 있지만, 정말 여기에 어떤 차이가되지 않습니다) 넣어<TextView
android:text="Contact details go here"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/tvContactDetails"
android:autoLink="email" />
TextView tvContactDetails = FindViewById(Resource.Id.tvContactDetails)
tvContactDetails.Text = sEmail;
[email protected]과 같은 전자 메일 주소를 입력해도 괜찮습니다. 그러나 나는 그것을 kevin.o'[email protected]에게 줄 때 [email protected] 만 하이퍼 링크로 보낸다. 전자 메일 주소의 일부로 아포스트로피를 인식하도록하려면 어떻게해야합니까?
먼저 'tvContactDetails.setText (sEmail);' – g00dy
은 어포 스트로피 앞에 슬래시 "\"를 넣을 수 있습니다. –
나는 동일한 답변을 게시 했으므로 +1 – KOTIOS