Skip to content
This repository has been archived by the owner on May 28, 2020. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhaotailang committed Mar 31, 2017
1 parent 9f22b2a commit c9aec15
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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("Can not get the latest status.");
vh.textViewStatus.setText("Electronic Notification Received: Your order has been processed and tracking will be updated soon.");
}
}
}
Expand Down
25 changes: 13 additions & 12 deletions wear/src/main/res/layout/item_package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,32 @@
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp">
android:layout_marginTop="@dimen/activity_vertical_margin"
android:layout_marginBottom="@dimen/activity_vertical_margin">

<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">

<android.support.wearable.view.CircledImageView
android:id="@+id/avatar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
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:layout_gravity="center"
app:circle_color="@color/blue"
app:circle_radius="24dp"
app:circle_radius_pressed="24dp"
app:circle_padding="2dp"
app:circle_border_width="0dp"
app:circle_border_color="@color/white"/>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/textViewAvatar"
android:textColor="@android:color/white"
android:text="P"
android:layout_gravity="center"
android:textSize="24sp"/>
android:textSize="@dimen/big_char_size"/>

</FrameLayout>

Expand All @@ -60,15 +62,14 @@
android:maxLines="1"
android:ellipsize="end"
android:textColor="@color/primary_text_dark"
android:text="Package2456" />
android:textSize="@dimen/primary_text_size" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textViewStatus"
android:textColor="@color/primary_text_dark"
android:textSize="12sp"
android:text="已到达:长沙理工大学"/>
android:textSize="@dimen/secondary_text_size" />

</LinearLayout>

Expand Down
4 changes: 4 additions & 0 deletions wear/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@
<dimen name="activity_vertical_margin">8dp</dimen>
<dimen name="activity_horizontal_margin">8dp</dimen>

<dimen name="big_char_size">24sp</dimen>
<dimen name="primary_text_size">14sp</dimen>
<dimen name="secondary_text_size">10sp</dimen>

</resources>

0 comments on commit c9aec15

Please sign in to comment.