This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font-family: "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", "Source Han Sans SC", "Microsoft YaHei", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif; | |
} | |
.WB_feed_detail { | |
padding: 0px; | |
} | |
.WB_feed_detail .WB_screen { | |
margin-right: 20px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<provinces> | |
<province name="北京市"> | |
<city>东城区</city> | |
<city>西城区</city> | |
<city>朝阳区</city> | |
<city>丰台区</city> | |
<city>石景山区</city> | |
<city>海淀区</city> | |
<city>门头沟区</city> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<android.support.design.widget.CoordinatorLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<View | |
android:id="@+id/touch_outside" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private View wrapInBottomSheet(int layoutResId, View view, ViewGroup.LayoutParams params) { | |
final CoordinatorLayout coordinator = (CoordinatorLayout) View.inflate(getContext(), | |
R.layout.design_bottom_sheet_dialog, null); | |
if (layoutResId != 0 && view == null) { | |
view = getLayoutInflater().inflate(layoutResId, coordinator, false); | |
} | |
FrameLayout bottomSheet = (FrameLayout) coordinator.findViewById(R.id.design_bottom_sheet); | |
BottomSheetBehavior.from(bottomSheet).setBottomSheetCallback(mBottomSheetCallback); | |
if (params == null) { | |
bottomSheet.addView(view); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<set | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:interpolator="@android:interpolator/accelerate_decelerate"> | |
<scale | |
android:duration="100" | |
android:pivotX="50%" | |
android:pivotY="50%" | |
android:fromXScale="1.0" | |
android:fromYScale="1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<set | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:interpolator="@android:interpolator/accelerate_decelerate" | |
android:ordering="sequentially" | |
android:repeatCount="infinite"> | |
<scale | |
android:startOffset="1200" | |
android:duration="100" | |
android:pivotX="50%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<set xmlns:android="http://schemas.android.com/apk/res/android" | |
android:ordering="sequentially" | |
android:interpolator="@android:interpolator/accelerate_decelerate"> | |
<set> | |
<objectAnimator | |
android:propertyName="scaleX" | |
android:valueFrom="1.0" | |
android:valueTo="0.8" | |
android:duration="100" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PropertyValuesHolder pvhIncreaseScaleX = | |
PropertyValuesHolder.ofFloat("scaleX", 1.0f, 0.8f); | |
PropertyValuesHolder pvhIncreaseScaleY = | |
PropertyValuesHolder.ofFloat("scaleY", 1.0f, 0.8f); | |
PropertyValuesHolder pvhDecreaseScaleX = | |
PropertyValuesHolder.ofFloat("scaleX", 0.8f, 1.0f); | |
PropertyValuesHolder pvhDecreaseScaleY = | |
PropertyValuesHolder.ofFloat("scaleY", 0.8f, 1.0f); | |
ObjectAnimator heartBeatIncreaseAnimator = ObjectAnimator.ofPropertyValuesHolder( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.animation.Animator; | |
import android.animation.AnimatorSet; | |
import android.animation.ObjectAnimator; | |
import android.animation.PropertyValuesHolder; | |
import android.view.View; | |
import android.view.animation.AccelerateDecelerateInterpolator; | |
/** | |
* An utility class for playing "heart beat" animation on a certain view object. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HeartBeatAnimationUtil.with(mImageLogo).start(); | |
HeartBeatAnimationUtil.with(mImageLogo) | |
.scaleFrom(1.0f) | |
.scaleTo(0.8f) | |
.in(100) | |
.after(1200) | |
.start(); |