Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <resources>
- <declare-styleable name="WeightedLayout_LayoutParams">
- <attr name="horizontalWeights" format="string" />
- <attr name="verticalWeights" format="string" />
- </declare-styleable>
- </resources>
- final TypedArray arr=context.obtainStyledAttributes(attrs,R.styleable.WeightedLayout_LayoutParams);
- //...
- final String horizontalWeights=arr.getString(R.styleable.WeightedLayout_LayoutParams_horizontalWeights);
Add Comment
Please, Sign In to add comment