Skip to content

Instantly share code, notes, and snippets.

@googolmo
googolmo / layout.xml
Created September 16, 2015 13:56
Qyer
<android.support.design.widget.AppBarLayout
android:layout_height="192dp"
android:layout_width="match_parent">
<android.support.design.widget.CollapsingToolbarLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
<android.support.v7.widget.Toolbar
android:layout_height="?attr/actionBarSize"
android:layout_width="match_parent"
public static String generateUserAgent() {
StringBuilder builder = new StringBuilder("Android/");
builder.append(Build.VERSION.SDK_INT);
builder.append(" ");
builder.append(Build.BRAND.replace(" ", "_"));
builder.append("/");
builder.append(Build.MODEL.replace(" ", "_"));
builder.append(" ");
builder.append(Build.MANUFACTURER.replace(" ", "_"));
builder.append("/");
07-23 16:25:22.739 7749-7749/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.booking, PID: 7749
java.lang.ExceptionInInitializerError
at com.booking.common.exp.ExperimentsServer.init(ExperimentsServer.java:242)
at com.booking.common.exp.ExperimentsServer.getInstance(ExperimentsServer.java:93)
at com.booking.common.exp.ExperimentsServer.getInstance(ExperimentsServer.java:99)
at com.booking.common.data.Squeak$SqueakBuilder.getInformation(Squeak.java:152)
at com.booking.common.data.Squeak$SqueakBuilder.attachClientDetails(Squeak.java:263)
at com.booking.common.data.Squeak$SqueakBuilder.attach(Squeak.java:235)
at com.booking.DynamicLoaderLiveHelper.hasLoadedCodeDynamically(DynamicLoaderLiveHelper.java:151)
public class ResizeAnimation extends Animation {
final int startWidth;
final int targetWidth;
View view;
public ResizeAnimation(View view, int targetWidth) {
this.view = view;
this.targetWidth = targetWidth;
startWidth = view.getWidth();
}
@googolmo
googolmo / bearyboard
Created August 28, 2014 07:15
bearyboard
在一个工程进行中,有很多的角色,角色之间的交流比较复杂,白板的出现大大的提高了工程师和设计师在交流时候的效率,并且把工程项目里面先进的版本管理思想带了进来,虽然白板还有一些瑕疵,但这并不能阻碍我和设计师在项目推进过程中选择他.
/*
* Copyright 2014 Google Inc.
*
* 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