mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
fix header padding
This commit is contained in:
parent
c3ade8b827
commit
8ef8301b64
6 changed files with 4 additions and 1 deletions
BIN
Habitica/res/drawable-hdpi/ic_arrow_back_white_36dp.png
Normal file
BIN
Habitica/res/drawable-hdpi/ic_arrow_back_white_36dp.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 266 B |
BIN
Habitica/res/drawable-mdpi/ic_arrow_back_white_36dp.png
Normal file
BIN
Habitica/res/drawable-mdpi/ic_arrow_back_white_36dp.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 210 B |
BIN
Habitica/res/drawable-xhdpi/ic_arrow_back_white_36dp.png
Normal file
BIN
Habitica/res/drawable-xhdpi/ic_arrow_back_white_36dp.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 374 B |
BIN
Habitica/res/drawable-xxhdpi/ic_arrow_back_white_36dp.png
Normal file
BIN
Habitica/res/drawable-xxhdpi/ic_arrow_back_white_36dp.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 412 B |
|
|
@ -76,6 +76,7 @@
|
|||
android:id="@+id/login_intro_view"
|
||||
android:orientation="vertical"
|
||||
android:background="@color/transparent"
|
||||
android:fitsSystemWindows="true"
|
||||
>
|
||||
|
||||
<ImageView
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ import android.support.v4.widget.DrawerLayout;
|
|||
import android.support.v7.app.AlertDialog;
|
||||
import android.support.v7.widget.Toolbar;
|
||||
import android.util.Log;
|
||||
import android.util.TypedValue;
|
||||
import android.view.Gravity;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.View;
|
||||
|
|
@ -315,7 +316,8 @@ public class MainActivity extends BaseActivity implements Action1<Throwable>, Ha
|
|||
window.setStatusBarColor(ContextCompat.getColor(this, R.color.black_10_alpha));
|
||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
|
||||
toolbar.setPadding(0, getStatusBarHeight(), 0, 0);
|
||||
avatar_with_bars.setPadding(0, getStatusBarHeight(), 0, 0);
|
||||
float px = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 16, getResources().getDisplayMetrics());
|
||||
avatar_with_bars.setPadding((int)px, getStatusBarHeight(), (int)px, 0);
|
||||
floatingMenuWrapper.setPadding(0, 0, 0, getNavigationBarHeight());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue