<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум Александра Климова — Toast]]></title>
	<link rel="self" href="http://forum.alexanderklimov.ru/extern.php?action=feed&amp;tid=13&amp;type=atom" />
	<updated>2019-05-15T14:25:42Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.alexanderklimov.ru/viewtopic.php?id=13</id>
		<entry>
			<title type="html"><![CDATA[Re: Toast]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=1148#p1148" />
			<content type="html"><![CDATA[<p>Кажется, в коде про запуск Тоста в отдельной нитке не хватает строчки с инициализацией объекта Handler, не работает без нее. Нашел на developer.android.com вот такой вариант:</p><p><strong>Handler handler = new Handler(Looper.getMainLooper());</strong></p><p>Правильно так инициализировать или как-то по-другому нужно?<br />В принципе, так заработало вроде норм..</p>]]></content>
			<author>
				<name><![CDATA[swen922]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1898</uri>
			</author>
			<updated>2019-05-15T14:25:42Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=1148#p1148</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Toast]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=1138#p1138" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>kvkirilv wrote:</cite><blockquote><p>Здравствуйте. Прошу помощи&nbsp; получаю ошибку makeText. Подскажите пожалуйста где я ошибся?</p><p>Скрин ошибки. <br /><a href="https://yadi.sk/i/BSNRUo7oTiJPbg">https://yadi.sk/i/BSNRUo7oTiJPbg</a></p></blockquote></div><br /><p>Сам ответил на свой вопрос)))) &quot;new&quot; не нужно было писать!!</p>]]></content>
			<author>
				<name><![CDATA[kvkirilv]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1787</uri>
			</author>
			<updated>2018-11-21T07:55:02Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=1138#p1138</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Toast]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=1137#p1137" />
			<content type="html"><![CDATA[<p>Здравствуйте. Прошу помощи&nbsp; получаю ошибку makeText. Подскажите пожалуйста где я ошибся?</p><p>Скрин ошибки. <br /><a href="https://yadi.sk/i/BSNRUo7oTiJPbg">https://yadi.sk/i/BSNRUo7oTiJPbg</a></p>]]></content>
			<author>
				<name><![CDATA[kvkirilv]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1787</uri>
			</author>
			<updated>2018-11-21T07:29:04Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=1137#p1137</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Toast]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=896#p896" />
			<content type="html"><![CDATA[<p>А почему такое ограничение на время показа сообщения?<br />Зачем надо было так ограничивать.</p>]]></content>
			<author>
				<name><![CDATA[ramazan0504]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1493</uri>
			</author>
			<updated>2017-08-30T19:43:05Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=896#p896</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Toast]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=865#p865" />
			<content type="html"><![CDATA[<p>У них есть метод cancel(). Заводите переменные для тостов и отменяйте их.</p>]]></content>
			<author>
				<name><![CDATA[alexander.klimoff]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=2</uri>
			</author>
			<updated>2017-08-05T12:33:48Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=865#p865</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Toast]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=864#p864" />
			<content type="html"><![CDATA[<p>Трабл! Хелп!</p><p>Ну и регистрация запутанная...</p><p>Вопрос по теме: Вызываются несколько тостов одновременно, вручную. Второй тост ждет пока кончиться первый тост, хотя второй тост был вызван сразу после первого. Так вот, как можно сделать чтоб последующие тосты перетирали показ предыдущего, не дожидаясь окончания показа?</p>]]></content>
			<author>
				<name><![CDATA[Yank]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1488</uri>
			</author>
			<updated>2017-08-05T11:55:44Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=864#p864</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Toast]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=790#p790" />
			<content type="html"><![CDATA[<p><strong>shubaly</strong>,<br />своё, конечно... В студии голодных котов не предусмотрено...</p>]]></content>
			<author>
				<name><![CDATA[NeferSky]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1445</uri>
			</author>
			<updated>2017-04-13T06:51:43Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=790#p790</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Toast]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=789#p789" />
			<content type="html"><![CDATA[<p>Где взять картинку hungrycat.jpg ? <br />Или искать в интернете что-нибудь своё ?</p>]]></content>
			<author>
				<name><![CDATA[shubaly]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1457</uri>
			</author>
			<updated>2017-04-13T06:40:55Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=789#p789</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Toast]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=752#p752" />
			<content type="html"><![CDATA[<p>private void backgroundThreadProcessing() {<br />&nbsp; &nbsp; handler.post(doUpdateGUI);<br />}</p><p>Хэндлер, в данном случае, дескриптор UI-потока, верно? Описание этого класса читал, но не до конца понял...</p>]]></content>
			<author>
				<name><![CDATA[NeferSky]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1445</uri>
			</author>
			<updated>2017-03-31T11:03:04Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=752#p752</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Toast]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=579#p579" />
			<content type="html"><![CDATA[<p>Можете не использовать, если не видите нужды. Они только предупреждают, поэтому не часто используются.</p>]]></content>
			<author>
				<name><![CDATA[alexander.klimoff]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=2</uri>
			</author>
			<updated>2016-07-27T09:41:44Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=579#p579</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Toast]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=578#p578" />
			<content type="html"><![CDATA[<p>Здравствуйте, Александр.<br />Расскажите, пожалуйста, какое практическое применение есть у таких оповещений? Не могу припомнить приложений, в которых есть такие всплывающие окна. Они, видимо должны о чем то оповещать, но взаимодействия с пользователем в них нет. Можете привести какие-нибудь примеры?</p>]]></content>
			<author>
				<name><![CDATA[ashum]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1361</uri>
			</author>
			<updated>2016-07-27T08:39:12Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=578#p578</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Toast]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=482#p482" />
			<content type="html"><![CDATA[<p>Тут выше жалуются, что текст не выводится, а только картинка. Вам всем не угодишь. А вообще, не нужно изгаляться над этим сообщением. Используйте стандартный вид для вывода текста.</p>]]></content>
			<author>
				<name><![CDATA[alexander.klimoff]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=2</uri>
			</author>
			<updated>2016-04-07T08:26:12Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=482#p482</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Toast]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=480#p480" />
			<content type="html"><![CDATA[<p>Здрасте) а подскажите как сделать так что бы только картинки высвечивались, без текста? я использую такой код</p><p>&nbsp; &nbsp; &nbsp; </p><div class="codebox"><pre><code>Toast toast = Toast.makeText(GoodMaster.this,&quot;&quot;, Toast.LENGTH_LONG);
                LinearLayout toastImage = (LinearLayout) toast.getView();
                ImageView imageView = new ImageView(GoodMaster.this);
                imageView.setImageResource(R.drawable.rt);
                toastImage.addView(imageView, 0);
                toast.show();</code></pre></div><p>Я просто не вписывал текст в кавычки, но по умолчанию для него отведено место, из-за этого область Toast получается большая. Как сделать так, что бы выводило только картинку?</p>]]></content>
			<author>
				<name><![CDATA[goodmasterua]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1216</uri>
			</author>
			<updated>2016-04-06T23:27:06Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=480#p480</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Toast]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=428#p428" />
			<content type="html"><![CDATA[<p>Как уже писал, при использовании нестандартных компонентов проблемы с рендерингом могут возникать. Тут надо скопировать ваш код и проверить у себя для сравнения.<br />Насчет SDK Manager, то вы не совсем правильно смотрите. Надо еще просмотреть вторую вкладку. Рекомендую запустить его в отдельном окне.</p>]]></content>
			<author>
				<name><![CDATA[alexander.klimoff]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=2</uri>
			</author>
			<updated>2016-03-13T13:14:07Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=428#p428</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Toast]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=427#p427" />
			<content type="html"><![CDATA[<p>ok Я щас записал рендеринг проблемы в том смысле, что полазил по настройкам и записал фильм снагитом<br /><a href="http://www.youtube.com/watch?v=Vxkw7Gs19-M">http://www.youtube.com/watch?v=Vxkw7Gs19-M</a><br />Это нормальная ситуация? Начиная с 12го урока все стало так черным. Что еще поднастроить надо?</p>]]></content>
			<author>
				<name><![CDATA[sxakludanto]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1174</uri>
			</author>
			<updated>2016-03-13T11:26:05Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=427#p427</id>
		</entry>
</feed>
