Skip to content

Commit 84393ae

Browse files
author
ivan.navas
committed
Implement getText function in Buttons
1 parent 196e304 commit 84393ae

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

MaterialDesign/src/com/gc/materialdesign/views/ButtonFlat.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,8 @@ public TextView getTextView() {
108108
return textButton;
109109
}
110110

111+
public String getText(){
112+
return textButton.getText().toString();
113+
}
114+
111115
}

MaterialDesign/src/com/gc/materialdesign/views/ButtonRectangle.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,8 @@ public TextView getTextView() {
139139
return textButton;
140140
}
141141

142+
public String getText(){
143+
return textButton.getText().toString();
144+
}
145+
142146
}

0 commit comments

Comments
 (0)