 |
การเรียก Method ใน Fregment ให้ทำงานที่ต้องการต้องเรียกแบบไหนหรอคะ |
|
 |
|
|
 |
 |
|
Code (Android-Java)
public TextView text;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.dabt_main, container, false);
text = (TextView) rootView.findViewById(R.id.debtresultTv);
Data();
return rootView;
}
private void Data() {
Toast.makeText(getActivity(), "ShowInfo" , Toast.LENGTH_LONG).show();
text.setText("Test");
}
}
|
ประวัติการแก้ไข 2014-02-16 12:36:21 2014-02-16 12:38:20 2014-02-16 12:40:06
 |
 |
 |
 |
Date :
2014-02-16 12:36:08 |
By :
blacklion |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|