{"id":13645211,"url":"https://github.com/LuckSiege/EasyIndicator","last_synced_at":"2025-04-21T13:32:14.367Z","repository":{"id":108437345,"uuid":"86920600","full_name":"LuckSiege/EasyIndicator","owner":"LuckSiege","description":"Easy NavigationBar Indicator ViewPage or View  Library for Android ","archived":false,"fork":false,"pushed_at":"2017-07-10T08:27:54.000Z","size":1255,"stargazers_count":99,"open_issues_count":1,"forks_count":22,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T00:41:49.201Z","etag":null,"topics":["animation","indicator","viewpager"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LuckSiege.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-04-01T14:55:39.000Z","updated_at":"2025-02-08T22:27:03.000Z","dependencies_parsed_at":"2023-06-01T02:00:24.962Z","dependency_job_id":null,"html_url":"https://github.com/LuckSiege/EasyIndicator","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuckSiege%2FEasyIndicator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuckSiege%2FEasyIndicator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuckSiege%2FEasyIndicator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuckSiege%2FEasyIndicator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuckSiege","download_url":"https://codeload.github.com/LuckSiege/EasyIndicator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250064763,"owners_count":21368967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animation","indicator","viewpager"],"created_at":"2024-08-02T01:02:31.280Z","updated_at":"2025-04-21T13:32:12.561Z","avatar_url":"https://github.com/LuckSiege.png","language":"Java","readme":"# EasyIndicator\n\n一款简单的tab指示器，带平移动画效果，代码简单可配置各种tab切换样式，用得着的朋友希望点个star\n\n使用方法：\n\n```\n      app:indicator_bottom_height=\"\" 底部指示器高度\n      app:indicator_bottom_line_color=\"\" 底部线条颜色\n      app:indicator_bottom_line_height=\"\" 底部线条高度\n      app:indicator_width=\"\" tab宽度\n      app:indicator_height=\"\" tab高\n      app:indicator_isBottom_line=\"\" 是否显示底部线条\n      app:indicator_line_color=\"\" 底部指示器颜色     \n      app:indicator_normal_color=\"\" tab选中颜色      \n      app:indicator_selected_color=\"\" tab未选中颜色    \n      app:indicator_textSize=\"\" tab字体大小     \n      app:indicator_vertical_line_w=\"\" 垂直分割线条宽度     \n      app:indicator_vertical_line_color=\"\" 垂直线条颜色   \n      app:indicator_vertical_line_h=\"\"  垂直线条高度\n      app:indicator_select_textSize=\"\" 选中字体放大效果\n```\n      \n```      \n\u003ccom.luck.indicator.EasyIndicator\n        android:id=\"@+id/easy_indicator\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        app:indicator_bottom_height=\"3dp\"\n        app:indicator_bottom_line_color=\"@color/line_color\"\n        app:indicator_bottom_line_height=\"1dp\"\n        app:indicator_height=\"42dp\"\n\tapp:indicator_select_textSize=\"14sp\"\n        app:indicator_isBottom_line=\"true\"\n        app:indicator_line_color=\"@color/app_color\"\n        app:indicator_normal_color=\"@color/color_70\"\n        app:indicator_selected_color=\"@color/app_color\"\n        app:indicator_textSize=\"14sp\"\n        app:indicator_vertical_line_w=\"1dp\"\n        app:indicator_vertical_line_color=\"@color/line_color\"\n        app:indicator_vertical_line_h=\"20dp\"\n        app:indicator_width=\"0dp\" /\u003e\n```\t\n\n   ***非ViewPage下代码使用***\n\n```\neasy_indicator = (EasyIndicator) findViewById(R.id.easy_indicator);\n        easy_indicator.setTabTitles(new String[]{\"进行中\", \"已完成\", \"已评价\"});\n        easy_indicator.setOnTabClickListener(new EasyIndicator.onTabClickListener() {\n            @Override\n            public void onTabClick(String title, int position) {\n                Log.i(TAG, title + \"::\" + position);\n            }\n        });\n```\n\n   ***ViewPage下代码使用***\n   \n``` \neasy_indicator = (EasyIndicator) findViewById(R.id.easy_indicator);\n        easy_indicator.setTabTitles(new String[]{\"Tab1\", \"Tab2\", \"Tab3\", \"Tab4\"});\n\n        // 自定义设置\n        easy_indicator.setViewPage(vp, new FragmentAdapter(getSupportFragmentManager(),\n                new Fragment[]{new FragmentTab1(), new FragmentTab2(),\n                        new FragmentTab3(), new FragmentTab4()}));\n\n        // 自带设置\n//        easy_indicator.setViewPageViews(new FragmentAdapter(getSupportFragmentManager(),\n//                new Fragment[]{new FragmentTab1(), new FragmentTab2(),\n//                        new FragmentTab3(), new FragmentTab4()}));\n```\n\t\n   ***主项目的build.gradle添加如下代码***\n\n```\nallprojects {\n    repositories {\n        jcenter()\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n  ***compile引入***\n\n```\ndependencies {\n\tcompile 'com.github.LuckSiege:EasyIndicator:v1.1.3' \n}\n```\n\t  \n        \n        \n\n![image](https://github.com/LuckSiege/EasyIndicator/blob/master/image/4C47A389C02BC3FD7680CF3935F1F916.jpg)\n![image](https://github.com/LuckSiege/EasyIndicator/blob/master/image/0BE57F615A3284E438FEAE624C1C4319.jpg)\n![image](https://github.com/LuckSiege/EasyIndicator/blob/master/image/071D2084DC0C10531EDC1CE8B27CF464.jpg)\n![image](https://github.com/LuckSiege/EasyIndicator/blob/master/image/7F8892258BE7624FF6ACE4A3BE558C43.jpg)\n![image](https://github.com/LuckSiege/EasyIndicator/blob/master/image/859EEDFA1A7C7EEB8B071E93AEC37BB5.jpg)\n","funding_links":[],"categories":["Indicator"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLuckSiege%2FEasyIndicator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLuckSiege%2FEasyIndicator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLuckSiege%2FEasyIndicator/lists"}