Maintainers
Pricing
Enterprise
More
More
Documentation
Try Live
Rankings
Install
Blog
Docs7
Ask
New
Add Docs
EasySignSeekBar
https://github.com/zhou-you/easysignseekbar
Admin
本库主要提供一个漂亮而强大的自定义SeekBar,进度变化由提示牌
...
Tokens:
3,118
Snippets:
2
Trust Score:
8
Update:
1 year ago
Context
Chat
Benchmark
Latest
Show doc for...
Code
Info
Show Results
Tokens:
Raw
Copy
Link
Tokens:
Raw
Copy
Link
### Global CSS Styles for UI Components and Mermaid Diagrams Source: https://github.com/zhou-you/easysignseekbar/blob/master/app/src/main/assets/about.html This snippet contains comprehensive CSS rules for styling embedded content (Facebook, lanyard), and various elements within Mermaid diagrams such as nodes, edges, clusters, actors, messages, labels, notes, sections, grid lines, and task/Gantt chart components. It also includes general body and HTML styling. ```CSS oembedall-facebookBody{background-color:#fff;vertical-align:top;padding:5px}.oembedall-facebookBody .contents{display:inline-block;width:100%}.oembedall-facebookBody div img{float:left;margin-right:5px}div.oembedall-lanyard{-webkit-box-shadow:none;-webkit-transition-delay:0s;-webkit-transition-duration:.4000000059604645s;-webkit-transition-property:width;-webkit-transition-timing-function:cubic-bezier(0.42,0,.58,1);background-attachment:scroll;background-clip:border-box;background-color:transparent;background-image:none;background-origin:padding-box;border-width:0;box-shadow:none;color:#112644;display:block;float:left;font-family:'Trebuchet MS',Trebuchet,sans-serif;font-size:16px;height:253px;line-height:19px;margin:0;max-width:none;min-height:0;outline:#112644 0;overflow-x:visible;overflow-y:visible;padding:0;position:relative;text-align:left;vertical-align:baseline;width:804px}div.oembedall-lanyard .tagline{font-size:1.5em}div.oembedall-lanyard .wrapper{overflow:hidden;clear:both}div.oembedall-lanyard .split{float:left;display:inline}div.oembedall-lanyard .prominent-place .flag:active,div.oembedall-lanyard .prominent-place .flag:focus,div.oembedall-lanyard .prominent-place .flag:hover,div.oembedall-lanyard .prominent-place .flag:link,div.oembedall-lanyard .prominent-place .flag:visited{float:left;display:block;width:48px;height:48px;position:relative;top:-5px;margin-right:10px}div.oembedall-lanyard .place-context{font-size:.889em}div.oembedall-lanyard .prominent-place .sub-place{display:block}div.oembedall-lanyard .prominent-place{font-size:1.125em;line-height:1.1em;font-weight:400}div.oembedall-lanyard .main-date{color:#8CB4E0;font-weight:700;line-height:1.1}div.oembedall-lanyard .first{width:48.57%;margin:0 0 0 2.857%}.mermaid .label{color:#333}.node circle,.node polygon,.node rect{fill:#cde498;stroke:#13540c;stroke-width:1px}.edgePath .path{stroke:green;stroke-width:1.5px}.cluster rect{fill:#cdffb2;rx:40;stroke:#6eaa49;stroke-width:1px}.cluster text{fill:#333}.actor{stroke:#13540c;fill:#cde498}text.actor{fill:#000;stroke:none}.actor-line{stroke:grey}.messageLine0{stroke-width:1.5;stroke-dasharray:"2 2";marker-end:"url(#arrowhead)";stroke:#333}.messageLine1{stroke-width:1.5;stroke-dasharray:"2 2";stroke:#333}#arrowhead{fill:#333}#crosshead path{fill:#333!important;stroke:#333!important}.messageText{fill:#333;stroke:none}.labelBox{stroke:#326932;fill:#cde498}.labelText,.loopText{fill:#000;stroke:none}.loopLine{stroke-width:2;stroke-dasharray:"2 2";marker-end:"url(#arrowhead)";stroke:#326932}.note{stroke:#6eaa49;fill:#fff5ad}.noteText{fill:#000;stroke:none;font-family:'trebuchet ms',verdana,arial;font-size:14px}.section{stroke:none;opacity:.2}.section0,.section2{fill:#6eaa49}.section1,.section3{fill:#fff;opacity:.2}.sectionTitle0,.sectionTitle1,.sectionTitle2,.sectionTitle3{fill:#333}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px}.grid .tick{stroke:lightgrey;opacity:.3;shape-rendering:crispEdges}.grid path{stroke-width:0}.today{fill:none;stroke:red;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-size:11px}.taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px}.taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}.taskText0,.taskText1,.taskText2,.taskText3{fill:#fff}.task0,.task1,.task2,.task3{fill:#487e3a;stroke:#13540c}.taskTextOutside0,.taskTextOutside1,.taskTextOutside2,.taskTextOutside3{fill:#000}.active0,.active1,.active2,.active3{fill:#cde498;stroke:#13540c}.activeText0,.activeText1,.activeText2,.activeText3{fill:#000!important}.done0,.done1,.done2,.done3{stroke:grey;fill:lightgrey;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#000!important}.crit0,.crit1,.crit2,.crit3{stroke:#f88;fill:red;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#f88;fill:#cde498;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#f88;fill:lightgrey;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3,.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#000!important}.titleText{text-anchor:middle;font-size:18px;fill:#000}text{font-family:'trebuchet ms',verdana,arial;font-size:14px}html{height:100%}body{margin:0!important;padding:5px 20px 26px!important;background-color:#fff;font-family:"Lucida Grande","Segoe UI","Apple SD Gothic Neo","Malgun Gothic","Lucida Sans Unicode",Helvetica,Arial,sans-serif;font-size:.9em;overflow-x:hidden;overflow-y:auto}br,h1,h2,h3,h4,h5,h6{clear:both}hr.page{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAECAYAAACtBE5DAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLmowcmcvMTk5OS8wMi ``` -------------------------------- ### SignSeekBar XML Custom Attributes Definition Source: https://github.com/zhou-you/easysignseekbar/blob/master/README.md Defines the custom attributes for the `SignSeekBar` component, allowing for extensive customization of its appearance and behavior directly within Android XML layouts. Attributes control properties such as min/max values, track and thumb sizes/colors, section marks, text display, animation duration, and sign bubble appearance. ```XML <?xml version="1.0" encoding="utf-8"?> <resources> <declare-styleable name="SignSeekBar"> <attr name="ssb_min" format="float|reference"/> <!--min < max, default: 0.0f--> <attr name="ssb_max" format="float|reference"/> <!--min < max, default: 100.0f--> <attr name="ssb_progress" format="float|reference"/> <!--real time progress value, default: min--> <attr name="ssb_is_float_type" format="boolean"/> <!--support for float type--> <attr name="ssb_track_size" format="dimension|reference"/> <!--height of right-track(on the right of thumb), default: 2dp--> <!--height of left-track(on the left of thumb), default: 2dp higher than right-track's height--> <attr name="ssb_second_track_size" format="dimension|reference"/> <attr name="ssb_thumb_radius" format="dimension|reference"/> <!--radius of thumb, default: 2dp higher than left-track's height--> <!--radius of thumb when be dragging, default: 2 times of left-track's height--> <attr name="ssb_thumb_radius_on_dragging" format="dimension|reference"/> <attr name="ssb_track_color" format="color|reference"/> <!--color of right-track, default: R.color.colorPrimary--> <attr name="ssb_second_track_color" format="color|reference"/> <!--color of left-track, default: R.color.colorAccent--> <attr name="ssb_thumb_color" format="color|reference"/> <!--color of thumb, default: same as left-track's color--> <attr name="ssb_section_count" format="integer|reference"/> <!--shares of whole progress(max - min), default: 10--> <attr name="ssb_show_section_mark" format="boolean"/> <!--show demarcation points or not, default: false--> <attr name="ssb_auto_adjust_section_mark" format="boolean"/> <!--auto scroll to the nearest section_mark or not, default: false--> <attr name="ssb_show_section_text" format="boolean"/> <!--show section-text or not, default: false--> <attr name="ssb_section_text_size" format="dimension|reference"/> <!--text size of section-text, default: 14sp--> <attr name="ssb_section_text_color" format="color|reference"/> <!--text color of section-text, default: same as right-track's color--> <!--text position of section-text relative to track, sides, bottom_sides, below_section_mark, default: sides--> <attr name="ssb_section_text_position"> <enum name="sides" value="0"/> <enum name="bottom_sides" value="1"/> <enum name="below_section_mark" value="2"/> </attr> <attr name="ssb_section_text_interval" format="integer"/> <!--the interval of two section-text, default: 1--> <attr name="ssb_show_thumb_text" format="boolean"/> <!--show real time progress-text under thumb or not, default: false--> <attr name="ssb_thumb_text_size" format="dimension|reference"/> <!--text size of progress-text, default: 14sp--> <attr name="ssb_thumb_text_color" format="color|reference"/> <!--text color of progress-text, default: same as left-track's color--> <attr name="ssb_show_progress_in_float" format="boolean"/> <!--show Sign-progress in float or not, default: false--> <attr name="ssb_touch_to_seek" format="boolean"/> <!--touch anywhere on track to quickly seek, default: false--> <attr name="ssb_seek_by_section" format="boolean"/> <!--seek by section, the progress may not be linear, default: false--> <attr name="ssb_sign_color" format="color|reference"/> <!--color of sign, default: same as left-track's color--> <attr name="ssb_sign_border_color" format="color|reference"/> <!--color of sign, border--> <attr name="ssb_sign_show_border" format="boolean"/> <!--color of sign, default: same as left-track's color--> <attr name="ssb_sign_text_size" format="dimension|reference"/> <!--text size of sign-progress, default: 14sp--> <attr name="ssb_sign_border_size" format="dimension|reference"/> <!--border size, default: 1dp--> <attr name="ssb_sign_text_color" format="color|reference"/> <!--text color of sign-progress, default: #ffffffff--> <attr name="ssb_anim_duration" format="integer"/> <!--duration of animation, default: 200ms--> <attr name="ssb_show_sign" format="boolean"/> <!--hide sign, default: false--> <attr name="ssb_text_space" format="dimension|reference"/><!--default:2dp--> <attr name="ssb_sides_labels" format="reference"/><!--default:null--> <attr name="ssb_thumb_bg_alpha" format="float|reference"/> <!--0.0f-1.0f, default: 0.2f--> <attr name="ssb_thumb_ratio" format="float|reference"/> <!--0.0f-1.0f, default: 0.7f--> <attr name="ssb_show_thumb_shadow" format="boolean"/> <!--0.0f-1.0f, default: false--> <attr name="ssb_sign_arrow_autofloat" format="boolean"/> <!--sign arrow auto float, default: true--> <attr name="ssb_sign_height" format="dimension|reference"/> <!--sign height,default:22dp--> </declare-styleable> </resources> ```