diff --git a/wear/src/main/java/io/github/marktony/espresso/PackageRecyclerAdapter.java b/wear/src/main/java/io/github/marktony/espresso/PackageRecyclerAdapter.java index 29ec36c..1c18e36 100644 --- a/wear/src/main/java/io/github/marktony/espresso/PackageRecyclerAdapter.java +++ b/wear/src/main/java/io/github/marktony/espresso/PackageRecyclerAdapter.java @@ -57,7 +57,7 @@ public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { if (p.getData() != null && p.getData().size() > 0) { vh.textViewStatus.setText(p.getData().get(0).getContext()); } else { - vh.textViewStatus.setText("Electronic Notification Received: Your order has been processed and tracking will be updated soon."); + vh.textViewStatus.setText("Can not get the latest status."); } } } diff --git a/wear/src/main/res/layout/item_package.xml b/wear/src/main/res/layout/item_package.xml index 8f43c98..1941576 100644 --- a/wear/src/main/res/layout/item_package.xml +++ b/wear/src/main/res/layout/item_package.xml @@ -20,32 +20,30 @@ android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginTop="@dimen/activity_vertical_margin" - android:layout_marginBottom="@dimen/activity_vertical_margin"> + android:layout_marginTop="8dp" + android:layout_marginBottom="8dp"> + android:id="@+id/avatar" + android:src="@android:color/holo_blue_light" + app:circle_color="@android:color/holo_blue_light" + app:circle_border_width="2dp" + app:circle_radius_pressed="40dp"/> + android:textSize="24sp"/> @@ -62,14 +60,15 @@ android:maxLines="1" android:ellipsize="end" android:textColor="@color/primary_text_dark" - android:textSize="@dimen/primary_text_size" /> + android:text="Package2456" /> + android:textSize="12sp" + android:text="已到达:长沙理工大学"/> diff --git a/wear/src/main/res/values/dimens.xml b/wear/src/main/res/values/dimens.xml index e1b835c..be29994 100644 --- a/wear/src/main/res/values/dimens.xml +++ b/wear/src/main/res/values/dimens.xml @@ -20,8 +20,4 @@ 8dp 8dp - 24sp - 14sp - 10sp - \ No newline at end of file