Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the back view when is blurred? #19

Open
nelo686 opened this issue Jun 20, 2015 · 0 comments
Open

How to change the back view when is blurred? #19

nelo686 opened this issue Jun 20, 2015 · 0 comments

Comments

@nelo686
Copy link

nelo686 commented Jun 20, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant