<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум Александра Климова — ListActivity]]></title>
		<link>http://forum.alexanderklimov.ru/viewtopic.php?id=24</link>
		<atom:link href="http://forum.alexanderklimov.ru/extern.php?action=feed&amp;tid=24&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in ListActivity.]]></description>
		<lastBuildDate>Wed, 21 Feb 2018 11:32:11 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: ListActivity]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=1063#p1063</link>
			<description><![CDATA[<div class="quotebox"><cite>tuta wrote:</cite><blockquote><p>Здравствуйте!<br />Попытался сделать Snackbar с кнопкой отмены удаления элемента, не выходит. Ругается на строки:</p></blockquote></div><p>snackbarOnClickListener.onClick() принимает объект View, а не String</p><p>Перенесите объявление переменной selectedItem в члены класса. В функции onItemLongClick будет тогда просто selectedItem = parent.getItemAtPosition(position).toString();</p><p>обработчик снакбара:</p><div class="codebox"><pre><code>View.OnClickListener snackbarOnClickListener = new View.OnClickListener() {
        public void onClick(View view) {
            mAdapter.add(selectedItem);
            mAdapter.notifyDataSetChanged();
        }
    };</code></pre></div><p>Метод add добавляет в конец списка. Если нужно вернуть удаленный элемент на тоже место, то нужно использовать mAdapter.insert(selectedItem, index);</p><p>Где index объявляется как член класса, а инициализируется в onItemLongClick аргументом position</p>]]></description>
			<author><![CDATA[null@example.com (th3rage)]]></author>
			<pubDate>Wed, 21 Feb 2018 11:32:11 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=1063#p1063</guid>
		</item>
		<item>
			<title><![CDATA[Re: ListActivity]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=1028#p1028</link>
			<description><![CDATA[<p>Здравствуйте!<br />Попытался сделать Snackbar с кнопкой отмены удаления элемента, не выходит. Ругается на строки:<br /></p><div class="codebox"><pre><code>snackbar.setAction(&quot;Отменить&quot;, snackbarOnClickListener.onClick(selectedItem)); // onClick(android.view.View) in OnClickListener cannot be applied to (java.lang.String)</code></pre></div><div class="codebox"><pre><code>View.OnClickListener snackbarOnClickListener = new View.OnClickListener() { //Class &#039;Anonymous class derived from OnClickListener&#039; must either be declared abstract or implement abstract method &#039;onClick(View)&#039; in &#039;OnClickListener&#039;</code></pre></div><p>Вот весь код:<br /></p><div class="codebox"><pre><code>package com.example.andrei.listactivity;

import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
import android.support.design.widget.Snackbar;

import java.util.ArrayList;
import java.util.Arrays;


public class MainActivity extends ListActivity implements AdapterView.OnItemLongClickListener {

    final String[] catNamesArray = new String[]{&quot;Рыжик&quot;, &quot;Барсик&quot;, &quot;Мурзик&quot;,
            &quot;Мурка&quot;, &quot;Васька&quot;, &quot;Томасина&quot;, &quot;Бобик&quot;, &quot;Кристина&quot;, &quot;Пушок&quot;,
            &quot;Дымка&quot;, &quot;Кузя&quot;, &quot;Китти&quot;, &quot;Барбос&quot;, &quot;Масяня&quot;, &quot;Симба&quot;};

    private ArrayAdapter&lt;String&gt; mAdapter;
    private ArrayList&lt;String&gt; catNamesList = new ArrayList&lt;&gt;(Arrays.asList(catNamesArray));


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_main);

        mAdapter = new ArrayAdapter&lt;&gt;(this,
                android.R.layout.simple_list_item_1, catNamesList);
        setListAdapter(mAdapter);
        getListView().setOnItemLongClickListener(this);

    }

    @Override
    protected void onListItemClick(ListView l, View v, int position, long id) {
        super.onListItemClick(l, v, position, id);

        Toast.makeText(getApplicationContext(),
                &quot;Вы выбрали &quot; + l.getItemAtPosition(position).toString(), Toast.LENGTH_SHORT).show();
    }

    @Override
    public boolean onItemLongClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
        String selectedItem = parent.getItemAtPosition(position).toString();

        mAdapter.remove(selectedItem);
        mAdapter.notifyDataSetChanged();

        Snackbar snackbar = Snackbar.make(view, &quot;Replace with your own action&quot;, Snackbar.LENGTH_LONG);
        snackbar.setAction(&quot;Отменить&quot;, snackbarOnClickListener.onClick(selectedItem));
        snackbar.setDuration(4500); // 4.5 секунды
        snackbar.show();
        return true;
    }

    View.OnClickListener snackbarOnClickListener = new View.OnClickListener() {
        public void onClick(String removedString) {
            mAdapter.add(removedString);
            mAdapter.notifyDataSetChanged();
        }
    };
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (tuta)]]></author>
			<pubDate>Sat, 23 Dec 2017 18:04:24 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=1028#p1028</guid>
		</item>
		<item>
			<title><![CDATA[Re: ListActivity]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=1010#p1010</link>
			<description><![CDATA[<div class="quotebox"><cite>alexander.klimoff wrote:</cite><blockquote><p>Как вы понимаете фразу &quot;читайте свои ошибки&quot;? Где вы их читаете?<br />Что касается ListActivity, то id у вас неправильные. И в статье об этом говорится.</p></blockquote></div><p>Блин... Александр, простите меня не недостаточную внимательность...</p><p>В шаблоне нужно разместить ListView с обязательным идентификатором @id/android:list. Компонент TextView будет показан в том случае, если нет данных для списка. Он также должен иметь обязательный идентификатор @id/android:empty.</p><p>PS Урок по ListFragment - помогла смена импорта с<br />import android.support.v4.app.ListFragment;<br />на<br />import android.app.ListFragment;<br />Зеленые человечки опять развлекаются :-)</p>]]></description>
			<author><![CDATA[null@example.com (kirill_nn)]]></author>
			<pubDate>Mon, 11 Dec 2017 12:29:12 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=1010#p1010</guid>
		</item>
		<item>
			<title><![CDATA[Re: ListActivity]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=1008#p1008</link>
			<description><![CDATA[<p>Как вы понимаете фразу &quot;читайте свои ошибки&quot;? Где вы их читаете?<br />Что касается ListActivity, то id у вас неправильные. И в статье об этом говорится.</p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Sun, 10 Dec 2017 17:36:08 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=1008#p1008</guid>
		</item>
		<item>
			<title><![CDATA[Re: ListActivity]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=1007#p1007</link>
			<description><![CDATA[<div class="quotebox"><cite>alexander.klimoff wrote:</cite><blockquote><p>Читайте свои ошибки в студии и устраняйте их.</p></blockquote></div><p>В том то и дело, что не могу найти... layout, все отображает, id вроде правильные...</p><p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br />&lt;android.support.constraint.ConstraintLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br />&nbsp; &nbsp; xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;<br />&nbsp; &nbsp; xmlns:tools=&quot;http://schemas.android.com/tools&quot;<br />&nbsp; &nbsp; android:layout_width=&quot;match_parent&quot;<br />&nbsp; &nbsp; android:layout_height=&quot;match_parent&quot;&gt;</p><p>&nbsp; &nbsp; &lt;ListView<br />&nbsp; &nbsp; &nbsp; &nbsp; android:id=&quot;@+id/list&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_width=&quot;match_parent&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_height=&quot;match_parent&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:background=&quot;#00FF00&quot;&gt;<br />&nbsp; &nbsp; &lt;/ListView&gt;</p><p>&nbsp; &nbsp; &lt;TextView<br />&nbsp; &nbsp; &nbsp; &nbsp; android:id=&quot;@+id/empty&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_width=&quot;wrap_content&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_height=&quot;wrap_content&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:text=&quot;@string/isEmpty&quot; /&gt;</p><p>&lt;/android.support.constraint.ConstraintLayout&gt;</p>]]></description>
			<author><![CDATA[null@example.com (kirill_nn)]]></author>
			<pubDate>Sun, 10 Dec 2017 15:49:39 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=1007#p1007</guid>
		</item>
		<item>
			<title><![CDATA[Re: ListActivity]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=1006#p1006</link>
			<description><![CDATA[<p>Читайте свои ошибки в студии и устраняйте их.</p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Sun, 10 Dec 2017 15:18:12 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=1006#p1006</guid>
		</item>
		<item>
			<title><![CDATA[Re: ListActivity]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=1005#p1005</link>
			<description><![CDATA[<p>А как подключать свой layout если использовать ConstraintLayout?<br />Как только добавляю строку -&nbsp; setContentView(R.layout.activity_customlist); - в эмуляторе ошибка...</p>]]></description>
			<author><![CDATA[null@example.com (kirill_nn)]]></author>
			<pubDate>Sun, 10 Dec 2017 15:14:37 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=1005#p1005</guid>
		</item>
		<item>
			<title><![CDATA[Re: ListActivity]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=847#p847</link>
			<description><![CDATA[<p>NeferSky: для первого случая вам просто нужно дописать одну строчку кода в метод onCreate:<br />&nbsp; &nbsp; &nbsp; <strong> getListView().setOnItemLongClickListener(this);&nbsp; &nbsp; &nbsp; &nbsp;</strong></p><div class="codebox"><pre><code>  @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_main);

        mAdapter = new ArrayAdapter&lt;&gt;(this,
                android.R.layout.simple_list_item_1, catNamesList);
        setListAdapter(mAdapter);
        getListView().setOnItemLongClickListener(this);       
    }</code></pre></div><p>Автор, не указал в тексте что нужно добавить данную строчку. Но в исходном коде она есть.</p><p>Во втором случае, не нужно делать <strong>implements AdapterView.OnItemLongClickListener</strong>, либо нужно реализовать обязательный метод onItemLongClick который наследуется от интерфейса AdapterView.OnItemLongClickListener</p>]]></description>
			<author><![CDATA[null@example.com (deslakator)]]></author>
			<pubDate>Fri, 23 Jun 2017 09:18:18 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=847#p847</guid>
		</item>
		<item>
			<title><![CDATA[Re: ListActivity]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=778#p778</link>
			<description><![CDATA[<p>Добрый день.<br />1) Не пойму никак, как интерфейс правильно реализовывать. Если делаю так:<br /></p><div class="codebox"><pre><code>package nefersky.listactivityapp;
/* в сообщении импорты убрал */

public class MainActivity extends ListActivity implements AdapterView.OnItemLongClickListener {
    final String[] catNamesArray = new String[]{&quot;Рыжик&quot;, &quot;Барсик&quot;, &quot;Мурзик&quot;, &quot;Мурка&quot;, &quot;Васька&quot;, &quot;Томасина&quot;, 

        &quot;Бобик&quot;, &quot;Кристина&quot;, &quot;Пушок&quot;, &quot;Дымка&quot;, &quot;Кузя&quot;, &quot;Китти&quot;, &quot;Барбос&quot;, &quot;Масяня&quot;, &quot;Симба&quot;};
    private ArrayList&lt;String&gt; catNamesList = new ArrayList&lt;&gt;(Arrays.asList(catNamesArray));
    private ArrayAdapter&lt;String&gt; mAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mAdapter = new ArrayAdapter&lt;&gt;(this, android.R.layout.simple_list_item_1, catNamesList);
        setListAdapter(mAdapter);
    }

    @Override
    protected void onListItemClick(ListView l, View v, int position, long id){
        super.onListItemClick(l, v, position, id);
        Toast.makeText(getApplicationContext(), &quot;Выбран элемент &quot; + l.getItemAtPosition(position).toString(), Toast.LENGTH_SHORT).show();
    }

    @Override
    public boolean onItemLongClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
        String selectedItem = parent.getItemAtPosition(position).toString();
        mAdapter.remove(selectedItem);
        mAdapter.notifyDataSetChanged();
        Toast.makeText(getApplicationContext(), &quot;Удален элемент &quot; + selectedItem, Toast.LENGTH_SHORT).show();
        return true;
    }
}</code></pre></div><p>то получаю ситуацию как у xazratbek - длинное нажатие не обрабатывается.</p><p>А если делаю так:<br /></p><div class="codebox"><pre><code>package nefersky.listactivityapp;
/* в сообщении импорты убрал */

public class MainActivity extends ListActivity implements AdapterView.OnItemLongClickListener {
    final String[] catNamesArray = new String[]{&quot;Рыжик&quot;, &quot;Барсик&quot;, &quot;Мурзик&quot;, &quot;Мурка&quot;, &quot;Васька&quot;, &quot;Томасина&quot;, 
        &quot;Бобик&quot;, &quot;Кристина&quot;, &quot;Пушок&quot;, &quot;Дымка&quot;, &quot;Кузя&quot;, &quot;Китти&quot;, &quot;Барбос&quot;, &quot;Масяня&quot;, &quot;Симба&quot;};
    private ArrayList&lt;String&gt; catNamesList = new ArrayList&lt;&gt;(Arrays.asList(catNamesArray));
    private ArrayAdapter&lt;String&gt; mAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ListView lv = getListView();
        lv.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
            @Override
            public boolean onItemLongClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
                String selectedItem = parent.getItemAtPosition(position).toString();
                mAdapter.remove(selectedItem);
                mAdapter.notifyDataSetChanged();
                Toast.makeText(getApplicationContext(), &quot;Удален элемент &quot; + selectedItem, Toast.LENGTH_SHORT).show();
                return true;
            }
        });
        mAdapter = new ArrayAdapter&lt;&gt;(this, android.R.layout.simple_list_item_1, catNamesList);
        setListAdapter(mAdapter);
    }

    @Override
    protected void onListItemClick(ListView l, View v, int position, long id){
        super.onListItemClick(l, v, position, id);
        Toast.makeText(getApplicationContext(), &quot;Выбран элемент &quot; + l.getItemAtPosition(position).toString(), Toast.LENGTH_SHORT).show();
    }
}</code></pre></div><p>то студия ругается на строку &quot;public class MainActivity extends ListActivity implements AdapterView.OnItemLongClickListener&quot;, что &quot;class &#039;MainActivity&#039; must either be declared abstract or implement abstract method &#039;onItemLongClick(AdapterView&lt;?&gt;, View, int, long)&#039; in OnItemLongClickListener&#039;&quot;. При этом если убрать &quot;implements AdapterView.OnItemLongClickListener&quot; - то все работает исправно. Как, все-таки, надо делать?</p><br /><p>2) Если список занимает не весь экран, то под ним (списком) находится textView &quot;List is empty&quot; - это так и должно быть?</p>]]></description>
			<author><![CDATA[null@example.com (NeferSky)]]></author>
			<pubDate>Fri, 07 Apr 2017 09:47:20 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=778#p778</guid>
		</item>
		<item>
			<title><![CDATA[Re: ListActivity]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=416#p416</link>
			<description><![CDATA[<p>public class TrenirovkaFragment extends ListFragment&nbsp; {<br />&nbsp; &nbsp; ArrayAdapter&lt;Spisok&gt; arrayAdapter;<br />&nbsp; &nbsp; @Override<br />&nbsp; &nbsp; public void onActivityCreated(Bundle savedInstanceState) {<br />&nbsp; &nbsp; &nbsp; &nbsp; super.onActivityCreated(savedInstanceState);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; arrayAdapter =new ArrayAdapter&lt;&gt;(getActivity(),android.R.layout.simple_list_item_1, Spisok.listSpisok);<br />&nbsp; &nbsp; &nbsp; &nbsp; setListAdapter(arrayAdapter);<br />&nbsp; &nbsp; &nbsp; &nbsp; ListView listView = getListView();<br />&nbsp; &nbsp; &nbsp; &nbsp; listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @Override<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public boolean onItemLongClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String name = parent.getItemAtPosition(position).toString();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />ЧТО ЗДЕСЬ НАПИСАТЬ ЕСЛИ ПРОСИТЬСЯ В ВИДЕ АРГКМЕНТА ДЛЧ УДАЛЕНИЯ </p><br /><br /><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Toast.makeText(getActivity(),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name + &quot; удалён.&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Toast.LENGTH_SHORT).show();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; });</p><p>&nbsp; &nbsp; &nbsp; &nbsp; listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @Override<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Intent intent = new Intent(getActivity(), Exercise.class);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; startActivity(intent);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; });</p><br /><p>&nbsp; &nbsp; }</p><br /><br /><p>}</p><p>как для такого варианта написать удаление из списка?</p>]]></description>
			<author><![CDATA[null@example.com (Serf)]]></author>
			<pubDate>Mon, 07 Mar 2016 23:16:28 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=416#p416</guid>
		</item>
		<item>
			<title><![CDATA[Re: ListActivity]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=378#p378</link>
			<description><![CDATA[<p>Понятно, спасибо большое!</p>]]></description>
			<author><![CDATA[null@example.com (xazratbek)]]></author>
			<pubDate>Tue, 16 Feb 2016 01:42:34 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=378#p378</guid>
		</item>
		<item>
			<title><![CDATA[Re: ListActivity]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=376#p376</link>
			<description><![CDATA[<p>У ListActivity нет метода для длительного нажатия. Поэтому вам нужно получить сам ListView и в нем уже реализовать нужный метод. Приблизительно так.<br />ListView lv = getListView(); // получим ListView<br />lv.setOnItemLongClickListener(new OnItemLongClickListener() {<br />&nbsp; &nbsp; @Override<br />&nbsp; &nbsp; public boolean onItemLongClick(AdapterView&lt;?&gt; arg0, View arg1,int row, long arg3) {<br />&nbsp; &nbsp; &nbsp; &nbsp; // your code<br />&nbsp; &nbsp; }<br />});</p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Mon, 15 Feb 2016 14:41:43 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=376#p376</guid>
		</item>
		<item>
			<title><![CDATA[Re: ListActivity]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=375#p375</link>
			<description><![CDATA[<p>Здравствуйте! У меня проблема с длинным нажатием. Я использую Android Studio c Geny Motion вместо встроенного эмулятора, и у меня возникает такая проблема. Я скопировал Ваш код, но там вот что: когда я просто нажимаю на какой-либо элемент, всплывает всплывающее сообщение (это правильно), но когда я держу нажатие несколько секунд (продержал даже 30), то вызывается не события для долговременного нажатия, а просто OnListItemClick. Поставил брейкпоинты, по-любому идет в OnListItemClick. В чем может быть проблема? Заранее благодарю за ответ</p>]]></description>
			<author><![CDATA[null@example.com (xazratbek)]]></author>
			<pubDate>Mon, 15 Feb 2016 09:08:59 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=375#p375</guid>
		</item>
		<item>
			<title><![CDATA[ListActivity]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=344#p344</link>
			<description><![CDATA[<p>Обсуждение статьи <a href="http://developer.alexanderklimov.ru/android/listactivity.php">ListActivity - создаём прокручиваемый список</a></p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Mon, 25 Jan 2016 19:29:26 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=344#p344</guid>
		</item>
	</channel>
</rss>
