Layout adjustments, removed unused field

pull/14/head
Sam Bosley 13 years ago
parent 0044ff23e2
commit 2e110cdb93

@ -44,7 +44,6 @@ public class PersonViewFragment extends TaskListFragment {
@Autowired ActFmPreferenceService actFmPreferenceService;
private AsyncImageView userImage;
private TextView userName;
private TextView userSubtitle;
private TextView userStatusButton;
@ -60,7 +59,6 @@ public class PersonViewFragment extends TaskListFragment {
if (user != null) {
userImage.setUrl(user.getValue(User.PICTURE));
userName.setText(user.getDisplayName());
userSubtitle.setText(user.getValue(User.STATUS));
userStatusButton.setText(user.getValue(User.STATUS));
} else {
@ -87,7 +85,6 @@ public class PersonViewFragment extends TaskListFragment {
protected void setUpUiComponents() {
super.setUpUiComponents();
userImage = (AsyncImageView) getView().findViewById(R.id.user_image);
userName = (TextView) getView().findViewById(R.id.user_name);
userSubtitle = (TextView) getView().findViewById(R.id.user_subtitle);
userStatusButton = (TextView) getActivity().findViewById(R.id.person_image);
}

@ -15,7 +15,7 @@
android:id="@+id/user_header"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="5dip"
android:padding="8dip"
android:background="#ff0000">
<com.todoroo.astrid.helper.AsyncImageView
@ -23,24 +23,15 @@
android:layout_height="50dip"
android:layout_width="50dip"
android:scaleType="fitCenter"
android:layout_marginRight="5dip"
android:layout_marginRight="8dip"
android:layout_centerVertical="true"/>
<TextView
android:id="@+id/user_name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/user_image"
android:layout_alignTop="@id/user_image"
android:text="USER NAME"/>
<TextView
android:id="@+id/user_subtitle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/user_name"
android:layout_toRightOf="@id/user_image"
android:text="Some text goes here. Blah blah blah bleeeeeeeep."/>
android:layout_alignTop="@id/user_image"
android:layout_toRightOf="@id/user_image"/>
</RelativeLayout>

Loading…
Cancel
Save