OZMOPOL / OZMO-ANDROID

We will be designing according to Google Material Design. http://www.google.com/design/spec/material-design/introduction.html
GNU General Public License v2.0
0 stars 1 forks source link

Post Contents Page #10

Open ghost opened 9 years ago

ghost commented 9 years ago

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

arcadesmasher commented 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.

ghost commented 9 years ago

If you are in campus then you can access to my PC.

ghost commented 9 years ago

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

arcadesmasher commented 9 years ago

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..

ghost commented 9 years ago

Ok, could you please report the progress with a screenshot?

arcadesmasher commented 9 years ago

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.

arcadesmasher commented 9 years ago

For now I couldn't find any alternatives for the ExpandableLayoutView, but...

Android has its own ExpandableListView library though?

ugurcant commented 9 years ago

Guys, I found some resources for Expendable Layout;

http://androidexample.com/Custom_Expandable_ListView_Tutorial_-_Android_Example/index.php?view=article_discription&aid=107&aaid=129

http://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/

arcadesmasher commented 9 years ago

I saw the second one on the internet yesteday as well, it's about the ExpandableListView.

ghost commented 9 years ago

Ok, Please implement the Post Content Page with native ExpandableListView. See Custom ExpandableListView.

arcadesmasher commented 9 years ago

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.)