Comments (2)
@ysmintor
Thank you so much for your suggestion.:thumbsup:
Because of my shortness of mind, do not know there AdapterViewFlipper such View, it is clear that I want the effect and this view is the same, I did the useless work, and my custom View certainly no AdapterViewFlipper excellent, I have to learn Under AdapterViewFlipper source.
Thanks!!!
from bulletinview.
Well, you already did a great job. I have found that ViewFlipper
already has flipInterval
, so we might use this code android:flipInterval="3000"
in xml .
In ViewAnimator
's super parent , the parent has implement in and out animation. I think we can use it in xml like android:inAnimation="" android:outAnimation=""
.
TypedArray a = context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.ViewAnimator);
int resource = a.getResourceId(com.android.internal.R.styleable.ViewAnimator_inAnimation, 0);
if (resource > 0) {
setInAnimation(context, resource);
}
resource = a.getResourceId(com.android.internal.R.styleable.ViewAnimator_outAnimation, 0);
if (resource > 0) {
setOutAnimation(context, resource);
}
boolean flag = a.getBoolean(com.android.internal.R.styleable.ViewAnimator_animateFirstView, true);
setAnimateFirstView(flag);
a.recycle();
However, as explained above, the AdapterViewFlipper
only accept ObjectAnimator as in or out animation which means it is hard to get the effect of translationY and alpha in the same time. Do you have any idea to solve the problem on AdapterViewFlipper
?
from bulletinview.
Related Issues (5)
- 蒲公英地址不对 HOT 1
- 发现存在内存泄漏的问题
- 数组越界异常,求指教 HOT 1
- 能加上手动滑动切换吗
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bulletinview.