Skip to content

Instantly share code, notes, and snippets.

View LeoDroidCoder's full-sized avatar

Leonid Ustenko LeoDroidCoder

View GitHub Profile
@florina-muntenescu
florina-muntenescu / BaseDao.kt
Last active September 28, 2023 15:01
Use Dao inheritance to reduce the amount of boilerplate code - https://medium.com/google-developers/7-pro-tips-for-room-fbadea4bfbd1
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@aeroechelon
aeroechelon / material_design_guidelines_dimens.xml
Last active October 6, 2022 04:06
Recommended Material Design Dimensions for Android
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--
# Material Design Dimensions
These common dimensions for spacing and typepography that
are provided as per Material Design Guidelines.
-->
<!-- Margin & Padding, 8 dp baseline, https://material.io/design/layout/understanding-layout.html -->
@Antarix
Antarix / horizontal_progress_demo.xml
Last active February 16, 2022 08:54
Android Custom horizontal ProgressBar emample
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ProgressBar
android:id="@+id/progress_limit"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"