Skip to content

Instantly share code, notes, and snippets.

@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 / 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-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-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'
{
"nome_bacino": {
"stazioni": [{
"nome_stazione": "xxxxx",
"sensori": {
"pluviometro": {
"api_pluviometro": "yyyy",
"id_sensore": 1234
},
"idrometro": {