Skip to content

Commit 018e524

Browse files
committed
Changing the height of row
Signed-off-by: Umair Khan <[email protected]>
1 parent feb689e commit 018e524

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

App/src/main/java/in/ac/dtu/subtlenews/MainFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public View getView(int position, View convertView, ViewGroup parent) {
276276
TextView newsTitle = (TextView) rowView.findViewById(R.id.title_news);
277277
TextView sourceName = (TextView) rowView.findViewById(R.id.source_news);
278278
TextView newsDate = (TextView) rowView.findViewById(R.id.date_news);
279-
newsItem.setLayoutParams(new AbsListView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 175));
279+
newsItem.setLayoutParams(new AbsListView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 70));
280280
sourceName.setTextColor(Color.GRAY);
281281
sourceName.setTextSize(10);
282282
newsDate.setTextColor(Color.GRAY);

App/src/main/res/layout/row_list.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
android:id="@+id/title_news"
1212
android:layout_width="match_parent"
1313
android:layout_height="wrap_content" />
14+
1415
<RelativeLayout
1516
android:layout_width="fill_parent"
1617
android:layout_height="wrap_content"
17-
android:orientation="horizontal">
18+
android:orientation="horizontal"
19+
android:layout_marginTop="7dp" >
1820

1921
<TextView
2022
android:id="@+id/date_news"

0 commit comments

Comments
 (0)