forked from buckyroberts/Source-Code-from-Tutorials
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBottomPictureFragment.java
More file actions
30 lines (23 loc) · 914 Bytes
/
Copy pathBottomPictureFragment.java
File metadata and controls
30 lines (23 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package aybars.arslan.fragments;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
public class BottomPictureFragment extends Fragment {
private static TextView txtTop;
private static TextView txtBottom;
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.bottom_picture_fragment, container, false);
txtTop = (TextView)view.findViewById(R.id.txtTop);
txtBottom = (TextView)view.findViewById(R.id.txtBottom);
return view;
}
public void setClickedText(String top, String bottom){
txtTop.setText(top);
txtBottom.setText(bottom);
}
}