Skip to content

Commit

Permalink
完善demo
Browse files Browse the repository at this point in the history
  • Loading branch information
lygttpod committed Jun 5, 2019
1 parent eeb30b0 commit 22dfd6c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app/src/main/java/com/allen/supertextview/ClickActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.Toast;
Expand Down Expand Up @@ -94,6 +95,21 @@ public void onClickListener(ImageView imageView) {
@Override
public void onClickListener(ImageView imageView) {
}
}).setLeftTextGroupClickListener(new SuperTextView.OnLeftTextGroupClickListener() {
@Override
public void onClickListener(View view) {
Toast.makeText(ClickActivity.this, "点击左边text区域", Toast.LENGTH_SHORT).show();
}
}).setCenterTextGroupClickListener(new SuperTextView.OnCenterTextGroupClickListener() {
@Override
public void onClickListener(View view) {
Toast.makeText(ClickActivity.this, "点击中间text区域", Toast.LENGTH_SHORT).show();
}
}).setRightTextGroupClickListener(new SuperTextView.OnRightTextGroupClickListener() {
@Override
public void onClickListener(View view) {
Toast.makeText(ClickActivity.this, "点击右边text区域", Toast.LENGTH_SHORT).show();
}
});

superTextView_cb.setOnSuperTextViewClickListener(new SuperTextView.OnSuperTextViewClickListener() {
Expand Down

0 comments on commit 22dfd6c

Please sign in to comment.