Skip to content

Commit

Permalink
<attr name="orientation">
Browse files Browse the repository at this point in the history
            <enum name="horizontal" value="0" />
            <enum name="vertical" value="1" />
        </attr>
  • Loading branch information
gzeinnumer committed Mar 26, 2021
1 parent d60ff11 commit 46f8ecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dr/src/main/java/com/gzeinnumer/dr/DynamicRadioButton.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public <T> DynamicRadioButton setItemList(List<T> items) {
private <T> void initView(List<T> items) {
TypedArray attributes = _context.obtainStyledAttributes(_attrs, R.styleable.DynamicCheckBox);

if (attributes.getInt(R.styleable.DynamicCheckBox_orientation, 1) == 0)
if (attributes.getInt(R.styleable.DynamicCheckBox_orientationRadioButton, 1) == 0)
_orientation = HORIZONTAL;

setOrientation(_orientation);
Expand Down

0 comments on commit 46f8ecc

Please sign in to comment.