AndroidViewHover
AndroidViewHover copied to clipboard
How to change the back view when is blurred?
I'm focusing on the first sample... When it isn't blurred I have one ImageView and two TextViews, like this:
<com.daimajia.androidviewhover.BlurLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/blur_layout"
android:layout_width="wrap_content"
android:layout_marginBottom="5dp"
android:layout_height="wrap_content">
<es.mrmoustard.buff.adapters.SquareImageView
android:id="@+id/gridItemPicture"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:scaleType="fitCenter"
android:background="#FF4500"/>
<TextView
android:id="@+id/gridItemText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_gravity="center_horizontal"
android:textColor="#FFFFFF"
android:textSize="17sp"
android:textStyle="bold"
android:text="@string/app_name"/>
<TextView
android:id="@+id/gridItemAmount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_gravity="center_horizontal"
android:textColor="#66FFFFFF"
android:textSize="107sp"
android:textStyle="bold"
android:text="0"/>
</com.daimajia.androidviewhover.BlurLayout>
And when it's blurred, I have two ImageViews which act like buttons:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/animation_area"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:layout_centerInParent="true"
android:gravity="center">
<ImageView
android:layout_marginRight="80dp"
android:id="@+id/subtractBtn"
android:src="@drawable/ic_launcher"
android:layout_width="25dp"
android:layout_height="25dp" />
<ImageView
android:id="@+id/addBtn"
android:src="@drawable/ic_launcher"
android:layout_width="25dp"
android:layout_height="25dp"/>
</LinearLayout>
The thing is that I want to modify one TextView while the view still blurred... How can I do that? is it possible?
Cheers.