Revision b600ccd9
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/helpers/TransparentImageButton.java | ||
---|---|---|
37 | 37 |
|
38 | 38 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
39 | 39 |
|
40 |
public TransparentImageButton(Context context, int icon, int butWidth, int gravity)
|
|
40 |
public TransparentImageButton(Context context, int icon, int gravity, LinearLayout.LayoutParams params)
|
|
41 | 41 |
{ |
42 | 42 |
super(context); |
43 | 43 |
|
44 |
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(butWidth,LinearLayout.LayoutParams.MATCH_PARENT,1.0f); |
|
45 |
|
|
46 | 44 |
setLayoutParams(params); |
47 | 45 |
setPadding(0,0,0,0); |
48 | 46 |
setIconResource(icon); |
Also available in: Unified diff
Add info pane: part 1.