Open ghost opened 9 years ago
The best option seems to be the ExpendableLayout expansion so far, if nothing is to be found until tomorrow night, we will stick on with it.
We should find a way to keep the server online in order to test the ExpendableLayout though.
If you are in campus then you can access to my PC.
Web-serives are up and running , URL : http://10.100.92.22:8080/Ozmopol/webresources/entities.post
Please be sure to make it till monday, we have to complete this step.
@arcadesmasher @firatkaptan @ugurcant
The ExpandableLayout is added onto the project, though there is a problem: The old StaggeredView was capable of displaying everything else automatically... Me and @firatkaptan weren't able to find a way for adding the main post and the comments of it on the ExpandableLayout.
There are two contents for the ExpandableLayoutView:
view_header.xml view_content.xml
The main post should be displayed via the "view_header" and the comments should be displayed via the "view_content".
Since that we're to have too many comments under a post, I've preferred implementing a list view onto the "view_content".
Yet now we're stuck..
Ok, could you please report the progress with a screenshot?
I can't post a scrshot atm because I can't receive the posts right now, but I can describe what I receive.
view_content.xml - there was nothing over there, I just added a ListView. view_header.xml - there was a TextView over there, whenever I clicked on it, it used to expand itself and display an EditText and a Button, on a white screen. I removed that TextView, and all I receive now is a white screen.
For now I couldn't find any alternatives for the ExpandableLayoutView, but...
Android has its own ExpandableListView library though?
Guys, I found some resources for Expendable Layout;
http://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/
I saw the second one on the internet yesteday as well, it's about the ExpandableListView.
Ok, Please implement the Post Content Page with native ExpandableListView. See Custom ExpandableListView.
This is the tutorial that'll be the most useful to us: @ugurcant
https://www.captechconsulting.com/blog/matt-serone/android-expandablelistview-magic
Although I was ill I had a long stare on the code chunk at the link above.
As far as I've understood, in order to use any kind of layout though, for expanding the posts in order to have their comments displayed, there may be needed changes required within the PostsAdaper, because the methods that Amin has implemented under our PostsAdapter (such as getView) are similar to the ones at this tutorial. (getChildView, etc.)
We need to search about alternatives for using ExpandableLayout in PostContent Page.
Please provide the alternatives with screenshots and then we will decide on which library we are going to use.
@arcadesmasher @firatkaptan @ugurcant