actionbar hiding tweaks; bump version
This commit is contained in:
parent
42a4fd5d39
commit
a0fb92e34a
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.fox.ttrss"
|
||||
android:versionCode="325"
|
||||
android:versionName="1.99" >
|
||||
android:versionCode="326"
|
||||
android:versionName="1.100" >
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="15"
|
||||
|
@ -10,7 +10,9 @@ import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.support.v4.app.Fragment;
|
||||
import android.support.v7.app.ActionBar;
|
||||
import android.text.Html;
|
||||
import android.util.Log;
|
||||
import android.util.TypedValue;
|
||||
import android.view.ContextMenu;
|
||||
import android.view.ContextMenu.ContextMenuInfo;
|
||||
@ -177,11 +179,14 @@ public class ArticleFragment extends Fragment {
|
||||
scrollView.setOnScrollChangedListener(new NotifyingScrollView.OnScrollChangedListener() {
|
||||
@Override
|
||||
public void onScrollChanged(ScrollView who, int l, int t, int oldl, int oldt) {
|
||||
if (t > 0 && t > oldt) {
|
||||
m_activity.getSupportActionBar().hide();
|
||||
} else {
|
||||
m_activity.getSupportActionBar().show();
|
||||
ActionBar ab = m_activity.getSupportActionBar();
|
||||
|
||||
if (t >= oldt && t >= ab.getHeight()) {
|
||||
ab.hide();
|
||||
} else if (t <= ab.getHeight() | oldt - t >= 10) {
|
||||
ab.show();
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -1,6 +1,8 @@
|
||||
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<style name="LightTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<item name="windowActionBarOverlay">true</item>
|
||||
|
||||
<item name="statusBarHintColor">?colorPrimary</item>
|
||||
<item name="ttrssHorizontalDivider">@android:drawable/divider_horizontal_bright</item>
|
||||
<item name="feedlistBackground">#e0e0e0</item>
|
||||
|
Loading…
Reference in New Issue
Block a user