Skip to content

Instantly share code, notes, and snippets.

View azizymahsa's full-sized avatar
💭
I may be slow to respond.

Mahsa Azizy azizymahsa

💭
I may be slow to respond.
View GitHub Profile
@azizymahsa
azizymahsa / gist:b64f802ddc4fad75d3363e7e92398abf
Created May 14, 2018 07:50 — forked from orhanobut/gist:8665372
Up down animation for dialog fragment
// Slide up animation
<?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" >
<translate
android:duration="@android:integer/config_mediumAnimTime"
android:fromYDelta="100%"
android:interpolator="@android:anim/accelerate_interpolator"
android:toXDelta="0" />
@azizymahsa
azizymahsa / BaseDao.kt
Created April 28, 2018 05:20 — forked from florina-muntenescu/BaseDao.kt
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