diff --git a/src/org/fox/ttrss/FeedsActivity.java b/src/org/fox/ttrss/FeedsActivity.java index 332276b1..11eb54d5 100644 --- a/src/org/fox/ttrss/FeedsActivity.java +++ b/src/org/fox/ttrss/FeedsActivity.java @@ -8,6 +8,8 @@ import org.fox.ttrss.types.Feed; import org.fox.ttrss.types.FeedCategory; import org.fox.ttrss.util.AppRater; +import android.view.ViewGroup; +import android.animation.LayoutTransition; import android.annotation.SuppressLint; import android.content.Intent; import android.content.SharedPreferences; @@ -102,6 +104,12 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe AppRater.appLaunched(this); } } + + if (!isCompatMode() && !isSmallScreen()) { + ((ViewGroup)findViewById(R.id.headlines_fragment)).setLayoutTransition(new LayoutTransition()); + ((ViewGroup)findViewById(R.id.feeds_fragment)).setLayoutTransition(new LayoutTransition()); + } + } @Override diff --git a/src/org/fox/ttrss/HeadlinesActivity.java b/src/org/fox/ttrss/HeadlinesActivity.java index 2dee2fbd..408e3d2b 100644 --- a/src/org/fox/ttrss/HeadlinesActivity.java +++ b/src/org/fox/ttrss/HeadlinesActivity.java @@ -4,6 +4,7 @@ import org.fox.ttrss.types.Article; import org.fox.ttrss.types.ArticleList; import org.fox.ttrss.types.Feed; +import android.animation.LayoutTransition; import android.annotation.SuppressLint; import android.content.Intent; import android.content.SharedPreferences; @@ -15,6 +16,7 @@ import android.support.v4.app.FragmentTransaction; import android.util.Log; import android.view.MenuItem; import android.view.View; +import android.view.ViewGroup; public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventListener { private final String TAG = this.getClass().getSimpleName(); @@ -79,7 +81,12 @@ public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventL }, 10); } - } + } + + if (!isCompatMode()) { + ((ViewGroup)findViewById(R.id.headlines_fragment)).setLayoutTransition(new LayoutTransition()); + ((ViewGroup)findViewById(R.id.article_fragment)).setLayoutTransition(new LayoutTransition()); + } } @Override