|
|
@ -18,15 +18,25 @@ import com.youth.banner.listener.OnBannerListener; |
|
|
import java.util.ArrayList; |
|
|
import java.util.ArrayList; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
import butterknife.BindView; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Created by 青花瓷 on 2017/11/28. |
|
|
* Created by 青花瓷 on 2017/11/28. |
|
|
*/ |
|
|
*/ |
|
|
///< 工作fragment |
|
|
///< 工作fragment |
|
|
public class WorkFragment extends BaseFragment implements View.OnClickListener { |
|
|
public class WorkFragment extends BaseFragment implements View.OnClickListener { |
|
|
private Banner banner; |
|
|
|
|
|
private List<String> list_path; |
|
|
private List<String> list_path; |
|
|
private LinearLayout work_breedingpoultry,work_carsmanager,work_scan,work_tablepoultry; |
|
|
|
|
|
|
|
|
@BindView(R.id.work_breedingpoultry) |
|
|
|
|
|
LinearLayout work_breedingpoultry; |
|
|
|
|
|
@BindView(R.id.work_carsmanager) |
|
|
|
|
|
LinearLayout work_carsmanager; |
|
|
|
|
|
@BindView(R.id.work_scan) |
|
|
|
|
|
LinearLayout work_scan; |
|
|
|
|
|
@BindView(R.id.work_tablepoultry) |
|
|
|
|
|
LinearLayout work_tablepoultry; |
|
|
|
|
|
@BindView(R.id.work_banner) |
|
|
|
|
|
Banner banner; |
|
|
@Override |
|
|
@Override |
|
|
protected int setLayout() { |
|
|
protected int setLayout() { |
|
|
return R.layout.fragment_work; |
|
|
return R.layout.fragment_work; |
|
|
@ -34,12 +44,7 @@ public class WorkFragment extends BaseFragment implements View.OnClickListener { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
protected void initView() { |
|
|
protected void initView() { |
|
|
banner = getActivity().findViewById(R.id.work_banner); |
|
|
|
|
|
work_breedingpoultry = getActivity().findViewById(R.id.work_breedingpoultry); |
|
|
|
|
|
work_carsmanager = getActivity().findViewById(R.id.work_carsmanager); |
|
|
|
|
|
work_scan = getActivity().findViewById(R.id.work_scan); |
|
|
|
|
|
work_tablepoultry = getActivity().findViewById(R.id.work_tablepoultry); |
|
|
|
|
|
work_tablepoultry.setVisibility(View.INVISIBLE); |
|
|
|
|
|
|
|
|
// work_tablepoultry.setVisibility(View.INVISIBLE); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
|