42540717b8a147e42095b54R7">7
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
import com.electric.chargingpile.R;
import com.electric.chargingpile.util.ToastUtil;
import com.electric.chargingpile.util.Util;
public class ChatFragment extends Fragment implements View.OnClickListener {
private static final String TAG = "ChatFragment";
private static final String ARG_POSITION = "arg_position";
public static ChatFragment newInstance(int position) {
Bundle args = new Bundle();
args.putSerializable(ARG_POSITION, position);
ChatFragment fragment = new ChatFragment();
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
int position = getArguments().getInt(ARG_POSITION);
Log.d(TAG, "onCreatexxxx: " + position);
}
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_chat, container, false);
init(view);
return view;
}
private void init(View view) {
// view.findViewById(R.id.button2).setOnClickListener(this);
}
@Override
public void onResume() {
super.onResume();
}
@Override
public void onDestroy() {
super.onDestroy();
Log.d(TAG, "onDestroy: ");
}
@Override
public void onDestroyView() {
super.onDestroyView();
Log.d(TAG, "onDestroyView: ");
}
@Override
public void onClick(View view) {
switch (view.getId()) {
// case R.id.button2:
// ToastUtil.showToast(getContext(), "come on ", Toast.LENGTH_SHORT);
// break;
}
}
}
|
||
| 1 | 1 |
|
| 2 | 2 |
|
| 3 |
|
|
| 3 | 4 |
|
| 4 | 5 |
|
| 5 | 6 |
|
| 6 | 7 |
|
| 8 |
|
|
| 7 | 9 |
|
| 8 | 10 |
|
| 9 | 11 |
|
|
||
| 18 | 20 |
|
| 19 | 21 |
|
| 20 | 22 |
|
| 21 |
|
|
| 22 |
|
|
| 23 | 23 |
|
| 24 | 24 |
|
| 25 | 25 |
|
|
||
| 36 | 36 |
|
| 37 | 37 |
|
| 38 | 38 |
|
| 39 |
|
|
| 40 | 39 |
|
| 41 | 40 |
|
| 42 |
|
|
| 43 | 41 |
|
| 44 | 42 |
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 | 43 |
|
| 52 | 44 |
|
| 53 | 45 |
|
|
||
| 65 | 57 |
|
| 66 | 58 |
|
| 67 | 59 |
|
| 60 |
|
|
| 61 |
|
|
| 68 | 62 |
|
| 69 | 63 |
|
| 70 | 64 |
|
|
||
| 126 | 120 |
|
| 127 | 121 |
|
| 128 | 122 |
|
| 123 |
|
|
| 124 |
|
|
| 125 |
|
|
| 129 | 126 |
|
| 130 |
|
|
| 131 |
|
|
| 132 |
|
|
| 133 |
|
|
| 134 |
|
|
| 135 |
|
|
| 136 |
|
|
| 137 |
|
|
| 138 |
|
|
| 139 |
|
|
| 140 |
|
|
| 141 |
|
|
| 142 |
|
|
| 143 |
|
|
| 144 |
|
|
| 145 |
|
|
| 146 |
|
|
| 147 |
|
|
| 148 |
|
|
| 149 |
|
|
| 150 |
|
|
| 151 | 127 |
|
| 152 |
|
|
| 153 |
|
|
| 154 |
|
|
| 155 |
|
|
| 156 |
|
|
| 157 |
|
|
| 128 |
|
|
| 129 |
|
|
| 130 |
|
|
| 131 |
|
|
| 132 |
|
|
| 133 |
|
|
| 134 |
|
|
| 135 |
|
|
| 136 |
|
|
| 137 |
|
|
| 138 |
|
|
| 139 |
|
|
| 140 |
|
|
| 141 |
|
|
| 142 |
|
|
| 143 |
|
|
| 144 |
|
|
| 145 |
|
|
| 146 |
|
|
| 147 |
|
|
| 148 |
|
|
| 149 |
|
|
| 150 |
|
|
| 151 |
|
|
| 152 |
|
|
| 153 |
|
|
| 154 |
|
|
| 155 |
|
|
| 158 | 156 |
|
| 159 | 157 |
|
| 160 | 158 |
|
|
||
| 166 | 164 |
|
| 167 | 165 |
|
| 168 | 166 |
|
| 167 |
|
|
| 168 |
|
|
| 169 |
|
|
| 170 |
|
|
| 169 | 171 |
|
| 170 | 172 |
|
| 171 | 173 |
|
|
||
| 1 | 1 |
|
| 2 | 2 |
|
| 3 |
|
|
| 3 | 4 |
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 4 | 9 |
|
| 5 | 10 |
|
| 11 |
|
|
| 12 |
|
|
| 6 | 13 |
|
| 7 | 14 |
|
| 8 | 15 |
|
|
||
| 267 | 274 |
|
| 268 | 275 |
|
| 269 | 276 |
|
| 277 |
|
|
| 278 |
|
|
| 279 |
|
|
| 280 |
|
|
| 281 |
|
|
| 282 |
|
|
| 283 |
|
|
| 284 |
|
|
| 285 |
|
|
| 286 |
|
|
| 287 |
|
|
| 288 |
|
|
| 289 |
|
|
| 270 | 290 |
|
|
||
| 261 | 261 |
|
| 262 | 262 |
|
| 263 | 263 |
|
| 264 |
|
|
| 265 |
|
|
| 266 |
|
|
| 267 |
|
|
| 268 |
|
|
| 269 |
|
|
| 264 | 270 |
|
|
||
| 113 | 113 |
|
| 114 | 114 |
|
| 115 | 115 |
|
| 116 |
|
|
| 116 |
|
|
| 117 | 117 |
|
| 118 | 118 |
|
| 119 | 119 |
|
|
||
| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
|
||
| 60 | 60 |
|
| 61 | 61 |
|
| 62 | 62 |
|
| 63 |
|
|
| 63 |
|
|
| 64 | 64 |
|
| 65 | 65 |
|
| 66 | 66 |
|