Comments (5)
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.
@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.
Hi Emme, I'll check this issue out tomorrow if you don't mind. Thanks. Have a good evening.
from material-about-library.
Sure, thank you. Good evening.
from material-about-library.
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:
- 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.
- 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)
- AboutFragment: FATAL EXCEPTION HOT 3
- Migrating from 2.4.2 to 3.x.x HOT 14
- Remove AppCompat styles HOT 5
- Icons show up as black boxes in 3.1.2 but not 2.4.2 MaterialAboutActionItem Builder HOT 1
- Outlined Card Toggle
- MaterialAboutActionItem receiving null context in some devices
- Does it support badge at item's icon or text?
- Bottom navigation HOT 1
- ScrollView
- Cards not updating with dynamic content HOT 4
- Override icon tint? HOT 2
- Add AndroidX support HOT 18
- Issue with LTR text on RTL devices
- Making This Library Available to Developers Using Xamarin.Android HOT 3
- Replace String Comparisons with Direct Field Comparisons
- NoClassDefFoundError HOT 13
- Build warnings: 'string too large to encode using UTF-8...' HOT 7
- Remove CardView dependency in favour of MaterialCardView from Material Components HOT 1
- Support for Material Components theming system/DayNight styles HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-about-library.