Compassview

Android Compass Widget
Alternatives To Compassview
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Ticker4,1764712 years ago12November 11, 202115apache-2.0Java
An Android text view with scrolling text change animation
Likebutton2,767
4 years ago1October 16, 201713Java
Twitter's heart animation for Android
Vectormaster1,468
4 years ago3January 08, 201916mitJava
Dynamic control over vector drawables!
Easyflipview1,290
a year ago3February 03, 20224apache-2.0Java
💳 A quick and easy flip view through which you can create views with two sides like credit cards, poker cards etc.
Googleprogressbar1,274
544 years ago4June 02, 20157apache-2.0Java
Android library to display progress like google does in some of his services.
Vector Compat1,2465117 years ago6April 27, 201526Java
A support library for VectorDrawable and AnimatedVectorDrawable classes introduced in Lollipop
Switcher1,204
a year ago2July 13, 2020Kotlin
Android implementation of switch animation from Oleg Frolov
Sparkbutton1,159
2 years ago4apache-2.0Java
Android library to create buttons with Twitter's heart like animation.
Fragmenttransactionextended1,084
7 years ago8apache-2.0XML
FragmentTransactionExtended is a library which provide us a set of custom animations between fragments.
Macsvg920
a year ago18otherObjective-C
macSVG - An open-source macOS app for designing HTML5 SVG (Scalable Vector Graphics) art and animation with a WebKit web view ➤➤➤
Alternatives To Compassview
Select To Compare


Alternative Project Comparisons
Readme

CompassView

Android Compass Widget

Example

Default

default

In Xml

    <com.gospelware.compassviewlib.CompassView
        android:id="@+id/compass"
        android:layout_width="100dp"
        android:layout_height="100dp" />

Costomize

costomize

You can costomize the compass in xml and code:

  • circleColor(Default as Black)
  • ringColor (Default as White)
  • pointerDrawable(Default as circle with RingColor)
  • pointerRotation(Default as 0)

In Xml

    <com.gospelware.compassviewlib.CompassView
        xmlns:compass="http://schemas.android.com/apk/res-auto"
        android:id="@+id/compass"
        android:layout_width="100dp"
        android:layout_height="100dp"
        compass:circleColor="@color/dark"
        compass:ringColor="@color/red"
        compass:pointerDrawable="@drawable/pointer"
        compass:pointerRotation="0"
        compass:showRing="true" />

In Code

      CompassView compassView = (CompassView) findViewById(R.id.compass);
      compassView.setCircleColor(getColor(R.color.dark));
      compassView.setRingColor(getColor(R.color.red));
      compassView.setPointerDrawable(R.drawable.pointer);
      compassView.setRotation(0);

Scan Animation

gif

The widget itself contains an Scaning Animation, uses .startScan() and .stopScan() to control the Animation.
If you want to access the current states of the animation, uses .isScanning() which return weather the animation is running.
By default the animation rotates clock wise with ringColor.

Sample

        Button btn = (Button) findViewById(R.id.btn);
        btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if (compassView.isScanning()) {
                    compassView.stopScan();
                } else {
                    compassView.startScan();
                }

            }
        });

How to?

Gradle

dependencies {    
  compile 'com.gospelware.compassView:compassviewlib:1.0.2'  
}
Popular Xml Projects
Popular Animation Projects
Popular Data Formats Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Java
Xml
Animation
Weather
Clock