infinitered / infinitered/bluepotion
com.rubymotion.NoMethodError: undefined method `gravity=' for <RMQViewStyler|
- Dominant language
- Ruby
- Stars
- 74
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
I am getting the above error with the starter app if I try to set the gravity. I looked into the code and wrote a spec to test the gravity= method, but it seems to be broken. I am new to Android, so I might be totally wrong, but by the looks of it, the `layout_params` used in RMQViewStyler is an instance of `Android::View::ViewGroup::LayoutParams` but that doesn't seem to implement gravity, rather one of it's subclasses does.
Contributor guide
Research direction
Start with RMQViewStyler and the gravity= spec mentioned in the issue. Inspect the layout_params type and the LayoutParams subclasses that provide gravity support, then run the existing spec and starter app. Done means setting gravity no longer raises NoMethodError and the spec passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, ruby
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100