File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11apply plugin : ' com.android.application'
22
33android {
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
2121dependencies {
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'
Original file line number Diff line number Diff line change 66import android .support .design .widget .CollapsingToolbarLayout ;
77import android .support .v7 .app .AppCompatActivity ;
88import android .os .Bundle ;
9+ import android .support .v7 .widget .Toolbar ;
910import android .text .Editable ;
1011import android .text .TextUtils ;
1112import 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 );
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments