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