public void setLabels ( FileChooserLabels labels ) { this . labels = labels ; // Verify if the buttons for add a file or select a folder has been modified. if ( labels != null ) { LinearLayout root = this . chooser . getRootLayout ( ) ; if ( labels . labelAddButton != null ) { Button addButton = ( Button ) root . findViewById ( R . id . buttonAdd ) ; addButton . setText ( labels . labelAddButton ) ; } if ( labels . labelSelectButton != null ) { Button okButton = ( Button ) root . findViewById ( R . id . buttonOk ) ; okButton . setText ( labels . labelSelectButton ) ; } } }
Defines the value of the labels .