QuickContactBadge
sを使用して連絡先の写真とポップアップアクションペインを表示するアプリがあります。
私のレイアウトでは、連絡先の名前を表示するTextView
下もあります。QuickContactBadge
QuickContactBadge
現在、連絡先の写真(適切なもの)をクリック/タッチしたときにのみ、実際のクイックアクションペインが表示されます。名前の表示をクリックしたときにアクションペインも表示されるようにしたいと思いますTextView
。
TextViewのクリックイベントをキャッチし、それを使用してQuickContactBadgeのクリックをトリガーし、それによってアクションペインを表示する方法はありますか?
質問に本当に当てはまるかどうかはわかりませんが、これが私のレイアウトのXMLです。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="top|center_horizontal"
android:orientation="vertical" >
<QuickContactBadge
android:id="@+id/ContactBadge"
android:layout_width="48dp"
android:layout_height="48dp" >
</QuickContactBadge>
<TextView
android:id="@+id/ContactName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:ellipsize="end"
android:focusable="false"
android:focusableInTouchMode="false"
android:freezesText="true"
android:gravity="top|center_horizontal"
android:lines="2"
android:text="@string/val_DefaultString" >
</TextView>
</LinearLayout>