1

I would want to know that how Instagram application listing/showing feed page?

Here is a screenshot: (I found it via Google and resized via tinypic.com. Here is the original file: http://www.digitaltrends.com/wp-content/uploads/2012/04/screenshotsjvc.jpg)

instagram screenshots

I am talking about 1st and 2nd screens.

As you know, when you go your feed (2nd screen) you can slide down and view other shares.

Every share has these:

  • Owner picture and username, shared time, a photo and a few things.

How to wrap all these datas in one control/layout in order to multiply?

Which control(s) (LinearLayout, Fragment, TableLayout and its TableRow(s)) are relevant for this kind of application?

I am not an expert Android application developer, that's why I want to know. I have confusion about that.

Thanks in advance.

4

1 に答える 1

2

私の理解によると、画面 1 と画面 2 はおそらく異なるフラグメントです (ここでフラグメントについて見てください)。最初のフラグメントにはGridView (または同様のコントロール) が含まれ、2番目のフラグメントにはListViewが含まれます。

ListViewから始めることをお勧めします。基本的に、単一のアイテムのレイアウトを開発し (ここでは単一のRelativeLayoutが適切であると思います)、それをアダプターのアイテムとして使用する必要があります。

于 2013-05-16T02:33:42.517 に答える