Comments (5)
Please take a look on https://github.com/StevenRudenko/ActionsContentView/blob/master/ActionsContentViewExample/res/values/arrays.xml
There are arrays with names: actions_icons, actions_names, actions_links. actions_links holds information in Uri format about content type. You will see category://bookmarks and category://settings there.
Next step is https://github.com/StevenRudenko/ActionsContentView/blob/master/ActionsContentViewExample/src/sample/actionscontentview/adapter/ActionsAdapter.java
There are VIEW_TYPE_CATEGORY, VIEW_TYPE_SETTINGS and VIEW_TYPE_SITES. We can define content type by Uri: take a look public int getItemViewType(int position) method.
Last point is public View getView(int position, View convertView, ViewGroup parent) method where views are inflated depending on content type.
I hope this would help you to find answer for your question.
from actionscontentview.
Sick.
Thanks bro. :)
from actionscontentview.
One more question if you don't mind.
I know this one may be a lottt to cover, so if you don't have time, I understand.
I have my app here: https://github.com/MBQ-/MBQs-CPU-Guide
As I'm still very new at Java, How would I re-route parts of the ListView to the ActionsAdapter? Cause, y'know, you cant extend a FragmentActivity and implement BaseAdapter. ;p
Again, if you dont have time, Ill do what I can to find the answer, but either way.. thanks a TON for your help already bro.
from actionscontentview.
I think you need create separate Adapter class and use it at you Activity.
from actionscontentview.
Alright. Looks like I have some researching to do!
Thanks again for your help.
from actionscontentview.
Related Issues (20)
- Disable Swipe HOT 5
- How to Link to activity HOT 8
- Slide ActionBar HOT 3
- I don't know how to use it. could you introduce me some? HOT 1
- Usage with Android Studio?? HOT 2
- How to call WebView and call a specific html file? HOT 3
- Actions view and content view show both
- ActionsContentView with googlemaps HOT 2
- crash while quick tapping on action items
- java.lang.NoClassDefFoundError: shared.ui.actionscontentview.R$styleable HOT 1
- is there a way to get the width of the actionlist that is visible in real time? HOT 1
- i get actions above content, how can i fix this? HOT 1
- java.lang.NullPointerException HOT 1
- How to Re-size Icon size???
- How to prevent click outside ActionView when it is open ?
- ViewPager on content view doesn't show anything HOT 2
- Shadow blocks nav items in Android 5.0(L)
- Feature to be implemented in future - right side sliding support! HOT 1
- Fatal Exception: java.lang.NullPointerException
- how to implementing right side sliding support HOT 2
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 actionscontentview.