or-dvir / easysettings Goto Github PK
View Code? Open in Web Editor NEWA library for easily creating and adding settings (AKA preferences) to your android app
License: Apache License 2.0
A library for easily creating and adding settings (AKA preferences) to your android app
License: Apache License 2.0
I was unable to import the project following the description:
implementation 'com.github.or-dvir.EasySettings:easysettings-basic:1.1.3
implementation 'com.github.or-dvir.EasySettings:easysettings-dialogs:1.1.3
but it worked like this:
implementation 'com.github.or-dvir.EasySettings:1.1.3
Any idea why this is the case? Thanks
Hello,
played around with EasySettings today and I really like it. Found a crash when HeaderSettingsObject is the first element in array. To reproduce use:
mySettingsList = EasySettings.createSettingsArray(
new HeaderSettingsObject.Builder("this will cause index of bound")
.build(),
new CheckBoxSettingsObject.Builder("checkBoxKey", "checkbox title", false)
.setSummary("checkbox summary")
.addDivider()
.build());
Hey, thanks for the library.
I'm using a dark theme for my app, so i need to use custom colored text. How can i do that?
BasicSettingsClickEvent don't work how do you do click event on a settings? @or-dvir
Hello! I want to contribute on your project with making logo design. What do you think about it?
Hello,
first, thanks for this library. It makes settings management much easier !
I'd like to link settings.
For example :
I'd liked to gray/disable setting2 if setting1 is not enabled.
How can I do that ?
I found nothing in the example or the documentation.
Thanks
Hello,
I may have overlooked something but, when building the array, it would be tremendously helpful to overload the setIcon method to accept also a drawable instead of only a resource id like:
new BasicSettingsObject.Builder(SETTINGS_KEY_EXAMPLE, getString(R.string.pref_example))
.setIcon(new ExampleDrawable(this).icon(ExampleDrawable.MyIconName))
.build()
As a workaround one can dig into the image view to achieve this:
View root = findViewById(settingsObject.getRootId());
ImageView imageView = root.findViewById(settingsObject.getImageViewIconId());
imageView.setImageDrawable(drawable);
It would be useful to store data in a sqlite database
Is it possible to integrate external saving ?
All the things are working properly while I was working locally. But When I uploaded the app on play store the app got crashed when Setting Activity was opened, showing the issue of no Subscriber event found.
Then I found that because I enabled the proguard, it removed the subscriber methods because It was unused as we don't have to call it anywhere in the Activity. Also, I can't disable proguard.
Is there anything that can help?
I like the project but, a library, ideally, should have not external dependencies, or the less possible.
Eventbus is a library that imposes a pattern so it will make difficult adoption. On the other hand, it looks an unnecessary dependency IMHO.
I would like to extend ListSettingsObject and override getValueHumanReadable() method, but I can't call super(builder) in constructor.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.