Fixed drawer size #353

This commit is contained in:
mhutti1 2017-02-06 19:18:47 +00:00
parent d26676ff02
commit 3d71f74811
3 changed files with 7 additions and 5 deletions

View File

@ -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"

View File

@ -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() {

View File

@ -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();