Skip to content

Commit f204a1e

Browse files
committed
更新效果图
1 parent f7008b5 commit f204a1e

5 files changed

Lines changed: 13 additions & 12 deletions

File tree

.DS_Store

0 Bytes
Binary file not shown.

CommentWithReplyList/app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 26
4+
compileSdkVersion 25
55
defaultConfig {
66
applicationId "com.moos.example"
77
minSdkVersion 21
8-
targetSdkVersion 26
8+
targetSdkVersion 25
99
versionCode 1
1010
versionName "1.0"
1111
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -20,10 +20,10 @@ android {
2020

2121
dependencies {
2222
implementation fileTree(include: ['*.jar'], dir: 'libs')
23-
implementation 'com.android.support:appcompat-v7:26.1.0'
23+
implementation 'com.android.support:appcompat-v7:25.1.0'
2424
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
2525
testImplementation 'junit:junit:4.12'
26-
implementation 'com.android.support:design:26.1.0'
26+
implementation 'com.android.support:design:25.1.0'
2727
implementation 'de.hdodenhof:circleimageview:2.1.0'
2828
implementation 'com.github.bumptech.glide:glide:3.7.0'
2929
implementation 'com.google.code.gson:gson:2.7'

CommentWithReplyList/app/src/main/java/com/moos/example/MainActivity.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import android.support.design.widget.CollapsingToolbarLayout;
77
import android.support.v7.app.AppCompatActivity;
88
import android.os.Bundle;
9+
import android.support.v7.widget.Toolbar;
910
import android.text.Editable;
1011
import android.text.TextUtils;
1112
import android.text.TextWatcher;
@@ -105,9 +106,9 @@ protected void onCreate(Bundle savedInstanceState) {
105106
}
106107

107108
private void initView() {
108-
toolbar = findViewById(R.id.toolbar);
109-
expandableListView = findViewById(R.id.detail_page_lv_comment);
110-
bt_comment = findViewById(R.id.detail_page_do_comment);
109+
toolbar = (Toolbar) findViewById(R.id.toolbar);
110+
expandableListView = (CommentExpandableListView) findViewById(R.id.detail_page_lv_comment);
111+
bt_comment = (TextView) findViewById(R.id.detail_page_do_comment);
111112
bt_comment.setOnClickListener(this);
112113
setSupportActionBar(toolbar);
113114
getSupportActionBar().setDisplayHomeAsUpEnabled(true);

CommentWithReplyList/app/src/main/java/com/moos/example/adapter/CommentExpandAdapter.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ private class GroupHolder{
157157
private TextView tv_name, tv_content, tv_time;
158158
private ImageView iv_like;
159159
public GroupHolder(View view) {
160-
logo = view.findViewById(R.id.comment_item_logo);
161-
tv_content = view.findViewById(R.id.comment_item_content);
162-
tv_name = view.findViewById(R.id.comment_item_userName);
163-
tv_time = view.findViewById(R.id.comment_item_time);
164-
iv_like = view.findViewById(R.id.comment_item_like);
160+
logo = (CircleImageView) view.findViewById(R.id.comment_item_logo);
161+
tv_content = (TextView) view.findViewById(R.id.comment_item_content);
162+
tv_name = (TextView) view.findViewById(R.id.comment_item_userName);
163+
tv_time = (TextView) view.findViewById(R.id.comment_item_time);
164+
iv_like = (ImageView) view.findViewById(R.id.comment_item_like);
165165
}
166166
}
167167

-467 KB
Loading

0 commit comments

Comments
 (0)