Giter Club home page Giter Club logo

androidviewhover's Introduction

Hey Bro. 👋


Products

64

  • TickerPad: a macOS app which helps you track your favorite crypto price via macOS menu bar.

Investment Portfolio

D-Matrix | Maxtropy | Showmebug | 元気森林 | Cyber Kunlun | AYoxi Tech | Conflux | Nervos | Cobo Wallet | SilverHand | Overide Halo

Code Stats

daimajia's github stats

Trading Story

Magic Trader


Social


Contact me

[email protected]

My lovely daughter. ❤️

图片

Leave a message to me? --> https://github.com/daimajia/daimajia/issues

androidviewhover's People

Contributors

daimajia avatar donglua avatar milosjovac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

androidviewhover's Issues

Error loading RS jni library: java.lang.UnsatisfiedLinkError

Getting Error while click on any item in app.
I have already add the support v8 jar file

Here is the log ....

09-01 07:44:19.938: E/RenderScript_jni(15327): Error loading RS jni library: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1306]: 115 cannot locate '__strlen_chk'...
09-01 07:44:19.938: E/InputEventReceiver(15327): Exception dispatching input event.
09-01 07:44:19.938: E/MessageQueue-JNI(15327): Exception in MessageQueue callback: handleReceiveCallback
09-01 07:44:19.946: E/MessageQueue-JNI(15327): android.support.v8.renderscript.RSRuntimeException: Error loading RS jni library: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1306]: 115 cannot locate '__strlen_chk'...
09-01 07:44:19.946: E/MessageQueue-JNI(15327): at android.support.v8.renderscript.RenderScript.create(RenderScript.java:945)
09-01 07:44:19.946: E/MessageQueue-JNI(15327): at android.support.v8.renderscript.RenderScript.create(RenderScript.java:982)
09-01 07:44:19.946: E/MessageQueue-JNI(15327): at android.support.v8.renderscript.RenderScript.create(RenderScript.java:968)

Can i exclude nineolddroid in my build??

@daimajia can i exclude nineolddroid from my build gradle file as i wont require it because my project is API14 and above.If i does not include it,shows a error as class cast exception cannot inflate blur layout.Help!

the issure on Hover

Hello ,I want the hoverview to do animator, but it does not work,
viewPicSelcet.setHoverView(selectContentView);
viewPicSelcet.setHoverAppearAnimator(Techniques.SlideInUp);
viewPicSelcet.setHoverDisappearAnimator(Techniques.SlideOutDown);
viewPicSelcet.toggleHover();

Where is the problem?Can you help me ?

Problem on LG G3 with android 5.0

I recently finished my app using AndroidViewHover which shows icons over a CardView. I test it on android 2.3, 4.0 and 4.4 and works fine. But one of my customer complaining that icons dont show up on LG G3 using android 5.0

Any idea?

Cannot Use Along with Stackblur

The title explain itself, this library cannot be used along with stackblur, because of a "duplicated renderscript error"
Follows the log:

Error:Execution failed for task ':app:dexDebug'.

com.android.ide.common.internal.LoggedErrorException: Failed to run command:
C:\Users\Wiloo\AppData\Local\Android\sdk\build-tools\21.1.2\dx.bat --dex --no-optimize --output C:\Users\Wiloo\AndroidStudioProjects\ProtoFragment\app\build\intermediates\dex\debug --input-list=C:\Users\Wiloo\AndroidStudioProjects\ProtoFragment\app\build\intermediates\tmp\dex\debug\inputList.txt
Error Code:
2
Output:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/v8/renderscript/Allocation$1;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
at com.android.dx.command.dexer.Main.run(Main.java:246)
at com.android.dx.command.dexer.Main.main(Main.java:215)
at com.android.dx.command.Main.main(Main.java:106)

Once the line compile project(':StackBlur') is removed from the build.gradle the project works just fine. Any idea why this is happening?

making ListView of blur_layout

hi man sry for destorbing you!
but i saw ur project
and i want to use the first blurLayout and make list view of it dynamiclly
but i tried and i can't do it
i do normal Custum listView befor but i want a listView with BlurLayou
specially the one it's id = blur_layout
i want to do a list view of products that every time i click one one of the product show me the 3 buttons the "heart,share,more.." buttons
can u help me with it ?
and thanks for ur time

FATAL EXCEPTION

Hey I used API 24 try using API 23 but got this error when I click

FATAL EXCEPTION: main
Process: com.example.johnj_000.hovericons, PID: 2881
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v8/renderscript/RenderScript;
at com.daimajia.androidviewhover.tools.Blur.apply(Blur.java:20)
at com.daimajia.androidviewhover.BlurLayout.addBlurImage(BlurLayout.java:182)
at com.daimajia.androidviewhover.BlurLayout.hover(BlurLayout.java:120)
at com.daimajia.androidviewhover.BlurLayout.access$000(BlurLayout.java:29)
at com.daimajia.androidviewhover.BlurLayout$BlurLayoutDetector.onSingleTapUp(BlurLayout.java:98)
at android.view.GestureDetector.onTouchEvent(GestureDetector.java:635)
at com.daimajia.androidviewhover.BlurLayout.onTouchEvent(BlurLayout.java:84)

Error when import using Eclipse

mSampleLayout.addChildAppearAnimator(hover, R.id.heart, Techniques.FlipInX);在addChildAppearAnimator方法中都提示:The method addChildAppearAnimator(View, int, Techniques) from the type BlurLayout refers to the missing type Techniques。
好像说缺失Techniques类型,但是确实我什么也没有改呀。

I want to use LongClick

I want to use OnLongClickListener.

