Skip to content

Instantly share code, notes, and snippets.

@marinoluck
Created April 22, 2015 22:54
Show Gist options
  • Save marinoluck/54bf129ee6c288d07535 to your computer and use it in GitHub Desktop.
Save marinoluck/54bf129ee6c288d07535 to your computer and use it in GitHub Desktop.
unscrambling word
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