GithubHelp home page GithubHelp logo

Comments (5)

csaq7151 avatar csaq7151 commented on May 27, 2024 1

ok I will try it now:
No 1 is not working as I get this log
E/RecyclerView: No adapter attached; skipping layout

I will try No2 now and let you know how it goes soon

from material-about-library.

csaq7151 avatar csaq7151 commented on May 27, 2024 1

@daniel-stoneuk thanks for your help.
Got it working now with the fragment.

Maybe you could mention in the readme to remove own contentViews like setcontentView in the Activity or the .inflate in the Fragment for this library to display its cards.
Because when I removed the setContent it was working so I think that was the error.

Thanks again. Finally I can move on with my development ;)

from material-about-library.

daniel-stoneuk avatar daniel-stoneuk commented on May 27, 2024

Hi Emme, I'll check this issue out tomorrow if you don't mind. Thanks. Have a good evening.

from material-about-library.

csaq7151 avatar csaq7151 commented on May 27, 2024

Sure, thank you. Good evening.

from material-about-library.

daniel-stoneuk avatar daniel-stoneuk commented on May 27, 2024

Hi @csaq7151.

I think I understand your issue - it looks like you're trying to modify the layout of the activity. There are a few different methods of doing this:

  1. Rename the toolbar id to @+id/mal_toolbar and place the following recyclerview where you want the view to appear:
<android.support.v7.widget.RecyclerView
        android:id="@+id/mal_recyclerview"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:clipToPadding="false"
        android:paddingBottom="@dimen/mal_baseline_half"
        />

I'm not sure if this will actually work without any extra changes to your activity, so I would recommend the second option.

  1. Use a fragment in your own activity
  • Drop the MaterialAboutActivity inheritance and design your activity how you like.
  • Don't use a nested scrollview and simply replace the area in which you want the scrolling list with a fragment like seen in the demos.

Let me know how it goes!
Thanks

from material-about-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.