I put an imageview inside the cardview and applied a blurview.

I applied longclick to Cardview. But when I clicked on the imageview, longclick didn't work.

I want to make longclick work when I hit the area of ​​Cardview. However, imageview has blurview, so it does not work in imageview area.

So I tried applying OnLongClickListener to the imageview to solve this.

But when I use OnLongClickListener for imageview, blurview doesn't work.

Please tell me the solution.

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.

Gradle build problem

Error:Execution failed for task ':app:processDebugManifest'.

Manifest merger failed : Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:22:9-43
is also present at [com.daimajia.easing:library:1.0.0] AndroidManifest.xml:13:9-45 value=(@drawable/ic_launcher)
Suggestion: add 'tools:replace="android:icon"' to element at AndroidManifest.xml:19:5-72:19 to override

Please remove all ic_launcher in your com.daimajia.easing:library

Bad recycling in RecyclerView

In a RecyclerView (I think it causes the same problem in ListView or GridView), when I set an HoverView on a cell, after scrolling, the HoverView is not recycled.

So, if I select one visible item and scroll, I find the state of the previously selected item in another item of the list.

Do you have an idea of the correct way to implement HoverView recycling on scroll ?

New way to implement RenderScript in gradle 14+

With gradle 0.14.+ in android studio you will need to use the two lines below instead of the ones in your getting started document.

renderscriptTargetApi 19
renderscriptSupportModeEnabled true

Issue with addChildAppearAnimator delay param

If I add a delay for view with addChildAppearAnimator method, the view will be first shown at the position within the delay duration, then disappear and run the appear animation. Is there a way to avoid this and just let the view hidden during the delay duration....

Memory leak with mBlurImage

When enableBlurBackground() is set to true, if you monitor the memory of the application, you can see that memory goes up each time you do hover.show(), but doesn't go down when you do hover.hide(). If you look at the code for onAnimationEnd() for mGlobalDisappearAnimators, you see that the image within mBlurImage is not freed. I believe this is what causes the memory leak.

Doesn't work properly on button OnClickListener

Hi, I'm trying to add a view hover when I click on a button inside a view, so when I click on the button the view hover doesn't appear, but when I click under the button it works. Here's my code:

viewHolder.commentImageButton.setOnClickListener(new View.OnClickListener() {
@OverRide
public void onClick(View v) {
v = LayoutInflater.from(viewHolder.context).inflate(R.layout.hover_home_adapter, null);
viewHolder.hoverLayout.setHoverView(v);
}
});

Crash when BlurLayout is 0dp height.

My xml in this part is roughly like this:

 <com.daimajia.androidviewhover.BlurLayout
        android:id="@+id/blur_layout"
        android:layout_width="wrap_content"
        android:layout_height="0dp"
        android:layout_weight="1">

        <FrameLayout
            android:id="@+id/fragment_container"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1"
            />
    </com.daimajia.androidviewhover.BlurLayout>

And I want to through the menu key to showHover (), the results originally expected is this: I press the Menu key, then Hover out, covering my entire FrameLayout. The result is not, and the error (key information) as follows:

Caused by: java.lang.NullPointerException
            at com.daimajia.androidviewhover.tools.Blur.apply(Blur.java:19)
            at com.daimajia.androidviewhover.tools.Blur.apply(Blur.java:15)
            at com.daimajia.androidviewhover.BlurLayout.addBlurImage(BlurLayout.java:178)
            at com.daimajia.androidviewhover.BlurLayout.hover(BlurLayout.java:119)
            at com.daimajia.androidviewhover.BlurLayout.showHover(BlurLayout.java:105)
            at com.daimajia.androidviewhover.BlurLayout.toggleHover(BlurLayout.java:164)
            at me.drakeet.testhover.ui.MainActivity.onCreate(MainActivity.java:85)
            at android.app.Activity.performCreate(Activity.java:5242)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2151)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2236)
            at android.app.ActivityThread.access$800(ActivityThread.java:138)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1199)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:136)
            at android.app.ActivityThread.main(ActivityThread.java:5034)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)

So ask: under BlurLayout in the layout file has one and only ImageView? I put a FrameLayout, and want the buttons to control Hover‘s toggle, but it seems not, could help? Thank you very much!

Animation delay problem.

进场动画delay期望效果是:delay时间到之后才开始播放动画。使用addChildAppearAnimator这个接口的delay,会先把最终效果呈现给用户。delay的效果不好。

dismissHover(). when does it finish?

Is there a way to know when dismissHover Animation Completes?
I really need something like onDismissHoverAnimationComplete
If there is a way please show it to me.
Thanks.

Blur behaves weird

I've been trying to add this library to my project but I'm either too dumb to use it or there is a bug that seems to only affect my project...

This is my Code to show the HoverView:

View newView = mInflater.inflate(R.layout.card_back, null);
BlurLayout oldView = (BlurLayout) mNowLayout.findViewById(id);
oldView.setHoverView(newView);
oldView.setBlurDuration(500);
//Adding Animations
oldView.showHover();

My actual problem is visible in the attached picture. As you can see there is the blurred version of the text & images underneath an unblurred version of the text & images. It might just be me doing something wrong but if that is the case I'm absolutely clueless about what I'm doing wrong.

screenshot_2014-09-20-15-18-29

Use the library in a fragment

Hello, I'm beginner in Android Development,
I can use perfect your library in a simple activity, but a want to use it in a fragment. I attached the fragment .java file. I get java null pointer exception when start the fragment. I try a lot a thing but I can't do it.

I attached the hover xml and one another xml what i use in the fragment.

PicturesFragment.txt
hover_sample.txt
fragment_pictures.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.