Skip to content

Commit

Permalink
Added listview in fragment_main.xml...removed textview hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
himakiran committed Nov 6, 2016
1 parent eac1941 commit 6d0b90c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 22 deletions.
16 changes: 0 additions & 16 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 10 additions & 6 deletions app/src/main/res/layout/fragment_main.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
Expand All @@ -10,9 +10,13 @@
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
<ListView
android:id="@+id/listview_forecast"
android:layout_width="match_parent"
android:layout_height="wrap_content">

</RelativeLayout>

</ListView>


</FrameLayout>
17 changes: 17 additions & 0 deletions app/src/main/res/layout/list_item_forecast.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/list_item_forecast"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:weightSum="1">

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:minHeight="?android:attr/listPreferredItemHeight"
android:text="Today - Sunny - 88/63" />


</LinearLayout>

0 comments on commit 6d0b90c

Please sign in to comment.