ParallaxImageView
Android library that enables the parallax effect like in IOS. Perfect for a login page and UX Experience
Install / Use
/learn @irimiaionut/ParallaxImageViewREADME
Parallax ImageView Android library

1. Project
You have here a library that lets you use a imageview to simulate a 3D effect like on Amazon FirePhone and Iphone. To do so, the imageview is set with a margin and based on the phone's movement and interpreted with the Sensor.TYPE_ROTATION_VECTOR moves the margin so that it creates a 3D in depht effect.
2. Recommended usage
This can be used on any layout but keep in mind to check how it affects the overall behavior of the app(better no animations than interrupted ones). My recommendation would be to use it on light implementations like loginscreens / settings.
3. Recommended implementation
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_margin="0dip"
tools:context="com.example.sensortest.MainActivity" >
<com.android.irimiaionut.parallaxImageView.ParallaxImageView
android:id="@+id/backgr"
android:src="@drawable/backgr"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:scaleType="centerCrop"
android:adjustViewBounds="true"/>
</RelativeLayout>
backgr = (ParallaxImageView) findViewById(R.id.backgr);
backgr.setMargins(300, 200);
backgr.setMultipliers(1.5f, 1.7f);
4. Notes
- Solved some Galaxy devices exception for event.values on
getRotationMatrixFromVector(); - Min SDK 11
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
