| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package com.android.bidi; |
| 18 |
|
| 19 |
import android.app.Fragment; |
| 20 |
import android.os.Bundle; |
| 21 |
import android.view.LayoutInflater; |
| 22 |
import android.view.View; |
| 23 |
import android.view.ViewGroup; |
| 24 |
import android.widget.TextView; |
| 25 |
|
| 26 |
public class BiDiTestTextViewDrawablesLtr extends Fragment { |
| 27 |
|
| 28 |
private View currentView; |
| 29 |
private TextView textViewError; |
| 30 |
|
| 31 |
@Override |
| 32 |
public View onCreateView(LayoutInflater inflater, ViewGroup container, |
| 33 |
Bundle savedInstanceState) { |
| 34 |
currentView = inflater.inflate(R.layout.textview_drawables_ltr, container, false); |
| 35 |
return currentView; |
| 36 |
} |
| 37 |
|
| 38 |
@Override |
| 39 |
public void onViewCreated(View view, Bundle savedInstanceState) { |
| 40 |
super.onViewCreated(view, savedInstanceState); |
| 41 |
|
| 42 |
textViewError = (TextView) currentView.findViewById(R.id.textview_error); |
| 43 |
textViewError.setError("Error!!"); |
| 44 |
} |
| 45 |
} |