<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум Александра Климова — Библиотека Android Support Design]]></title>
		<link>http://forum.alexanderklimov.ru/viewtopic.php?id=20</link>
		<atom:link href="http://forum.alexanderklimov.ru/extern.php?action=feed&amp;tid=20&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Библиотека Android Support Design.]]></description>
		<lastBuildDate>Fri, 17 May 2019 19:10:53 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=1149#p1149</link>
			<description><![CDATA[<p>Александр, прошу прощения, кажется, опечатка в лекции: </p><p>&quot;<strong>Для начала создадим ресурс в в папке res/layout под именем bg_snackbar.xml...</strong>&quot;</p><p>Но далее по смыслу кода и согласно метода getDrawable становится понятно, что ресурс надо было создавать в папке res/drawable, а не res/layout<br />(?)</p>]]></description>
			<author><![CDATA[null@example.com (swen922)]]></author>
			<pubDate>Fri, 17 May 2019 19:10:53 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=1149#p1149</guid>
		</item>
		<item>
			<title><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=999#p999</link>
			<description><![CDATA[<p>Здравствуйте!</p><div class="quotebox"><cite>alexander.klimoff wrote:</cite><blockquote><p>Нет, нельзя. Но вы можете создать свое окно с любым количеством кнопок. Какая вам разница?</p></blockquote></div><p>Объясните мне пожалуйста что значит свое окно. Никак понять не могу.<br />И кстати - я где-то видел 2 кнопки в snackbar(где - точно не помню).</p>]]></description>
			<author><![CDATA[null@example.com (tuta)]]></author>
			<pubDate>Tue, 05 Dec 2017 19:37:00 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=999#p999</guid>
		</item>
		<item>
			<title><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=998#p998</link>
			<description><![CDATA[<p>студия не видит мой векторный файл, когда ввожу его в srcCompat. в drawable видно без проблем. В build.gradle прописал разрешение для векторов.</p>]]></description>
			<author><![CDATA[null@example.com (kykara4a)]]></author>
			<pubDate>Mon, 04 Dec 2017 20:08:37 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=998#p998</guid>
		</item>
		<item>
			<title><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=944#p944</link>
			<description><![CDATA[<p>Сделал всё по примеру<br />Получаю ошибку Error:(17, 9) error: class, interface, or enum expected<br />Показывает на строку private Snackbar mSnackbar;<br />И в методе fab.setOnClickListener переменная mSnackbar подсвечивается красным</p>]]></description>
			<author><![CDATA[null@example.com (lordofdrug)]]></author>
			<pubDate>Mon, 16 Oct 2017 12:00:38 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=944#p944</guid>
		</item>
		<item>
			<title><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=940#p940</link>
			<description><![CDATA[<p>Может вы используете старую версию библиотеки? Метод появился чуть позже.</p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Thu, 12 Oct 2017 16:26:38 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=940#p940</guid>
		</item>
		<item>
			<title><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=939#p939</link>
			<description><![CDATA[<p>Добрый вечер! Пытаюсь выполнить Android Support Design но андроид студио не видит метод addCallback связано ли это с обновлением или я где то ошибся? </p><br /><p>public class MainActivity extends AppCompatActivity {</p><p>&nbsp; &nbsp; private Snackbar mSnackbar;</p><p>&nbsp; &nbsp; @Override<br />&nbsp; &nbsp; protected void onCreate(Bundle savedInstanceState) {<br />&nbsp; &nbsp; &nbsp; &nbsp; super.onCreate(savedInstanceState);<br />&nbsp; &nbsp; &nbsp; &nbsp; setContentView(R.layout.activity_main);<br />&nbsp; &nbsp; &nbsp; &nbsp; final Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);<br />&nbsp; &nbsp; &nbsp; &nbsp; setSupportActionBar(toolbar);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);<br />&nbsp; &nbsp; &nbsp; &nbsp; fab.setOnClickListener(new View.OnClickListener() {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @Override<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void onClick (View view) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mSnackbar = Snackbar.make(view, &quot;Пора кормить кота!&quot;, Snackbar.LENGTH_LONG)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.setAction(&quot;Action&quot;, null);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mSnackbar.show();</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mSnackbar.addCallback(new&nbsp; Snackbar.Callback() {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @Override<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void onDismissed(Snackbar snackbar, int event) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (event == Snackbar.Callback.DISMISS_EVENT_TIMEOUT) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Log.i(&quot;Snackbar&quot;, &quot;Закрыт по истечении таймаута&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (event == Snackbar.Callback.DISMISS_EVENT_SWIPE){<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Log.i(&quot;SnackBar&quot;, &quot;Swipe&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @Override<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void onShow(Snackbar snackbar) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Log.i(&quot;SnackBar&quot;, &quot;onShow&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; });</p><p>&nbsp; &nbsp; &nbsp; &nbsp; Button dimissButton = (Button) findViewById(R.id.buttonDismiss);<br />&nbsp; &nbsp; &nbsp; &nbsp; dimissButton.setOnClickListener(new View.OnClickListener() {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @Override<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void onClick(View view) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mSnackbar.dismiss();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; });<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; @Override<br />&nbsp; &nbsp; public boolean onCreateOptionsMenu(Menu menu) {<br />&nbsp; &nbsp; &nbsp; &nbsp; // Inflate the menu; this adds items to the action bar if it is present.<br />&nbsp; &nbsp; &nbsp; &nbsp; getMenuInflater().inflate(R.menu.menu_main, menu);<br />&nbsp; &nbsp; &nbsp; &nbsp; return true;<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; @Override<br />&nbsp; &nbsp; public boolean onOptionsItemSelected(MenuItem item) {<br />&nbsp; &nbsp; &nbsp; &nbsp; // Handle action bar item clicks here. The action bar will<br />&nbsp; &nbsp; &nbsp; &nbsp; // automatically handle clicks on the Home/Up button, so long<br />&nbsp; &nbsp; &nbsp; &nbsp; // as you specify a parent activity in AndroidManifest.xml.<br />&nbsp; &nbsp; &nbsp; &nbsp; int id = item.getItemId();</p><p>&nbsp; &nbsp; &nbsp; &nbsp; //noinspection SimplifiableIfStatement<br />&nbsp; &nbsp; &nbsp; &nbsp; if (id == R.id.action_settings) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br />&nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp; &nbsp; return super.onOptionsItemSelected(item);<br />&nbsp; &nbsp; }<br />}</p>]]></description>
			<author><![CDATA[null@example.com (write2sd)]]></author>
			<pubDate>Thu, 12 Oct 2017 14:57:04 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=939#p939</guid>
		</item>
		<item>
			<title><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=589#p589</link>
			<description><![CDATA[<p>Да, спасибо, действительно все работает после отключения предупреждения. Кстати не знал что можно самостоятельно настраивать, что считать ошибкой, что предупреждением, а на что вообще не обращать внимание.</p>]]></description>
			<author><![CDATA[null@example.com (thunder18)]]></author>
			<pubDate>Wed, 17 Aug 2016 21:59:35 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=589#p589</guid>
		</item>
		<item>
			<title><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=588#p588</link>
			<description><![CDATA[<p>Попробуйте отключить это предупреждение. Там кажется просто не поправили в документации этот момент и студия ругается.</p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Wed, 17 Aug 2016 12:24:07 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=588#p588</guid>
		</item>
		<item>
			<title><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=587#p587</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>Также можно задать свою продолжительность. В первых версиях это не работало, я даже задавал этот вопрос на StackOverFlow, где проблему подтвердили и обещали исправить. Недавно проверял - действительно, теперь работает.</p></blockquote></div><p>Я попробовал, почему-то он не дает задать продолжительность. Андроид Студио утверждает что я могу использовать только готовые типы:<br /><a href="http://hdd.tomsk.ru/file/admzlsep"><span class="postimg"><img src="http://download.hdd.tomsk.ru/preview/admzlsep.jpg" alt="http://download.hdd.tomsk.ru/preview/admzlsep.jpg" /></span></a></p>]]></description>
			<author><![CDATA[null@example.com (thunder18)]]></author>
			<pubDate>Tue, 16 Aug 2016 20:27:24 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=587#p587</guid>
		</item>
		<item>
			<title><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=566#p566</link>
			<description><![CDATA[<div class="quotebox"><cite>alexander.klimoff wrote:</cite><blockquote><p>Нет, нельзя. Но вы можете создать свое окно с любым количеством кнопок. Какая вам разница?</p></blockquote></div><p>Действительно <img src="http://forum.alexanderklimov.ru/img/smilies/smile.png" width="15" height="15" alt="smile" /> Спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (Twago)]]></author>
			<pubDate>Thu, 30 Jun 2016 14:53:42 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=566#p566</guid>
		</item>
		<item>
			<title><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=565#p565</link>
			<description><![CDATA[<p>Нет, нельзя. Но вы можете создать свое окно с любым количеством кнопок. Какая вам разница?</p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Thu, 30 Jun 2016 12:03:01 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=565#p565</guid>
		</item>
		<item>
			<title><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=564#p564</link>
			<description><![CDATA[<p>Здравствуйте!</p><p>Хотел бы спосить, возможно ли добавить несколько кнопок методом .setAction()? Очень бы хотелось иметь больше возможных кнопок <img src="http://forum.alexanderklimov.ru/img/smilies/smile.png" width="15" height="15" alt="smile" /> Например &quot;Нет&quot;, не покормил я кота, к сожалению :3</p>]]></description>
			<author><![CDATA[null@example.com (Twago)]]></author>
			<pubDate>Wed, 29 Jun 2016 21:35:38 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=564#p564</guid>
		</item>
		<item>
			<title><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=549#p549</link>
			<description><![CDATA[<p>А что мешает вам обновить версию студии до новой? Там и найдете новый шаблон. На остальные вопросы здесь в двух словах не ответить, все есть на сайте.</p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Sun, 05 Jun 2016 14:35:27 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=549#p549</guid>
		</item>
		<item>
			<title><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=548#p548</link>
			<description><![CDATA[<p>Здравствуйте.<br />Пытаюсь понять что вы делаете в &quot;Android Support Design&quot; и не могу понять как у вас появился новый шаблон. Можно немного пояснить как вы его добавили? У меня студия версии 1.1.0. Если это старая версия, то откуда запускать compile &#039;com.android.support:design:23.1.1&#039; и что она вообще даст и как узнать какая последняя версия&nbsp; Gradle и что это вообще такое?</p>]]></description>
			<author><![CDATA[null@example.com (Kipetcoff)]]></author>
			<pubDate>Sun, 05 Jun 2016 12:37:25 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=548#p548</guid>
		</item>
		<item>
			<title><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=465#p465</link>
			<description><![CDATA[<p><a href="http://developer.alexanderklimov.ru/android/layout/include.php">http://developer.alexanderklimov.ru/and … nclude.php</a></p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Fri, 25 Mar 2016 05:45:28 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=465#p465</guid>
		</item>
	</channel>
</rss>
