Fix for row heights, minor appearance tweaks

pull/14/head
Tim Su 14 years ago
parent 6b517ce9ce
commit f50bf703f4

@ -17,13 +17,13 @@
<!-- title --> <!-- title -->
<TextView android:id="@+id/title" <TextView android:id="@+id/title"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="70dip" android:layout_height="wrap_content"
android:layout_marginLeft="5dip" android:layout_marginLeft="5dip"
android:layout_toRightOf="@id/image" android:layout_toRightOf="@id/image"
android:paddingRight="30dp" android:paddingRight="30dp"
android:lines="2" android:lines="3"
android:singleLine="false" android:singleLine="false"
android:textSize="20sp" android:textSize="16sp"
android:textStyle="bold" android:textStyle="bold"
android:gravity="center_vertical" android:gravity="center_vertical"
android:text="Probiotic - Wikepedia, the free encyclopedia" android:text="Probiotic - Wikepedia, the free encyclopedia"
@ -32,13 +32,13 @@
<!-- url --> <!-- url -->
<TextView android:id="@+id/subtitle" <TextView android:id="@+id/subtitle"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="35dip" android:layout_height="wrap_content"
android:layout_alignParentBottom="true" android:layout_below="@id/title"
android:layout_toRightOf="@id/image" android:layout_toRightOf="@id/image"
android:layout_marginLeft="5dip" android:layout_marginLeft="5dip"
android:paddingRight="30dp" android:paddingRight="30dp"
android:singleLine="true" android:singleLine="true"
android:textSize="16sp" android:textSize="14sp"
android:text="en.wikipedia.org" android:text="en.wikipedia.org"
android:gravity="center_vertical" /> android:gravity="center_vertical" />

@ -1179,7 +1179,6 @@ public final class TaskEditFragment extends Fragment implements
case TAB_VIEW_UPDATES: case TAB_VIEW_UPDATES:
return editNotes; return editNotes;
case TAB_VIEW_WEB_SERVICES: case TAB_VIEW_WEB_SERVICES:
setViewHeightBasedOnChildren(webServices);
return webServices; return webServices;
} }
@ -1193,8 +1192,10 @@ public final class TaskEditFragment extends Fragment implements
switch(getTabForPosition(position)) { switch(getTabForPosition(position)) {
case TAB_VIEW_MORE: case TAB_VIEW_MORE:
view = moreControls; view = moreControls;
break;
case TAB_VIEW_UPDATES: case TAB_VIEW_UPDATES:
view = editNotes; view = editNotes;
break;
case TAB_VIEW_WEB_SERVICES: case TAB_VIEW_WEB_SERVICES:
view = webServices; view = webServices;
} }

@ -101,7 +101,7 @@ public class WebServicesView extends LinearLayout {
Context.LAYOUT_INFLATER_SERVICE); Context.LAYOUT_INFLATER_SERVICE);
rowParams = new LinearLayout.LayoutParams( rowParams = new LinearLayout.LayoutParams(
Math.round(metrics.widthPixels * 0.8f), Math.round(metrics.widthPixels * 0.75f),
Math.round(ROW_HEIGHT * metrics.density)); Math.round(ROW_HEIGHT * metrics.density));
rowParams.rightMargin = Math.round(10 * metrics.density); rowParams.rightMargin = Math.round(10 * metrics.density);

Loading…
Cancel
Save