Tooltip Indicator

General

Category
Free
Tag
Views
License
MIT License
Registered
Jun 29, 2017
Favorites
6
Link
https://github.com/huseyinozer/TooltipIndicator
See also
FluentView
AlertView
ScratchCardLayout
AXPowerView
WindowView

Additional

Language
Java
Version
N/A
Created
Jun 28, 2017
Updated
Jun 29, 2017 (Retired)
Owner
Huseyin Ozer (huseyinozer)
Contributor
Huseyin Ozer (huseyinozer)
1
Activity
Badge
Generate
Download
Source code

Tooltip Indicator

An indicator with preview support that you can use in the ViewPager.

Layout:

<me.huseyinozer.TooltipIndicator
    android:id="@+id/tooltip_indicator"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    
    app:ti_lineWidth="24dp"
    app:ti_lineWidthSelected="80dp"
    app:ti_lineHeight="6dp"
    
    app:ti_lineMargin="4dp"
            
    app:ti_selectedLineDrawable="@drawable/tooltip_indicator_rounded_line_selected"
    app:ti_unselectedLineDrawable="@drawable/tooltip_indicator_rounded_line_unselected"

    app:ti_tooltipWidth="100dp"
    app:ti_tooltipHeight="180dp" />

Java:

indicator.setupViewPager(viewPager);

indicator.setToolTipDrawables(Arrays.asList(
        ContextCompat.getDrawable(MainActivity.this, R.drawable.img0),
        ContextCompat.getDrawable(MainActivity.this, R.drawable.img1),
        ContextCompat.getDrawable(MainActivity.this, R.drawable.img2),
        ContextCompat.getDrawable(MainActivity.this, R.drawable.img3),
        ContextCompat.getDrawable(MainActivity.this, R.drawable.img4)
));

Android Gradle

dependencies {
  compile 'me.huseyinozer:tooltipindicator:0.0.1'
}

LICENSE

(MIT)