Skip to content

Commit

Permalink
SuperTextView新增左右图标可自定义大小
Browse files Browse the repository at this point in the history
  • Loading branch information
lygttpod committed Jan 6, 2017
1 parent 2796ea5 commit abd1231
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions library/src/main/java/com/allen/library/SuperTextView.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ private void getAttr(AttributeSet attrs) {
maxEms = typedArray.getInt(R.styleable.SuperTextView_sMaxEms, maxEms);

leftIconWidth = typedArray.getDimensionPixelSize(R.styleable.SuperTextView_sLeftIconWidth,0);
leftIconHeight = typedArray.getDimensionPixelSize(R.styleable.SuperTextView_sLeftIconWidth,0);
leftIconHeight = typedArray.getDimensionPixelSize(R.styleable.SuperTextView_sLeftIconHeight,0);

rightIconWidth = typedArray.getDimensionPixelSize(R.styleable.SuperTextView_sLeftIconWidth,0);
rightIconHeight = typedArray.getDimensionPixelSize(R.styleable.SuperTextView_sLeftIconWidth,0);
rightIconWidth = typedArray.getDimensionPixelSize(R.styleable.SuperTextView_sRightIconWidth,0);
rightIconHeight = typedArray.getDimensionPixelSize(R.styleable.SuperTextView_sRightIconHeight,0);

typedArray.recycle();
}
Expand Down

0 comments on commit abd1231

Please sign in to comment.