Skip to content Skip to sidebar Skip to footer

How Do I Create A Listview Like The Youtube App?

I've been working on an Android Application, and one of the major issues i've been trying to deal with is customization of a ListView or GridView. Does anybody know how to make my

Solution 1:

The most important thing to apply this kind of design is properly implement adapter, which will represent every piece of data (one video in your situation).

More or less in for situation it will look like:

<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="wrap_content">

//you main picture
  <ImageViewandroid:layout_width="fill_parent"android:layout_height="fill_parent">

  //layout to place other info like number of likes, comments, author etc.
      <RelativeLayoutandroid:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_gravity="center">

   //number of likes
          <TextView... >

   //number of comments
          <TextView... >

    ...

      </RelativeLayout></RelativeLayout>

Set those views in positions, which suit you.

Post a Comment for "How Do I Create A Listview Like The Youtube App?"