Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Integration with HoloEverywhere [Enchance] #411

Description

@fjjimenez01

Any options for full integration with HoloEverywhere 1.4

https://github.com/ChristopheVersieux/HoloEverywhere

Android Annotations(Amazing lib btw) generates code with imports like android.view.LayoutInflater.

But HoloEverywhere requires imports from its own package like org.holoeverywhere.LayoutInflater.

Generating the errors like this in fragments: Cannot override the final method from _HoloFragment (Due to the inflater)

Sorry for my english

Activity

  1. pyricau commented on Nov 25, 2012

    @pyricau
    Contributor

    Interesting. Could you please provide the exact errors ? We would also need you to copy the generated code that doesn't work, as well as how the generated code should look like for it to work.

  2. pepyakin commented on Nov 25, 2012

    @pepyakin

    Hello @fjjimenez.

    HoloEverywhere is good library, but if you need small amount of customization (say you only need Holo buttons, text views and etc and don't need the dialogs) you can try the Android Holo Colors tool, from Android Asset Studio, if you need a quick workaround.

  3. dmarcato commented on Nov 27, 2012

    @dmarcato

    I'm having the same issue, the problem is that Fragment class from HoloEverywhere override onCreateView with final modifier, and create another onCreateView with his own LayoutInflater parameter:

    @Override
    public final View onCreateView(android.view.LayoutInflater inflater,
            ViewGroup container, Bundle savedInstanceState) {
        return prepareDecorView(onCreateView(
                getLayoutInflater(savedInstanceState), container,
                savedInstanceState));
    }
    
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        return super.onCreateView(inflater, container, savedInstanceState);
    }

    on the second onCreateView, LayoutInflater is from org.holoeverywhere.LayoutInflater.

    Then when AndroidAnnotations try to generate a Fragment that extends from HoloEverywhere's fragment, it override onCreateView with original android LayoutInflater (android.view.LayoutInflater)... and here is the "Cannot override the final method" error :)

  4. pyricau commented on Dec 6, 2012

    @pyricau
    Contributor

    Pull requests are welcome :)

  5. toadzky commented on Dec 6, 2012

    @toadzky

    i would love to, but i can't get the cloned repository to compile. i
    followed the directions, but it doesn't work. any suggestions?

    On Thu, Dec 6, 2012 at 2:56 AM, Pierre-Yves Ricau
    notifications@github.comwrote:

    Pull requests are welcome :)

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/411#issuecomment-11078506.

  6. mikegr commented on Dec 10, 2012

    @mikegr
    Contributor

    I have done some work: #429

  7. pyricau commented on Feb 28, 2013

    @pyricau
    Contributor

    @mikegr changes have been fixed and integrated. Could you guys please download the latest 3.0 snapshot and let us if it suits you ?

    A snapshot is available on the snapshot repository. Bundle available here

  8. gruessung commented on May 2, 2013

    @gruessung

    I have the same problem with onCreateView();
    I used the newest HoloEverywhere version.

  9. ajmalsalim commented on Jul 16, 2013

    @ajmalsalim

    Had the same issue! Solved!!
    Make sure you use import org.holoeverywhere.LayoutInflater;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions