어떻게 생생한 카드에 두 손가락 탭을 캡처합니까. setAction을 사용하여 메뉴를 열 수는 있지만 그 이상을 캡처하려고합니다. 현재두 손가락으로 탭을 유리에 라이브 카드
:
public class MyApp extends Service {
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
MainServer.singleton(this).updateStatus(MainServer.ONLINE);
if (mLiveCard == null) {
mLiveCard = new LiveCard(this, LIVE_CARD_TAG);
Intent menuIntent = new Intent(this, LiveCardMenuActivity.class);
mLiveCard.setAction(PendingIntent.getActivity(this, 0, menuIntent, 0));
....
}
}
...
}
불행히도이 작업을 수행하는 것은 쉽지 않거나 권장할만한 방법이 아닌 것으로 보입니다. 일반적인 서비스 구현의 RemoteViews 객체는 터치 제스처 수신기를 등록 할 수 없습니다. – Koh
고맙습니다. 가능하지 않다는 것을 알고있는 것도 가치가 있으므로 시간을 낭비하지 않아도됩니다. – msj121