diff options
author | Andrew Dolgov <[email protected]> | 2012-09-20 23:19:50 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-09-20 23:19:50 +0400 |
commit | a82aeb29e42ceb8b0f1b5ccf7e7ff2cb22b81ce7 (patch) | |
tree | d0594802fa5ed091939c83305077810a71e7e35a /src/org | |
parent | 2a02f4b211650b68acc1c38c02958b4d08b44aea (diff) |
add some layout transitions
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/fox/ttrss/FeedsActivity.java | 8 | ||||
-rw-r--r-- | src/org/fox/ttrss/HeadlinesActivity.java | 9 |
2 files changed, 16 insertions, 1 deletions
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
|