Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DEPRECATED - Memory efficient shimmering effect for Android applications by Supercharge.

License

NotificationsYou must be signed in to change notification settings

team-supercharge/ShimmerLayout

Repository files navigation

Android ArsenalMaven CentralAndroid WeeklyAPIBuild Status

DEPRECATED - ShimmerLayout

Attention: This tool is now deprecated. Please switch toShimmer for Android or any other shimmer effect solution.

ShimmerLayout can be used to add shimmer effect (like the one used at Facebook or at LinkedIn) to your Android application. Beside memory efficiency even animating a big layout, you can customize the behaviour and look of the animation. Check out thewiki for attributes!

Download and usage

Get the latest artifact via gradle

implementation'io.supercharge:shimmerlayout:2.1.0'

Create the layout on which you want to apply the effect and add as a child of aShimmerLayout

<io.supercharge.shimmerlayout.ShimmerLayoutandroid:id="@+id/shimmer_text"android:layout_width="wrap_content"android:layout_height="40dp"android:layout_gravity="center_horizontal"android:layout_marginTop="50dp"android:paddingLeft="30dp"android:paddingRight="30dp"app:shimmer_animation_duration="1200">        <TextViewandroid:layout_width="wrap_content"android:layout_height="match_parent"android:gravity="center"android:text="ShimmerLayout"android:textColor="@color/shimmer_background_color"android:textSize="26sp"/>    </io.supercharge.shimmerlayout.ShimmerLayout>

Last, but not least you have to start it from your Java code

ShimmerLayoutshimmerText = (ShimmerLayout)findViewById(R.id.shimmer_text);shimmerText.startShimmerAnimation();

Further reading

License

ShimmerLayout is opensource, contribution and feedback are welcome!

Apache Version 2.0

Copyright 2017 SuperchargeLicensed 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.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.

Author

veghtomi

Supercharge

About

DEPRECATED - Memory efficient shimmering effect for Android applications by Supercharge.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors7

Languages


[8]ページ先頭

©2009-2025 Movatter.jp