Android 将按钮置于框架布局的前面
我想把一个按钮,如果前面的框架布局。 框架布局为View.GONE,当单击按钮时,它被设置为View.VISIBLE,并溢出按钮。 我试着让布林托夫朗来,但没用,需要你的帮助Android 将按钮置于框架布局的前面,android,Android,我想把一个按钮,如果前面的框架布局。 框架布局为View.GONE,当单击按钮时,它被设置为View.VISIBLE,并溢出按钮。 我试着让布林托夫朗来,但没用,需要你的帮助 slide_up3 = AnimationUtils.loadAnimation(MainActivity.this, R.anim.slide_up3); slide_up3.setAnimationListener(this); set = (AnimatorSet)
slide_up3 = AnimationUtils.loadAnimation(MainActivity.this, R.anim.slide_up3);
slide_up3.setAnimationListener(this);
set = (AnimatorSet) AnimatorInflater.loadAnimator(getApplicationContext(),
R.animator.obj3);
set.setTarget(flBlur);
flBlur.setVisibility(View.VISIBLE);
set.start();
flBlur是背景变化,它覆盖了上升的按钮
obj3xml文件
<set xmlns:android="http://schemas.android.com/apk/res/android">
<objectAnimator
android:propertyName="backgroundColor"
android:duration="500"
android:valueFrom="@color/colorWednesdayBlur"
android:valueTo="@color/colorWednesday"/>
slideup XML文件
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/linear_interpolator"
android:fillAfter="true">
<translate
android:duration="500"
android:fromYDelta="0%"
android:toYDelta="-200%"
共享xml代码?共享xml代码
<FrameLayout
android:visibility="gone"
android:background="@color/colorBcgLan"
android:id="@+id/flBlur"
android:layout_width="match_parent"
android:layout_height="match_parent"/>