Skip to content

Instantly share code, notes, and snippets.

View paulodevbr's full-sized avatar
🎯
Focusing

Paulo de Oliveira Neto paulodevbr

🎯
Focusing
  • Encora
  • Goiânia, GO - Brazil
View GitHub Profile
@paulodevbr
paulodevbr / AnimationPage.tsx
Created March 8, 2021 22:09
AirPods example animation
import { RouteComponentProps } from '@reach/router';
/** @jsx jsx */ import { jsx } from '@emotion/core';
import React, { useCallback, useRef, useState } from 'react';
import { css } from '@emotion/core';
import { Desktop, Phone } from '../rcomps';
import { Dimensions } from '../epop-react-ui/helpers';
interface Props extends RouteComponentProps {}
const stylesPhone = {
@paulodevbr
paulodevbr / Text input layout.xml
Last active July 8, 2016 20:10
EditText with animated placeholder text in Android Apps.
<android.support.design.widget.TextInputLayout
android:id="@+id/settings_weight_input"
android:layout_width="@dimen/edit_text"
android:layout_height="wrap_content"
android:animateLayoutChanges="true"
android:layout_alignParentLeft="true">
<android.support.design.widget.TextInputEditText
android:id="@+id/settings_weight_edt"
android:layout_height="match_parent"
android:layout_width="match_parent"