<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум Александра Климова — Библиотека Android Support Design]]></title>
	<link rel="self" href="http://forum.alexanderklimov.ru/extern.php?action=feed&amp;tid=20&amp;type=atom" />
	<updated>2019-05-17T19:10:53Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.alexanderklimov.ru/viewtopic.php?id=20</id>
		<entry>
			<title type="html"><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=1149#p1149" />
			<content type="html"><![CDATA[<p>Александр, прошу прощения, кажется, опечатка в лекции: </p><p>&quot;<strong>Для начала создадим ресурс в в папке res/layout под именем bg_snackbar.xml...</strong>&quot;</p><p>Но далее по смыслу кода и согласно метода getDrawable становится понятно, что ресурс надо было создавать в папке res/drawable, а не res/layout<br />(?)</p>]]></content>
			<author>
				<name><![CDATA[swen922]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1898</uri>
			</author>
			<updated>2019-05-17T19:10:53Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=1149#p1149</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=999#p999" />
			<content type="html"><![CDATA[<p>Здравствуйте!</p><div class="quotebox"><cite>alexander.klimoff wrote:</cite><blockquote><p>Нет, нельзя. Но вы можете создать свое окно с любым количеством кнопок. Какая вам разница?</p></blockquote></div><p>Объясните мне пожалуйста что значит свое окно. Никак понять не могу.<br />И кстати - я где-то видел 2 кнопки в snackbar(где - точно не помню).</p>]]></content>
			<author>
				<name><![CDATA[tuta]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1554</uri>
			</author>
			<updated>2017-12-05T19:37:00Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=999#p999</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=998#p998" />
			<content type="html"><![CDATA[<p>студия не видит мой векторный файл, когда ввожу его в srcCompat. в drawable видно без проблем. В build.gradle прописал разрешение для векторов.</p>]]></content>
			<author>
				<name><![CDATA[kykara4a]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1548</uri>
			</author>
			<updated>2017-12-04T20:08:37Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=998#p998</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=944#p944" />
			<content type="html"><![CDATA[<p>Сделал всё по примеру<br />Получаю ошибку Error:(17, 9) error: class, interface, or enum expected<br />Показывает на строку private Snackbar mSnackbar;<br />И в методе fab.setOnClickListener переменная mSnackbar подсвечивается красным</p>]]></content>
			<author>
				<name><![CDATA[lordofdrug]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1511</uri>
			</author>
			<updated>2017-10-16T12:00:38Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=944#p944</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=940#p940" />
			<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>2017-10-12T16:26:38Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=940#p940</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=939#p939" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[write2sd]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1413</uri>
			</author>
			<updated>2017-10-12T14:57:04Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=939#p939</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=589#p589" />
			<content type="html"><![CDATA[<p>Да, спасибо, действительно все работает после отключения предупреждения. Кстати не знал что можно самостоятельно настраивать, что считать ошибкой, что предупреждением, а на что вообще не обращать внимание.</p>]]></content>
			<author>
				<name><![CDATA[thunder18]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=689</uri>
			</author>
			<updated>2016-08-17T21:59:35Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=589#p589</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=588#p588" />
			<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-08-17T12:24:07Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=588#p588</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=587#p587" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[thunder18]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=689</uri>
			</author>
			<updated>2016-08-16T20:27:24Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=587#p587</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=566#p566" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Twago]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1335</uri>
			</author>
			<updated>2016-06-30T14:53:42Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=566#p566</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=565#p565" />
			<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-06-30T12:03:01Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=565#p565</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=564#p564" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Twago]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1335</uri>
			</author>
			<updated>2016-06-29T21:35:38Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=564#p564</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=549#p549" />
			<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-06-05T14:35:27Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=549#p549</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=548#p548" />
			<content type="html"><![CDATA[<p>Здравствуйте.<br />Пытаюсь понять что вы делаете в &quot;Android Support Design&quot; и не могу понять как у вас появился новый шаблон. Можно немного пояснить как вы его добавили? У меня студия версии 1.1.0. Если это старая версия, то откуда запускать compile &#039;com.android.support:design:23.1.1&#039; и что она вообще даст и как узнать какая последняя версия&nbsp; Gradle и что это вообще такое?</p>]]></content>
			<author>
				<name><![CDATA[Kipetcoff]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1293</uri>
			</author>
			<updated>2016-06-05T12:37:25Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=548#p548</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Библиотека Android Support Design]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=465#p465" />
			<content type="html"><![CDATA[<p><a href="http://developer.alexanderklimov.ru/android/layout/include.php">http://developer.alexanderklimov.ru/and … nclude.php</a></p>]]></content>
			<author>
				<name><![CDATA[alexander.klimoff]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=2</uri>
			</author>
			<updated>2016-03-25T05:45:28Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=465#p465</id>
		</entry>
</feed>
