<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум Александра Климова — Fragment (Фрагменты)]]></title>
		<link>http://forum.alexanderklimov.ru/viewtopic.php?id=31</link>
		<atom:link href="http://forum.alexanderklimov.ru/extern.php?action=feed&amp;tid=31&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Fragment (Фрагменты).]]></description>
		<lastBuildDate>Thu, 18 Jan 2018 16:19:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=1045#p1045</link>
			<description><![CDATA[<p>Задействовать классы для преобразования дат - это понятно, непонятно в какой момент их задействовать.<br />Я использую метод query наследника SQLiteOpenHelper для получения курсора, который подставляю в конструктор SimpleCursorAdapter, туда же подставляются массив имен колонок откуда будут браться данные и массив имен полей раскладки, в которой они будут отображаться. Непосредственно данными я не оперирую. Если я правильно понимаю SimpleCursorAdapter сам получает данные и помещает их в ListFragment. Возможно ли как-то указать адаптеру, что данные перед выводом надо как-то обработать или здесь требуется совершенно иной подход?</p>]]></description>
			<author><![CDATA[null@example.com (oegir)]]></author>
			<pubDate>Thu, 18 Jan 2018 16:19:17 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=1045#p1045</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=1043#p1043</link>
			<description><![CDATA[<p>В Java есть классы для работы с датами <a href="http://developer.alexanderklimov.ru/android/java/date.php">http://developer.alexanderklimov.ru/and … a/date.php</a> Изучите этот вопрос.</p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Wed, 17 Jan 2018 17:14:52 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=1043#p1043</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=1042#p1042</link>
			<description><![CDATA[<p>Привет. Такой вопрос:<br />Есть поле в базе типа long в котором хранится дата в формате UTC. Для вывода использую ListFragment совместно с SimpleCursorAdapter. Возможно ли при выводе как-то форматировать дату для приведения ее к удобочитаемому виду?</p>]]></description>
			<author><![CDATA[null@example.com (oegir)]]></author>
			<pubDate>Wed, 17 Jan 2018 16:49:58 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=1042#p1042</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=1029#p1029</link>
			<description><![CDATA[<div class="quotebox"><cite>Xiri wrote:</cite><blockquote><p>Добрый день. Можно ли каким-то образом использовать один фрагмент для нескольких активностей? Ну например, некий фрагмент - синглтон.</p></blockquote></div><p>Да можно, почему бы и нет... Простой учебный вариант - написать класс фрагмента, и создавать его экземпляры в любых активностях, каких захотите.<br />Сложный вариант реализации синглетона... Ну, навскидку - описать в классе фрагмента статический метод, возвращающий экземпляр фрагмента. В методе проверять - &quot;если не создан то создать&quot; и возвращать экземпляр... а, ну и внутри класса ссылку на созданный экземпляр тоже сохранять куда-нибудь... Убиваца экземпляр будет, наверное, самостоятельно, java многое прощает в плане чистки мусора... Хотя, тут надо бы проверить - если экземпляр фрагмента никем не используется, то может убица самостоятельно...<br />Вот. Абстрактный вопрос - абстрактный ответ))</p>]]></description>
			<author><![CDATA[null@example.com (NeferSky)]]></author>
			<pubDate>Sat, 23 Dec 2017 19:29:55 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=1029#p1029</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=1022#p1022</link>
			<description><![CDATA[<p>Добрый день. Можно ли каким-то образом использовать один фрагмент для нескольких активностей? Ну например, некий фрагмент - синглтон.</p>]]></description>
			<author><![CDATA[null@example.com (Xiri)]]></author>
			<pubDate>Thu, 21 Dec 2017 14:11:22 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=1022#p1022</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=900#p900</link>
			<description><![CDATA[<p>NeferSky, спасибо еще раз. Правда, когда вставил content, менюшка была сверху, но при нажатии на все кнопки отображался только один первый фрагмент (т.е. не менялся). Я заменил content на fragment в главной активности. Теперь все работает! Спасибо, все корректно отображается. Подсказал мне, в каком направлении думать!</p>]]></description>
			<author><![CDATA[null@example.com (Mish)]]></author>
			<pubDate>Sun, 03 Sep 2017 18:44:43 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=900#p900</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=899#p899</link>
			<description><![CDATA[<p>NeferSky, спасибо большое! Приду домой&nbsp; посмотрю! Спасибо еще раз!</p>]]></description>
			<author><![CDATA[null@example.com (Mish)]]></author>
			<pubDate>Fri, 01 Sep 2017 13:29:18 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=899#p899</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=898#p898</link>
			<description><![CDATA[<p><strong>Mish</strong>, нашел ошибку.<br />В классе главной активности:<br /></p><div class="codebox"><pre><code>fragmentManager.beginTransaction().replace(R.id.content, fragment).commit(); // &quot;R.id.content&quot;, а у Вас &quot;R.id.container&quot;</code></pre></div><p>Умаялся искать, если честно)</p>]]></description>
			<author><![CDATA[null@example.com (NeferSky)]]></author>
			<pubDate>Fri, 01 Sep 2017 11:54:09 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=898#p898</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=897#p897</link>
			<description><![CDATA[<p>Добрый день, коллеги. <br /> Никто не поможет мне разобраться в небольшом вопросе взаимодействия фрагмента и BottomNavigationView? Дело в том, что использую стандартную Bottom Navigation Activity (с 3-мя кнопками внизу экрана).&nbsp; По умолчанию – при нажатии на кнопки изменяется текст. Я хочу, чтобы при нажатии на кнопку – появлялся фрагмент. Но, когда написал код, то некорректно отображается эта панель с кнопками: эта панель оказывается вверху, а не снизу, как по умолчанию.<br />&nbsp; </p><p>Как сделать так, чтобы при появлении фрагмента кнопки панели оставались там же?</p><p>Вот главный код:<br />import android.os.Bundle;<br />import android.support.annotation.NonNull;<br />import android.support.design.widget.BottomNavigationView;<br />import android.support.v4.app.Fragment;<br />import android.support.v4.app.FragmentManager;<br />import android.support.v7.app.AppCompatActivity;<br />import android.view.MenuItem;<br />import android.widget.TextView;</p><p>public class MainActivity extends AppCompatActivity {</p><p>&nbsp; &nbsp; private TextView mTextMessage;</p><p>&nbsp; &nbsp; private BottomNavigationView.OnNavigationItemSelectedListener mOnNavigationItemSelectedListener<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = new BottomNavigationView.OnNavigationItemSelectedListener() {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; @Override<br />&nbsp; &nbsp; &nbsp; &nbsp; public boolean onNavigationItemSelected(@NonNull MenuItem item) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fragment fragment = null;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Class fragmentClass = null;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int id = item.getItemId();</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (id == R.id.navigation_home) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fragmentClass = BiografyClass.class;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else if (id == R.id.navigation_dashboard) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fragmentClass = PhotoFragment.class;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else if (id == R.id.navigation_notifications) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fragmentClass = PhotoFragment.class;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fragment = (Fragment) fragmentClass.newInstance();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } catch (Exception e) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.printStackTrace();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FragmentManager fragmentManager = getSupportFragmentManager();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fragmentManager.beginTransaction().replace(R.id.container, fragment).commit();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setTitle(item.getTitle());</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br />&nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; };</p><br /><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);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; mTextMessage = (TextView) findViewById(R.id.message);<br />&nbsp; &nbsp; &nbsp; &nbsp; BottomNavigationView navigation = (BottomNavigationView) findViewById(R.id.navigation);<br />&nbsp; &nbsp; &nbsp; &nbsp; navigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener);<br />&nbsp; &nbsp; }</p><p>Activity_main:<br />&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br />&lt;LinearLayout 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:id=&quot;@+id/container&quot;<br />&nbsp; &nbsp; android:layout_width=&quot;match_parent&quot;<br />&nbsp; &nbsp; android:layout_height=&quot;match_parent&quot;<br />&nbsp; &nbsp; android:orientation=&quot;vertical&quot;<br />&nbsp; &nbsp; tools:context=&quot;com.example.butam.biografy4.MainActivity&quot;&gt;</p><br /><br /><p>&nbsp; &nbsp; &lt;LinearLayout<br />&nbsp; &nbsp; &nbsp; &nbsp; android:id=&quot;@+id/content&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_width=&quot;match_parent&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_height=&quot;0dp&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_weight=&quot;1&quot;&gt;<br />&nbsp; &nbsp; &lt;fragment<br />&nbsp; &nbsp; &nbsp; &nbsp; android:id=&quot;@+id/fragment&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:name=&quot;com.example.butam.biografy4.BiografyClass&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:layout_gravity=&quot;center_horizontal&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; /&gt;</p><br /><p>&lt;/LinearLayout&gt;</p><p>&nbsp; &nbsp; &lt;android.support.design.widget.BottomNavigationView<br />&nbsp; &nbsp; &nbsp; &nbsp; android:id=&quot;@+id/navigation&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_width=&quot;match_parent&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_height=&quot;wrap_content&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_gravity=&quot;bottom&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:background=&quot;?android:attr/windowBackground&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; app:menu=&quot;@menu/navigation&quot; /&gt;</p><br /><p>&lt;/LinearLayout&gt;</p><p>Fragment_biografy.xml:<br />&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br />&lt;LinearLayout 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:id=&quot;@+id/container&quot;<br />&nbsp; &nbsp; android:layout_width=&quot;match_parent&quot;<br />&nbsp; &nbsp; android:layout_height=&quot;match_parent&quot;<br />&nbsp; &nbsp; android:orientation=&quot;vertical&quot;<br />&nbsp; &nbsp; tools:context=&quot;com.example.butam.biografy4.MainActivity&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;LinearLayout<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:id=&quot;@+id/content&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_width=&quot;match_parent&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_height=&quot;match_parent&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_weight=&quot;1&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;TextView<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:id=&quot;@+id/message&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_width=&quot;match_parent&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_height=&quot;wrap_content&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_marginBottom=&quot;@dimen/activity_vertical_margin&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_marginLeft=&quot;@dimen/activity_horizontal_margin&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_marginRight=&quot;@dimen/activity_horizontal_margin&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_marginTop=&quot;@dimen/activity_vertical_margin&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:text=&quot;Тут Текст 1&quot; /&gt;</p><br /><p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/LinearLayout&gt;</p><br /><br /><p>&lt;/LinearLayout&gt;</p><br /><p>BiografyClass.java:<br />import android.os.Bundle;<br />import android.support.annotation.Nullable;<br />import android.support.v4.app.Fragment;<br />import android.view.LayoutInflater;<br />import android.view.View;<br />import android.view.ViewGroup;</p><br /><br /><p>public class BiografyClass extends Fragment {</p><p>&nbsp; &nbsp; @Nullable<br />&nbsp; &nbsp; @Override<br />&nbsp; &nbsp; public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@Nullable Bundle savedInstanceState) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; View rootView =<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inflater.inflate(R.layout.fragment_biografy, container, false);<br />&nbsp; &nbsp; &nbsp; &nbsp; return rootView;</p><p>&nbsp; &nbsp; }</p><p>}</p><p>Если переходить на другую активность с помощью интента или просто выводить текст, то все корректно отображается. С фрагментами никак пока не разберусь.</p>]]></description>
			<author><![CDATA[null@example.com (Mish)]]></author>
			<pubDate>Fri, 01 Sep 2017 08:49:59 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=897#p897</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=671#p671</link>
			<description><![CDATA[<p>Там были просто опечатки. Я заново прошел урок и поправил те моменты, которые вызывали ошибку. Не вижу ничего страшного, если приходится что-то удалять из проекта. Это учебные примеры, лучше будете ориентироваться в коде, когда будете анализировать, что вызывает ошибку.</p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Thu, 22 Dec 2016 20:54:44 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=671#p671</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=668#p668</link>
			<description><![CDATA[<p>Подтверждаю проблему onCreateView с двумя версиями кода: вариант с &quot;View rootView&quot; работает отлично, а вот &quot;Button button&quot; не даёт скомпилить прогу.</p><p>Видимо, мы зря ищем &quot;button&quot; в &quot;container&quot; до вызова &quot;inflate&quot;.. её там нет.</p><p>Первые 4 статьи по &quot;фрагментам&quot; компилялись на ура.. А вот 5-ая прямо забуксовала.. Лучше укажите, чтобы писали с нуля.. А то старый код по сути весь приходится удалять (</p>]]></description>
			<author><![CDATA[null@example.com (ivan)]]></author>
			<pubDate>Thu, 22 Dec 2016 14:02:09 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=668#p668</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=534#p534</link>
			<description><![CDATA[<p>Да, когда поставил везде одну библиотеку ошибки ушли.<br />Теперь крашится при запуске:</p><p>Unable to start activity ComponentInfo{com.example.ant_design.fragment5/com.example.ant_design.fragment5.MainActivity}: android.view.InflateException: Binary XML file line #16: Error inflating class fragment</p><p>Т.е. почему-то не надувается фрагмент с кнопкой, если его удалить из activity_main.xml то запускается.<br />Ума не приложу что там может быть не так....</p><p>fragment_with_button.xml прост до безобразия, сам код фрагмента в activity_main.xml тоже не бином Ньютона.<br />Сейчас буду экспериментировать</p>]]></description>
			<author><![CDATA[null@example.com (Ant118)]]></author>
			<pubDate>Sat, 14 May 2016 18:05:30 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=534#p534</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=533#p533</link>
			<description><![CDATA[<p>Я не встречал проблем, если фрагменты используются из одной библиотеки. Поэтому просто приведите все к одному знаменателю.</p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Sat, 14 May 2016 13:15:05 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=533#p533</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=531#p531</link>
			<description><![CDATA[<p>Здравствуйте!<br />Данный метод вызывает конфликт android.app.FragmentManager; и android.support.v4.app.Fragment;<br />@Override<br />public void count(String data) {<br />&nbsp; &nbsp; FragmentManager manager = getSupportFragmentManager();<br />&nbsp; &nbsp; WithTextViewFragment withTextViewFragment =<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (WithTextViewFragment) manager.findFragmentById(R.id.fragment_withTextView);<br />&nbsp; &nbsp; withTextViewFragment.changeText(data);<br />}</p><p>Пробовал переделать так:<br /> public void count(String data) {<br />&nbsp; &nbsp; &nbsp; &nbsp; FragmentManager manager = getFragmentManager();<br />&nbsp; &nbsp; &nbsp; &nbsp; WithTextViewFragment withTextViewFragment =<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (WithTextViewFragment) manager.findFragmentById(R.id.fragment2);<br />&nbsp; &nbsp; &nbsp; &nbsp; withTextViewFragment.changeText(data);<br />&nbsp; &nbsp; }<br />Но тогда ругается на WithTextViewFragment. Как&nbsp; сделать лучше чтобы избежать конфликта старой и новой библиотеки FragmentManager?</p>]]></description>
			<author><![CDATA[null@example.com (Ant118)]]></author>
			<pubDate>Sat, 14 May 2016 11:13:07 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=531#p531</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=467#p467</link>
			<description><![CDATA[<p>Интересный цикл статей, многое стало на места.&nbsp; &nbsp; </p><p>Я попробовал анимацию вида<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />fr.beginTransaction().replace(R.id.container, new TypeFrag(), &quot;type&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .addToBackStack(&quot;type&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .commit();</p><p>и ничего нет. А должно работать?</p><p>Кстати как управлять такой анимацией - duration и пр?</p>]]></description>
			<author><![CDATA[null@example.com (vamm)]]></author>
			<pubDate>Fri, 25 Mar 2016 23:59:23 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=467#p467</guid>
		</item>
	</channel>
</rss>
