Skip to content

Commit a0a6d95

Browse files
committed
Client:规范命名
1 parent d1f78f8 commit a0a6d95

3 files changed

Lines changed: 10 additions & 12 deletions

File tree

‎APIJSON(Android)/APIJSON(ADT)/APIJSONApp/APIJSONApp/res/layout/moment_view.xml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
android:padding="10dp" >
1212

1313
<RelativeLayout
14-
android:id="@+id/rlWorkShowItemHead"
15-
android:layout_width="@dimen/work_view_head_width"
16-
android:layout_height="@dimen/work_view_head_height"
17-
android:paddingRight="@dimen/work_view_head_padding_right" >
14+
android:id="@+id/rlMomentViewItemHead"
15+
android:layout_width="@dimen/moment_view_head_width"
16+
android:layout_height="@dimen/moment_view_head_height"
17+
android:paddingRight="@dimen/moment_view_head_padding_right" >
1818

1919
<ImageView
2020
android:id="@+id/ivMomentViewHead"
@@ -25,8 +25,8 @@
2525

2626
<LinearLayout
2727
style="@style/ll_vertical_match_wrap"
28-
android:layout_below="@+id/rlWorkShowItemHead"
29-
android:layout_toRightOf="@+id/rlWorkShowItemHead"
28+
android:layout_below="@+id/rlMomentViewItemHead"
29+
android:layout_toRightOf="@+id/rlMomentViewItemHead"
3030
android:gravity="left" >
3131

3232
<LinearLayout

‎APIJSON(Android)/APIJSON(ADT)/APIJSONApp/APIJSONApp/res/values/dimens.xml‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
<resources>
33

44
<dimen name="qrcode_size">200dp</dimen>
5-
<dimen name="show_view_head_size">60dp</dimen>
6-
<dimen name="show_view_head_padding_right">15dp</dimen>
7-
<dimen name="work_view_head_width">60dp</dimen>
8-
<dimen name="work_view_head_height">50dp</dimen>
9-
<dimen name="work_view_head_padding_right">10dp</dimen>
5+
<dimen name="moment_view_head_width">60dp</dimen>
6+
<dimen name="moment_view_head_height">50dp</dimen>
7+
<dimen name="moment_view_head_padding_right">10dp</dimen>
108

119
</resources>

‎APIJSON(Android)/APIJSON(ADT)/APIJSONApp/APIJSONApp/src/apijson/demo/client/view/MomentView.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ private void setPicture(List<String> pictureList) {
281281

282282
final int gridViewHeight = (int) (ScreenUtil.getScreenSize(context)[0]
283283
- convertView.getPaddingLeft() - convertView.getPaddingRight()
284-
- getDimension(R.dimen.work_view_head_width));
284+
- getDimension(R.dimen.moment_view_head_width));
285285
try {
286286
if (pictureNum >= 7) {
287287
gvMomentView.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, gridViewHeight));

0 commit comments

Comments
 (0)