|
| 1 | +package com.fengchen.uistatus.demo; |
| 2 | + |
| 3 | +import android.os.Bundle; |
| 4 | +import android.support.annotation.NonNull; |
| 5 | +import android.support.annotation.Nullable; |
| 6 | +import android.support.v4.app.Fragment; |
| 7 | +import android.view.LayoutInflater; |
| 8 | +import android.view.View; |
| 9 | +import android.view.ViewGroup; |
| 10 | +import android.widget.TextView; |
| 11 | + |
| 12 | +import com.fengchen.uistatus.UiStatusController; |
| 13 | +import com.fengchen.uistatus.annotation.UiStatus; |
| 14 | + |
| 15 | +/******************************** |
| 16 | + * @name TestWeightFragment. |
| 17 | + * @author 段露. |
| 18 | + * @company 浙江托普云农科技股份有限公司. |
| 19 | + * @createDate 2020/3/30 9:45. |
| 20 | + * @updateDate 2020/3/30 9:45. |
| 21 | + * @version V1.0.0 |
| 22 | + * @describe . |
| 23 | + ********************************/ |
| 24 | +public class TestWeightFragment extends Fragment { |
| 25 | + private UiStatusController mUiStatusController; |
| 26 | + |
| 27 | + @Nullable |
| 28 | + @Override |
| 29 | + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { |
| 30 | + View rootView = inflater.inflate(R.layout.fragment_test_weight, container, false); |
| 31 | + TextView tvTestWeight = rootView.findViewById(R.id.tv_test_weight); |
| 32 | + ViewGroup.LayoutParams lp = tvTestWeight.getLayoutParams(); |
| 33 | + mUiStatusController = UiStatusController.get(); |
| 34 | + mUiStatusController.bind(tvTestWeight); |
| 35 | + mUiStatusController.changeUiStatusIgnore(UiStatus.CONTENT); |
| 36 | + return rootView; |
| 37 | + } |
| 38 | + |
| 39 | +} |
0 commit comments