资讯相关页面的整理

This commit is contained in:
CsHeng
2017-12-18 16:00:30 +08:00
parent 1958c6aefb
commit 9fd1855daa
54 changed files with 1030 additions and 1008 deletions

View File

@ -0,0 +1,38 @@
package com.gh.base.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.gh.gamecenter.R;
/**
* @author CsHeng
* @Date 17/05/2017
* @Time 4:27 PM
*/
public class WaitingDialogFragment extends BaseDialogFragment {
public static final String KEY_MSG = "msg";
public static WaitingDialogFragment newInstance(String message) {
Bundle args = new Bundle();
args.putString(KEY_MSG, message);
WaitingDialogFragment fragment = new WaitingDialogFragment();
fragment.setArguments(args);
return fragment;
}
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
final View view = inflater.inflate(R.layout.set_wait_dialog, null);
final TextView message = (TextView) view.findViewById(R.id.set_wait_message);
message.setText(getArguments().getString(KEY_MSG));
return view;
}
}