• Stars
    star
    3,208
  • Rank 14,000 (Top 0.3 %)
  • Language
    Java
  • Created over 10 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An elegant way to show your menu or messages.

Android View Hover Build Status

In my opinion, jumping to a new activity to show your menu is a kind of wasting time and life.

So,

I think, we need a hover view, to show menu, to show messages.

Demo

Watch HD in YouTube.

Download Apk

Usage

Step0

Set up RenderScript

  • Eclipse, please visit official tutorial.
  • Android Studio, add
             
             renderscriptTargetApi 19
         	renderscriptSupportMode true
    in build.gradle defaultConfig, here is a sample

Step1

Gradle

dependencies {
	compile "com.android.support:support-v4:20.+"
	compile 'com.nineoldandroids:library:2.4.0'
	compile 'com.daimajia.easing:library:1.0.0@aar'
	compile 'com.daimajia.androidanimations:library:1.1.2@aar'
	compile 'com.daimajia.androidviewhover:library:1.0.4@aar'
}

Maven

	<dependency>
	    <groupId>com.nineoldandroids</groupId>
	    <artifactId>library</artifactId>
	    <version>2.4.0</version>
	</dependency>
	<dependency>
	    <groupId>com.daimajia.androidanimation</groupId>
	    <artifactId>library</artifactId>
	    <version>1.1.2</version>
	    <type>apklib</type>
	</dependency>
	<dependency>
	    <groupId>com.daimajia.easing</groupId>
	    <artifactId>library</artifactId>
	    <version>1.0.0</version>
	    <type>apklib</type>
	</dependency>
	<dependency>
	    <groupId>com.daimajia.androidviewhover</groupId>
	    <artifactId>library</artifactId>
	    <version>1.0.4</version>
	    <type>apklib</type>
	</dependency>

Eclipse

Step2

  1. Create an original view, and make sure it was wrapped by BlurLayout

    for example:

    	<com.daimajia.androidviewhover.BlurLayout
    			android:id="@+id/sample"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content">
                <ImageView
                    android:layout_centerInParent="true"
                    android:scaleType="fitXY"
                    android:src="@drawable/kid"
                    android:layout_width="match_parent"/>
    	</com.daimajia.androidviewhover.BlurLayout>

    Note: BlurLayout is entended from RelativeLayout. You can use the RelativeLayout rules to layout your view.

  2. Create a hover view, there is no rules to obey. Just please remember that this view will be stretched as large as the original view you have created.

  3. Bind a hover view to BlurLayout

    	BlurLayout sampleLayout = (BlurLayout)findViewById(R.id.sample);
    	View hover = LayoutInflater.from(mContext).inflate(R.layout.hover, null);
    	sampleLayout.setHoverView(hover);

    and don't forget that you can add various animations just in one line code. For example:

    	//View (R.id.heart) appear animation.
    	sampleLayout.addChildAppearAnimator(hover, R.id.heart, Techniques.FlipInX);
    	//View (R.id.heart) disappear animation.
    	sampleLayout.addChildDisappearAnimator(hover, R.id.heart, Techniques.FlipOutX);

You can view the samples in my preset examples.

Animations

This project provides a lot of animations you can choose. Animations are from my another open-source project AndroidViewAnimations. And you can aslo using easing funcitons to make your animations more real. Please enjoy it.

Thanks

About me

A student in mainland China.

Welcome to offer me an internship. If you have any new idea about this project, feel free to contact me.

More Repositories

1

AndroidViewAnimations

Cute view animation collection.
Java
12,422
star
2

AndroidSwipeLayout

The Most Powerful Swipe Layout!
Java
12,373
star
3

NumberProgressBar

A beautiful, slim Android ProgressBar.
Java
6,066
star
4

AndroidImageSlider

An amazing and convenient Android image slider.
Java
5,629
star
5

AnimationEasingFunctions

Android Animation Easing Functions. Let's make animation more real!
Java
2,469
star
6

AnimeTaste

Taste global original animation
Java
1,624
star
7

EverMemo

Fast Record,Organize,and Share. The android memo app you will deeply love. ❤
Java
798
star
8

bleed-baidu-white

榨干百度网盘的剩余价值
Python
466
star
9

revenge

联手对抗臭长广告
JavaScript
307
star
10

little-bear-dictionary

This will be the most powerful android dictionary!!!
Java
274
star
11

java-multithread-downloader

Java multithread download library
Java
267
star
12

huntscreens

Take screenshots of each new project on Producthunt, YC, and Indiehackers, explore with Ease.
TypeScript
142
star
13

social-auth-simulator

模拟登陆->授权->获取access_token,目前支持人人、新浪微博、腾讯微博
Python
109
star
14

Gank.IO

Gank.IO source code.
23
star
15

EverMemo-EverNote

Small modifications for EverMemo
Java
14
star
16

Learn-Algorithm

拖延症患者学习算法小分队
5
star
17

dictionary

Click read me md 's redirect to know more
5
star
18

daimajia

My Intro.
4
star
19

todo

HTML
4
star
20

railway-pgvector

Dockerfile
3
star
21

SAE_wordpress_blog

SAE上的wordpress博客
PHP
3
star
22

old-version-little-bear-dictionary

Java
2
star
23

StoryTimeline

JavaScript
2
star
24

tp

1
star
25

little-bear-dictionary-dependency

All the dependencies of https://github.com/xuanqinanhai/little-bear-dictionary
1
star