Skip to content

Instantly share code, notes, and snippets.

View notdrone's full-sized avatar
🦊

droan notdrone

🦊
View GitHub Profile
@notdrone
notdrone / gradient
Created February 13, 2015 10:50
Adding gradient
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:startColor="@color/material_blue_grey_800"
android:endColor="@color/material_deep_teal_500"
android:angle="-45"/>
</shape>
@notdrone
notdrone / hide_status_bar_and_action_bar
Created February 13, 2015 10:40
Hide status bar and action bar
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//______________________________________________________________
getSupportActionBar().hide();
View decorView = getWindow().getDecorView();
int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;
decorView.setSystemUiVisibility(uiOptions);
//_______________________________________________________________
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">