Connect with us

How to extend 2 classes when using fragment in app

Discussion in 'Microcontrollers, Programming and IoT' started by Lemon_Foam, Apr 17, 2018.

Scroll to continue with content
  1. Lemon_Foam


    Sep 18, 2017
    I'm building an app by using fragment with layout shown below. When i adding java class to tab 1 and tab 2, my app work as normal which allow me to slide between tab 1 and 2. When i try to add my third class into tab 3, there is an error appear which state that it cannot extend 2 class at once. Can anybody help me to solve this problem?

    The first picture is code use for tab 1
    The second picture is code use for tab 2
    The third picture is code use for tab 3
    The last picture is layout of my app

    tab2.PNG tab1.PNG tab3.PNG layout of app.PNG
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day