I want to create android application that read RSS feed from some websites. My application should be like this picture below. I don't know how to create timeline UI like this. Should i use webView to create IU like this, or there's any other approach ?
Take a look at Card UI, this could get your job done.
https://developer.android.com/training/material/lists-cards.html
There is no significance of using a webView for a timeline layout. You would (almost) definitely be using a listView or (even better) recyclerView.
Additionally, to comply with new material design guidelines, you can use cardView. see Creating lists and cards.
These are basic design elements. You should at least be familiar with listView implementations if you intend to create such a UI. Here is a nice tutorial about using a listView.
Vogella - Using lists in Android
Related
An app includes a feed like Twitter or Instagram.
Tried it with the RecyclerView.
Would Litho (fblitho.com) be a good alternative to make a good feed with text, videos and pictures? Or maby other libraries?
I would suggest learning more about RecyclerView before trying to move onto different libraries. Even if you do end up using another library, it's always good to have a better understanding of what it's being built on top of.
RecyclerView is the best way to handle feeds like you're looking to build. Even with images, or videos.
If you have any specific questions about RecyclerView, you should ask them here. For example, why does RecyclerView not fit your current needs?
I strongly recommend you to take a look at epoxy. As it description says, it is an Android library for building complex screens in a RecyclerView. Models are automatically generated from custom views or databinding layouts via annotation processing.
Wish it can help you.
I am developing an android app similar to other social network app such as Facebook , Google plus. Similarly my newsfeed ListView have multiple views type and also complex. Even though i am using ViewBinder , my list view feel laggy as i add in more view types. There is a clever alternative solution here. They split each list item into multiple components such as header , content , footer and so. I planned to adapt and find it difficult to start code on my own. Is there any working code available out there similar to this technique?
Consider using a RecyclerView. It's a little more work than using a ListView but it should handle the complexity you're looking for.
http://developer.android.com/training/material/lists-cards.html
I'm working on an Android application and one of the features is a list of upcoming events. I need to be able to generate a 'card' so to speak for each of these events and place them in to a scroll view. This would be simple if I knew how many there were going to be and could prepopulate an axml file but I must populate the scrollview programmatically based off the parse of an xml file on the web so that the client can keep it updated. I've searched everything I can think and the best I can find is a custom list view which I do not think will provide the results needed. I've uploaded an example of what I'm trying to do to my google drive and linked to it below. I should also mention my background is completely C# and I've only been working with java for the last two weeks or so, so if anyone could provide a working code example I would be most appreciative.
https://drive.google.com/file/d/0B8alYNlu3SuoSEk0bE55cDhXWVE/view?usp=sharing
I think that basically what you need to do is to implement a RecyclerView using a LinearLayoutManager (this would represent basically a list) with CardViews as the items or just regular layouts designed by you, the CardView will just make your life easier if you need the Material Design cards appearance.
You have many different tutorials as how to implement this, as you can see here:
http://www.binpress.com/tutorial/android-l-recyclerview-and-cardview-tutorial/156
You'll see there that it's exactly what you need but with smaller Cards.
Let me know if this helps.
I'm fairly new to Android development. I'm completely stuck as to how to achieve my task. I want to display news (just some text) in a news feed. Is it possible to do this easily? For example like Facebook/Twitter's simple news feed, or even like Google Now's cards.
Should I achieve this through Android's components or should I use HTML?
well its simple, you could use ListView with custom adapter to achieve a news feed layout. look through ListView examples and guides:
Android Guide to ListView
vogella guide.
you'll find a lot of guides regards this.. just google them.
I am in the process of porting over an iOS application to the Android platform. I have no experience in this platform and would like to ask for some advice on how best to structure the app. On the iOS end, the app is simply a tabviewcontroller with 3 tabs, each with a list view. The list view is populated with a http request to a server requesting user ids and user information. How can i get these components working in Android?
Well, you'll need a few components to get it done.
If you know nothing at all about android, before getting started I recommend you learn the basic about layouts, activities and views following this well written guide (Follow the getting started section):
http://developer.android.com/training/index.html
For starters, you need your UI layout to have tabs, I recommend following this guide:
http://developer.android.com/guide/topics/ui/actionbar.html#Tabs
Second, you'll need to have a ListView component in each tab. Use this simple xml to define a ListView component in your layout XML files (this example will take up the entire tab):
<ListView android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="#+id/listview"
</ListView>
And here's a good guide that explains how to fill the ListView with data using an Adapter:
http://developer.android.com/guide/topics/ui/declaring-layout.html#AdapterViews
Third, you'll need a component that downloads the information from the web server and updates the Adapter. This must be on a separate thread, you're not allowed to do network operations on the UI thread in android (to keep the UI available for user actions). You can use AsyncTask to do that, following this guide:
http://developer.android.com/training/basics/network-ops/connecting.html
Now, how you parse the data is up to you, but if possible I recommend using JSON and the JSONObject class which makes parsing pretty easy.
Good luck and welcome to android!