Skip to content

Instantly share code, notes, and snippets.

Avatar

Fabio Chiarani Xiryl

View GitHub Profile
View bacini.JSON
{
"nome_bacino": {
"stazioni": [{
"nome_stazione": "xxxxx",
"sensori": {
"pluviometro": {
"api_pluviometro": "yyyy",
"id_sensore": 1234
},
"idrometro": {
@Xiryl
Xiryl / bottomappbar-example-1.txt
Last active Jan 11, 2019
bottomappbar-example-1
View bottomappbar-example-1.txt
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
@Xiryl
Xiryl / bottomappbar-example-2.txt
Created Jan 11, 2019
bottomappbar-example-2.txt
View 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 Jan 11, 2019
bottomappbar-example-3.txt
View 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 Jan 11, 2019
bottomappbar-example-4
View 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 Jan 11, 2019
bottombappbar-example-5
View 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 Jan 11, 2019
bottomappbar-example-6
View 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"
View widget_layout.xml
<?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"
View widget_list_item.xml
<?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 Jul 11, 2020
eslint-guide
View .eslintrc
{
"extends": "react-app",
"rules": {
"no-console": "warn"
}
}