mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 14:52:13 -04:00
Fixed drawer size #353
This commit is contained in:
parent
d26676ff02
commit
3d71f74811
@ -10,6 +10,12 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_marginTop="?actionBarSize">
|
||||
|
||||
<View
|
||||
android:id="@+id/view"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?attr/dividerColor"/>
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/right_drawer_list"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -346,10 +346,6 @@ public class KiwixMobileActivity extends AppCompatActivity implements WebViewCal
|
||||
}
|
||||
});
|
||||
|
||||
// account for status bar height if translucent
|
||||
final int statusBarHeight = DimenUtils.getTranslucentStatusBarHeight(this);
|
||||
tableDrawerRight.setPadding(0, statusBarHeight, 0, 0);
|
||||
|
||||
tableDrawerAdapter.notifyDataSetChanged();
|
||||
|
||||
tabDrawerAdapter.setTabClickListener(new TabDrawerAdapter.TabClickListener() {
|
||||
|
@ -53,7 +53,7 @@ public class ToolbarScrollingKiwixWebView extends KiwixWebView {
|
||||
toolbarView.setTranslationY(newTranslation + statusBarHeight);
|
||||
this.setTranslationY(newTranslation + toolbarHeight + statusBarHeight);
|
||||
if (listener != null && newTranslation != originalTranslation) {
|
||||
if (newTranslation == -toolbarHeight) {
|
||||
if (newTranslation == -toolbarHeight -statusBarHeight) {
|
||||
listener.onToolbarHidden();
|
||||
} else if (newTranslation == 0) {
|
||||
listener.onToolbarDisplayed();
|
||||
|
Loading…
x
Reference in New Issue
Block a user