Skycons


Source link: https://github.com/torryharris/skycons

Skycons for Android

We set out to create a native weather app on Xamarin but we wanted to build something unique to differentiate ourselves amongst the plethora of weather apps avaialble out there. The DarkSky app & Forecast did an excellent job with their Skycons.

We wanted to re-use the same icons for our app as well, however, we found that these animated icons don't exist natively on either platforms. This is currently a work-in-progress as the team is finetuning the animation & the performance itself. You can download the complete repository which also contains the sample project SkyconsDemo.

Built with Android Studio (2.2.3)

Available Icons

Icon View
Cloud CloudView
Clear Sky (Sunny) SunView
Clear Night MoonView
Partly Cloudy Day CloudSunView
Partly Cloudy Night CloudMoonView
Heavy Showers CloudHvRainView
Snow CloudSnowView
Light Showers CloudRainView
Fog CloudFogView
Wind WindView
Thunder CloudThunderView

How to use

  • Deployment target should be API level 14 or above.
  • Import 'SkyconsLibrary' as a library to your project.

Adding icons:

1) To add a skycon(icon) through the XML:

  <com.thbs.skycons.library.<skycon>

 android:layout_width="250dp"

 android:layout_height="250dp"

 android:layout_centerHorizontal="true"

 android:layout_centerVertical="true"

 app:isStatic = "true"

 app:strokeColor = "#000000"

 app:bgColor = "#ffffff"/>  where <skycon> represents the particular view/icon. For example "MoonView"
2) To add a skycon(For instance, WindView) through Java code, perform following in the activity:

  LinearLayout layout = new LinearLayout(this);

LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(

 LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);

layout.setLayoutParams(params);

  //Using these params, you can control view attributes

//attributres include boolean isStatic,boolean isAnimated, int strokeColor , int backgroundColor

WindView windView = new WindView(this,true,false, Color.parseColor("#000000"),Color.parseColor("#ffffff"));

 //Using these params, you can control width & height of the icon

params.width = 200;

params.height = 200;

windView.setLayoutParams(params);

 layout.addView(windView);

this.setContentView(layout);
 
  • For a better experience, keep 'layout_width' & 'layout_height' the same.

Customization:

Options Value Description
layout_width 100dp (recommended min value) Width of icon
layout_height 100dp (recommended min value) Height of the icon
isStatic True / False Boolean Value to enable on-touch animation
strokeColor HEX Customize the color of the icon
bgColor HEX Customize the background colour

Pull Requests are welcomed. We are looking forward for your suggestions on new icons & animations.

##Demo

License

Skycons for Android is being made available in public domain under similar terms like the original

Resources

Android Toolbar with marqueeable title / subtitle.

Shareable is a small android library to help implement direct share and social media actions into your android app. For example if you want to share something specifically to Twitter or Facebook.

The API is design to allow you to specify specific social channels to share to using the Builder design pattern. If the app is not available the default is to use all Intent.ACTION_SEND apps on the phone.

ColorPickerDialog is an Android Library providing color picker dialog for single color or multi color selection from the ArrayList of colors provided by developer.

A delightful progress animation that you'll fall in love with, very easily.

Play store downloads/updates app in sequence because of the performance issues but still there are the cases when you need to download/upload things in parallel like AppStore or WhatsApp.

Configurable custom crop widget for Android.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes