From a73ab89618b2bef6eed53f5921f061271ad06460 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Mon, 19 Apr 2010 09:44:31 +0200 Subject: [PATCH] MessageClickListener Stub --- .../yaaic/listener/MessageClickListener.java | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/org/yaaic/listener/MessageClickListener.java diff --git a/src/org/yaaic/listener/MessageClickListener.java b/src/org/yaaic/listener/MessageClickListener.java new file mode 100644 index 0000000..efc2be6 --- /dev/null +++ b/src/org/yaaic/listener/MessageClickListener.java @@ -0,0 +1,39 @@ +/* +Yaaic - Yet Another Android IRC Client + +Copyright 2009-2010 Sebastian Kaspari + +This file is part of Yaaic. + +Yaaic is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Yaaic is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with Yaaic. If not, see . +*/ +package org.yaaic.listener; + +import android.view.View; +import android.widget.AdapterView; +import android.widget.Toast; +import android.widget.AdapterView.OnItemClickListener; + +/** + * Listener for clicks on conversation messages + * + * @author Sebastian Kaspari + */ +public class MessageClickListener implements OnItemClickListener +{ + public void onItemClick(AdapterView group, View view, int position, long id) + { + Toast.makeText(group.getContext(), "Message selected", Toast.LENGTH_SHORT).show(); + } +}