Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jiang111 authored Oct 26, 2020
1 parent a0e4065 commit 05a78f1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,14 @@ viewpager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
```


* 重写EditText的时候,如果出现聚焦的时候无法弹出键盘,那就是defStyleAttr出现了问题
```
public CustomEditText(Context context, AttributeSet attrs) {
this(context, attrs, android.R.attr.editTextStyle); // 需要传入android.R.attr.editTextStyle 而不是0
}
```


#### 摘自[如下地址](https://github.com/jiang111/awesome-android-tips/blob/master/Authors.md)


Expand Down

0 comments on commit 05a78f1

Please sign in to comment.