michaelxs / Android Commonshapebutton
Licence: apache-2.0
To remove all shape files from the project, provide a generic shape style button.
Stars: ✭ 404
Programming Languages
kotlin
9241 projects
Projects that are alternatives of or similar to Android Commonshapebutton
ShapeView
打造万能shape,再也不用写很多xml了,可以当做TextView,Button,EditText等多种控件,方便实用
Stars: ✭ 34 (-91.58%)
Mutual labels: shape, button
Flutter Neumorphic
A complete, ready to use, Neumorphic ui kit for Flutter, 🕶️ dark mode compatible
Stars: ✭ 988 (+144.55%)
Mutual labels: shape, button
neumorphic-style
🎛 Simple SwiftUI ‘neumorphic’ button style
Stars: ✭ 54 (-86.63%)
Mutual labels: button
Flexiblebutton
灵活的按键处理库(Flexible Button)| 按键驱动 | 支持单击、双击、连击、长按、自动消抖 | 灵活适配中断和低功耗 | 按需实现组合按键
Stars: ✭ 322 (-20.3%)
Mutual labels: button
Jc button
Arduino library to debounce button switches, detect presses, releases, and long presses
Stars: ✭ 289 (-28.47%)
Mutual labels: button
Curated List Of Awesome 3d Morphable Model Software And Data
The idea of this list is to collect shared data and algorithms around 3D Morphable Models. You are invited to contribute to this list by adding a pull request. The original list arised from the Dagstuhl seminar on 3D Morphable Models https://www.dagstuhl.de/19102 in March 2019.
Stars: ✭ 375 (-7.18%)
Mutual labels: shape
Backgroundlibrary
A framework for directly generating shape through Tags, no need to write shape.xml again(通过标签直接生成shape,无需再写shape.xml)
Stars: ✭ 3,179 (+686.88%)
Mutual labels: shape
Efcountinglabel
Adds animated counting support to UILabel.
Stars: ✭ 311 (-23.02%)
Mutual labels: button
Shapeofview
Give a custom shape to any android view, Material Design 2 ready
Stars: ✭ 2,977 (+636.88%)
Mutual labels: shape
Examples Win32
Shows how to use Win32 controls by programming code (c++17).
Stars: ✭ 22 (-94.55%)
Mutual labels: button
MGS.Electronics
Unity plugin for make button switch, knob switch and rocker element in scene.
Stars: ✭ 12 (-97.03%)
Mutual labels: button
Segmentedbutton
Segmented Control with animation for Android API 12+
Stars: ✭ 352 (-12.87%)
Mutual labels: button
Midi controller
This is a library for creating a MIDI controller using an Arduino or Teensy board.
Stars: ✭ 287 (-28.96%)
Mutual labels: button
Squishbutton
A button that squishes when pressed. As seen in the Clips app.
Stars: ✭ 401 (-0.74%)
Mutual labels: button
CommonShapeButton
To remove all shape files from the project, provide a generic shape style button.
Attribute
<declare-styleable name="CommonShapeButton">
<attr name="csb_shapeMode" format="enum">
<enum name="rectangle" value="0" />
<enum name="oval" value="1" />
<enum name="line" value="2" />
<enum name="ring" value="3" />
</attr>
<attr name="csb_fillColor" format="color" />
<attr name="csb_pressedColor" format="color" />
<attr name="csb_strokeColor" format="color" />
<attr name="csb_strokeWidth" format="dimension" />
<attr name="csb_cornerRadius" format="dimension" />
<attr name="csb_cornerPosition">
<flag name="topLeft" value="1" />
<flag name="topRight" value="2" />
<flag name="bottomRight" value="4" />
<flag name="bottomLeft" value="8" />
</attr>
<attr name="csb_activeEnable" format="boolean" />
<attr name="csb_drawablePosition" format="enum">
<enum name="left" value="0" />
<enum name="top" value="1" />
<enum name="right" value="2" />
<enum name="bottom" value="3" />
</attr>
<attr name="csb_startColor" format="color" />
<attr name="csb_endColor" format="color" />
<attr name="csb_orientation" format="enum">
<enum name="TOP_BOTTOM" value="0" />
<enum name="LEFT_RIGHT" value="1" />
</attr>
</declare-styleable>
Usage
Text style
<com.blue.view.CommonShapeButton
android:layout_width="300dp"
android:layout_height="50dp"
android:layout_margin="10dp"
android:text="text+corner+fill"
android:textColor="#fff"
app:csb_cornerRadius="50dp"
app:csb_fillColor="#00bc71" />
Button style
<com.blue.view.CommonShapeButton
style="@style/CommonShapeButtonStyle"
android:layout_width="300dp"
android:layout_height="50dp"
android:layout_margin="10dp"
android:text="button+fill+stroke+ripple"
android:textColor="#fff"
app:csb_activeEnable="true"
app:csb_fillColor="#00bc71"
app:csb_strokeColor="#000"
app:csb_strokeWidth="1dp" />
License
Update
2018-10-23 : add java implementation
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].