android-selector-chapek

Android Studio plugin which automatically generates drawable selectors from appropriately named resources.

  • 所有者: inmite/android-selector-chapek
  • 平台:
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

SelectorChapek for Android

This Android Studio plugin automatically generates drawable selectors from appropriately named Android resources.

How to install it:

  • in Android Studio: go to Preferences→Plugins→Browse repositories and search for SelectorChapek

or

  • download it and install via Preferences→Plugins→Install plugin from disk

How to use it:

  1. Right-click folder with your resources e.g 'drawable-xhdpi'

  1. Select 'Generate Android Selectors'

  1. All selectors automagically appear in the 'drawable' folder!

Naming convention:

In order of plugin to work, resources need to be appropriately named. The plugin supports png or nine-patch files with certain suffices anywhere in the file name. You can also combine any suffixes together.

Mapping, File name suffix, Drawable state, ---------------------, ---------------------, _normal, (default state), _pressed, state_pressed, _focused, state_focused, _disabled, state_enabled (false), _checked, state_checked, _selected, state_selected, _hovered, state_hovered, _checkable, state_checkable, _activated, state_activated, _windowfocused, state_window_focused, ## Wishlist

  • UI which will tell you which selectors will be generated
  • possibility to change naming mapping

Pull requests are welcomed!

Why 'Chapek'?

Karel Čapek was a famous Czech writer, inventor of the word 'robot'. The word comes from Czech word 'robota', which means 'hard manual labor'. As with Čapek's robots, this plugin will remove your unnecessary manual labor.

See our other Czech personalities who help with #AndroidDev.

主要指标

概览
名称与所有者inmite/android-selector-chapek
主编程语言Java
编程语言Java (语言数: 1)
平台
许可证Apache License 2.0
所有者活动
创建于2013-08-19 17:19:49
推送于2016-03-14 08:58:35
最后一次提交2014-01-21 20:59:36
发布数0
用户参与
星数1.6k
关注者数56
派生数199
提交数13
已启用问题?
问题数15
打开的问题数13
拉请求数0
打开的拉请求数1
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?