Angads25 / Android Toggle
Licence: apache-2.0
Custom Switches for Android
Stars: ✭ 266
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Android Toggle
Zwtopselectvcview
快速导入多个控制器,通过顶部选择菜单切换控制器,实现一个页面多个控制器切换处理.(It's an so easy way to add your all kinds of childControllers into superViewController, then you can slide around or just click on the topButton which is automatically building in the topView to switch your childViewController.)
Stars: ✭ 61 (-77.07%)
Mutual labels: switch, view
view-admin-as
View the WordPress admin as a different role, switch between users, temporarily change your capabilities, set default screen settings for roles, manage your roles and capabilities.
Stars: ✭ 44 (-83.46%)
Mutual labels: view, switch
auto-fill-edit-text
This custom EditText can suggest and fill text defined before.
Stars: ✭ 26 (-90.23%)
Mutual labels: view
bowser
⭐ Bowser - Dynamic Default Browser Switch for MacOS
Stars: ✭ 42 (-84.21%)
Mutual labels: switch
Incrementproductview
Interesting concept of products incrementation
Stars: ✭ 262 (-1.5%)
Mutual labels: view
SwitchXBOXController
Turn your Nintendo Switch into an XBOX360 controller to play on your Windows computer
Stars: ✭ 46 (-82.71%)
Mutual labels: switch
ZSegmentedControl
Customizable segmented control, a UISwitch-like segmented control and Segmented pager written in Swift
Stars: ✭ 25 (-90.6%)
Mutual labels: switch
MessageView
MessageView helps you to create chat message view or a social media message view quickly like a typical chatting application or social post view Its a container view, so you can add any type of message or social post such as TextView or any customize TextView, ImageView, etc.
Stars: ✭ 21 (-92.11%)
Mutual labels: view
networking-icons
Repo containing various networking icons including routers, switches, servers, firewalls, load balancers and more. Icons are provided in png and svg formats.
Stars: ✭ 61 (-77.07%)
Mutual labels: switch
FigmaConvertXib
FigmaConvertXib is a tool for exporting design elements from figma.com and generating files to a projects iOS .xib / Android .xml
Stars: ✭ 111 (-58.27%)
Mutual labels: view
bookr-mod-vita
A book reader for the Vita and Switch. Still a work in progress.
Stars: ✭ 51 (-80.83%)
Mutual labels: switch
http-connection-lifecycle
Complete and detailed explanation of HTTP connection lifecycle
Stars: ✭ 43 (-83.83%)
Mutual labels: switch
PowerEdge-shutup
shell ballgag for Dell servers, tested working with G11 and G12, G13 too but with conditions**.
Stars: ✭ 55 (-79.32%)
Mutual labels: switch
Toggle
Android Library for Custom Switches.
Developed by
Benchmark:
Mentions:
wiki.
Read all about internal classes and functions in theInstallation
- Library is also Available in MavenCentral, So just put this in your app dependencies to use it:
implementation 'com.github.angads25:toggle:1.1.0'
Usage
-
Start by adding a Switch (eg.
LabeledSwitch
) in your xml layout as:<com.github.angads25.toggle.widget.LabeledSwitch android:id="@+id/switch" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="16dp" android:textSize="14sp" app:on="false" app:colorBorder="@color/colorAccent"/>
-
To the reference of Switch in your Activity/Fragment class set a Toggle Event Handler to it as below:
LabeledSwitch labeledSwitch = findViewById(R.id.switch); labeledSwitch.setOnToggledListener(new OnToggledListener() { @Override public void onSwitched(LabeledSwitch labeledSwitch, boolean isOn) { // Implement your switching logic here } });
That's It. All your switching callbacks would be handled in
onSwitched
method, parameterisOn
will provide the current state of the switch.
Switches Available
- Labeled Switch | Designed by - Shweta Gupta
- Day Night Switch | Designed by - Ramakrishna V
License
Copyright (C) 2018 Angad Singh
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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].