Skip to content

Instantly share code, notes, and snippets.

{
"nome_bacino": {
"stazioni": [{
"nome_stazione": "xxxxx",
"sensori": {
"pluviometro": {
"api_pluviometro": "yyyy",
"id_sensore": 1234
},
"idrometro": {
@Xiryl
Xiryl / bottomappbar-example-1.txt
Last active January 11, 2019 08:32
bottomappbar-example-1
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
@Xiryl
Xiryl / bottomappbar-example-2.txt
Created January 11, 2019 08:34
bottomappbar-example-2.txt
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "it.x.test"
minSdkVersion 23
targetSdkVersion 28
versionCode 1
versionName "1.0"
@Xiryl
Xiryl / bottomappbar-example-3.txt
Created January 11, 2019 08:43
bottomappbar-example-3.txt
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.MaterialComponents">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
@Xiryl
Xiryl / bottomappbar-example-4
Created January 11, 2019 09:28
bottomappbar-example-4
<android.support.design.bottomappbar.BottomAppBar
android:id="@+id/bar"
android:layout_gravity="bottom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:navigationIcon="@drawable/ic_menu_3">
</android.support.design.bottomappbar.BottomAppBar>
@Xiryl
Xiryl / bottombappbar-example-5
Created January 11, 2019 09:31
bottombappbar-example-5
<android.support.design.widget.FloatingActionButton
android:id="@+id/fav"
android:elevation="8dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_anchor="@id/bar"
android:src="@drawable/ic_add"/>
@Xiryl
Xiryl / bottomappbar-example-6
Created January 11, 2019 09:46
bottomappbar-example-6
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<android.support.design.bottomappbar.BottomAppBar
android:id="@+id/bar"
@Xiryl
Xiryl / widget_layout.xml
Created May 6, 2020 15:32
WidgetGuide-1
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<!-- ListView to be shown on widget -->
<ListView
android:id="@+id/widget_layout_listview"
android:layout_width="match_parent"
@Xiryl
Xiryl / widget_list_item.xml
Last active May 6, 2020 15:45
WidgetGuide-2
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/white">
<TextView
android:id="@+id/widget_list_item_message"
android:layout_width="match_parent"
@Xiryl
Xiryl / .eslintrc
Created July 11, 2020 07:51
eslint-guide
{
"extends": "react-app",
"rules": {
"no-console": "warn"
}
}