Java Code Examples for android.view.View.getElevation()

The following are Jave code examples for showing how to use getElevation() of the android.view.View class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: Mire   File: SnackBar.java   View Source Code Vote up 7 votes
private void showAnimation(MarginLayoutParams params, ViewGroup parent)
{
	parent.removeView(this);
	if (Preferences.isLollipop())
	{
		for (int i = 0; i < parent.getChildCount(); i++)
		{
			View otherChild = parent.getChildAt(i);
			float elvation = otherChild.getElevation();
			if (elvation > getElevation())
			{
				setElevation(elvation);
			}
		}
	}
	parent.addView(this, params);
	bringToFront();
	enterAnimation();
}
 
Example 2
Project: Mire   File: SnackBar.java   View Source Code Vote up 7 votes
private void showAnimation(MarginLayoutParams params, ViewGroup parent, long duration)
{
	parent.removeView(this);
	if (Preferences.isLollipop())
	{
		for (int i = 0; i < parent.getChildCount(); i++)
		{
			View otherChild = parent.getChildAt(i);
			float elvation = otherChild.getElevation();
			if (elvation > getElevation())
			{
				setElevation(elvation);
			}
		}
	}
	parent.addView(this, params);
	bringToFront();
	enterAnimation(duration);
}
 
Example 3
Project: letv   File: ViewCompatLollipop.java   View Source Code Vote up 5 votes
public static float getElevation(View view) {
    return view.getElevation();
}
 
Example 4
Project: boohee_v5.6   File: ViewCompatLollipop.java   View Source Code Vote up 5 votes
public static float getElevation(View view) {
    return view.getElevation();
}