Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
1.02 Add list item forecast layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyla committed Mar 4, 2015
1 parent 99486e9 commit e9f367e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/src/main/res/layout/list_item_forecast.xml
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>

<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight"
android:gravity="center_vertical"
android:id="@+id/list_item_forecast_textview" />

4 comments on commit e9f367e

@AsmaRasmi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why I use another layout for list_item_forecast while I can use a TextView within FrameLayout itself which include my ListView

@bavly
Copy link

@bavly bavly commented on e9f367e Nov 23, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have the same Question what is the point of new layout that made ?

@hyperov
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it would be easier to custom the TextView in textsize and color and padding etc..

@haroonrashid235
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

list_item_forecast is added in a separate file so that adapter can reference the view that it has to show while populating listview with data.

Please sign in to comment.