Created
April 22, 2015 22:54
-
-
Save marinoluck/54bf129ee6c288d07535 to your computer and use it in GitHub Desktop.
unscrambling word
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package vc.zl.quizchat.view.component.chat; | |
import vc.zl.quizchat.R; | |
import vc.zl.quizchat.domain.User; | |
import android.content.Context; | |
import android.view.LayoutInflater; | |
import android.widget.LinearLayout; | |
import android.widget.TextView; | |
public class UnscramblingWord extends LinearLayout { | |
private static final String TAG = "wrap_content"; | |
private TextView text; | |
private User Model; | |
public UnscramblingWord(Context context) { | |
super(context); | |
initializeLayoutBasics(context); | |
} | |
private void initializeLayoutBasics(Context context) { | |
setOrientation(HORIZONTAL); | |
final LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); | |
inflater.inflate(R.layout.unscrambling_word, this); | |
this.text = (TextView) findViewById(R.id.text_word); | |
} | |
public void setText(String text) | |
{ | |
this.text.setText(text); | |
} | |
public String getText() { | |
return text.getText().toString(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment