Monday, January 11, 2016

How to achieve the background gradient textView









The exchange offer is if there will be as shown in Figure l textView gradient from red to transparent color, if they would drop to transparent gradient from green color

When the android textView how new data background gradient background gradient from green or red to transparent color! thank

Reply:
There is a movie like ah
Reply:
Hello. How do you? Could you tell me. Thanks
Reply:
Someone help me. Thanks
Reply:
This can be understood as non textview change the background.
It can be seen up and down the latest two textview, these two textview placed on
LinearLayoutEvent-driven LinearLayout modify the background color of the line.

As for the event-driven on this topic and irrelevant. Is the value of changes in the so-called textview
Reply:
ObjectAnimator oa = ObjectAnimator.ofFloat (linearLayout, "Alpha", 1.0f, 0f);
oa.setDuration (xxx);
oa.start ();

If you want to api8 and compatible version of the following does not apply the code above.
Please tweens and animated end monitoring.

TextView not directly, you must wrapped in a layer layout. Otherwise figures also become transparent
Reply:
This is very powerful ah
Reply:
quote 4th floor zuiailiuyanlu reply:
This can be understood as non textview background changes.
It can be seen up and down the latest two textview, these two textview placed on
LinearLayoutEvent-driven LinearLayout modify the background color of the line.

As for the event-driven on this topic and irrelevant. Textview value change is called the


Thanks Can I give some code. Because I am a beginner thanks
Reply:
quote 5th floor wlcw16 reply:
ObjectAnimator oa = ObjectAnimator.ofFloat (linearLayout, "Alpha", 1.0f, 0f);
oa.setDuration (xxx);
oa.start ();

If you want to api8 and compatible version of the following does not apply the code above.
Please tweens and animated end monitoring.

TextView not directly, you must wrapped in a layer layout. Otherwise figures also become transparent


Thanks Can I give some code. Because I am a beginner thanks
Reply:
quote 8th floor donet020 reply:
Quote: quote, 5th Floor wlcw16 reply:

ObjectAnimator oa = ObjectAnimator.ofFloat (linearLayout, "Alpha", 1.0f, 0f);
oa.setDuration (xxx);
oa.start ();

If you want to api8 and compatible version of the following does not apply the code above.
Please tweens and animated end monitoring.

TextView not directly, you must wrapped in a layer layout. Otherwise figures also become transparent


Thanks Can I give some code. Because I am a beginner thanked


Already is the core code ah. Where you do not understand can ask ah
Reply:
quote 9th floor wlcw16 reply:
Quote: quote, 8th Floor donet020 reply:

Quote: quote, 5th Floor wlcw16 reply:

ObjectAnimator oa = ObjectAnimator.ofFloat (linearLayout, "Alpha", 1.0f, 0f);
oa.setDuration (xxx);
oa.start ();

If you want to api8 and compatible version of the following does not apply the code above.
Please tweens and animated end monitoring.

TextView not directly, you must wrapped in a layer layout. Otherwise figures also become transparent


Thanks Can I give some code. Because I am a beginner thanked


Already is the core code ah. Where you do not understand can ask ah


. Hello because it is the first contact, you can make a super simple demo look alright to me extremely grateful My mail is:.. Cgc1013@qq.com
Reply:
Tips ObjectAnimator is property animation, android 3.0 began to support
Reply:
quote 8th floor donet020 reply:
Quote: quote, 5th Floor wlcw16 reply:

ObjectAnimator oa = ObjectAnimator.ofFloat (linearLayout, "Alpha", 1.0f, 0f);
oa.setDuration (xxx);
oa.start ();

If you want to api8 and compatible version of the following does not apply the code above.
Please tweens and animated end monitoring.

TextView not directly, you must wrapped in a layer layout. Otherwise figures also become transparent


Tween animation background color can operate it

Reply:
quote 12th floor donet020 reply:
Quote: quote, 8th Floor donet020 reply:

Quote: quote, 5th Floor wlcw16 reply:

ObjectAnimator oa = ObjectAnimator.ofFloat (linearLayout, "Alpha", 1.0f, 0f);
oa.setDuration (xxx);
oa.start ();

If you want to api8 and compatible version of the following does not apply the code above.
Please tweens and animated end monitoring.

TextView not directly, you must wrapped in a layer layout. Otherwise figures also become transparent


Tweens can operate it on the background color

Can not. Room only wait complement animate animation finished after listening, and then manually operate background.

Reply:
By handler, set the value of several colors, the color changes to update
Reply:
quote the 14th floor comeoverjava reply:
By handler, set the value of several colors, to update the color change


Thanks to this direction very well. Oh
Reply:
Has been resolved. Thanks
Reply:
ObjectAnimator oa = ObjectAnimator.ofFloat (linearLayout, "Alpha", 1.0f, 0f);
oa.setDuration (xxx);
oa.start ();

No comments:

Post a Comment