All Projects → Jhuku → TriangularCustomView

Jhuku / TriangularCustomView

Licence: MIT license
No description or website provided.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to TriangularCustomView

Photoviewindicator
Indicator for PhotoView Library https://github.com/chrisbanes/PhotoView
Stars: ✭ 125 (+331.03%)
Mutual labels:  customview
Codeeditor
Code Editor Native Way
Stars: ✭ 155 (+434.48%)
Mutual labels:  customview
Pagemenulayout
【Android分页菜单控件】快速实现美团、饿了么、京东、淘宝首页分页菜单效果
Stars: ✭ 197 (+579.31%)
Mutual labels:  customview
Flutter Shopping Airi
一款基于Flutter开发的购物App,涵盖了购物App的常见功能
Stars: ✭ 128 (+341.38%)
Mutual labels:  customview
Enviews
🌟A cool dynamic view library
Stars: ✭ 1,771 (+6006.9%)
Mutual labels:  customview
Blurimage
This Android Project help you to make your image blur in fastest way
Stars: ✭ 162 (+458.62%)
Mutual labels:  customview
Neumorphismview Android
A Neumorphism library for Android, supporting customizations for shadows/highlights to selected child views.
Stars: ✭ 121 (+317.24%)
Mutual labels:  customview
Xmarqueeview
💥【MarqueeView】类似淘宝头条、京东头条的跑马灯效果,上下轮播,支持单行/多行显示、自定义轮播布局
Stars: ✭ 224 (+672.41%)
Mutual labels:  customview
Circleview
Create circular view in android (change color, border & shadow) ⚫
Stars: ✭ 147 (+406.9%)
Mutual labels:  customview
Speedometer
A lightweight circular indicator view library for Android
Stars: ✭ 183 (+531.03%)
Mutual labels:  customview
Cosin
Android loading view library 📊🍭
Stars: ✭ 129 (+344.83%)
Mutual labels:  customview
Simpleratingbar
SimpleRatingBar allows us to create a RatingBar with margin between items
Stars: ✭ 144 (+396.55%)
Mutual labels:  customview
Timeline
瀑布流式的时间轴
Stars: ✭ 2,028 (+6893.1%)
Mutual labels:  customview
Tileprogressview
Simple Progress View with Tile Animation
Stars: ✭ 126 (+334.48%)
Mutual labels:  customview
Jackknife
⚔️ 金轮法王,哦不,是轮子大师带你玩转Android,是时候尝试下MVVM了。这是一个Android应用开发全家桶库,支持Kotlin+MVVM+Dagger2+Retrofit架构。
Stars: ✭ 215 (+641.38%)
Mutual labels:  customview
Zigzagview
a zigzag view for using for ticket or invoice
Stars: ✭ 121 (+317.24%)
Mutual labels:  customview
Rangeview
Android range view for cropping (video, audio, etc.)
Stars: ✭ 157 (+441.38%)
Mutual labels:  customview
Colorseekbar
A colorful SeekBar for picking color
Stars: ✭ 249 (+758.62%)
Mutual labels:  customview
Cameravideobutton
Instagram like animated button for taking photo or recording video.
Stars: ✭ 223 (+668.97%)
Mutual labels:  customview
Searchview
This a view that waiting for network connection to resolve with cool animation .
Stars: ✭ 174 (+500%)
Mutual labels:  customview

TriangularCustomView

A Custom View to indicate multiple fragments with a triangular indicator.

Usage

Step 1: Add it in your root build.gradle (project) at the end of repository:

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Step 2: In your app build.gradle add the following dependency

dependencies {
          compile 'com.github.Jhuku:TriangularCustomView:0.1.1'
  }

Step 3: Set the colour and no of sections in the xml

<com.shuvam.triangleindicator.TriangularIndicator
        android:layout_width="match_parent"
        android:layout_height="80dp"
        app:no_of_sections="5"
        android:id="@+id/triangle"
        app:set_colour="#253e97"
        />

Step 4: In your Activity create an array of image resoures

Create an array of vector image resources from the drawable.

mCustomView = (TriangularIndicator) findViewById(R.id.triangle);

int [] res = { R.drawable.settimerbutton,
						R.drawable.settimerbutton,	
						R.drawable.settimerbutton,
						R.drawable.settimerbutton,
						R.drawable.settimerbutton};

mCustomView.setResources(res);

Navigate with the following Touch listener section value

 mCustomView.setOnTouchListener(new View.OnTouchListener() {
            @Override
            public boolean onTouch(View v, MotionEvent event) {

                float section = (int)Math.floor(event.getX()*(res.length)/mCustomView.getWidth());
                
                Log.d("Touch event value",""+section);
                return false;
            }
        });

Here section value 0.0 means first tab and so on..

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].