Android DialogFragment 크기 조정 하려다가 잘 안돼서 흐지부지된 코드
제목 그대로임. 왜 잘 안됐는지는 주석에 표시함. public class APICallResultFragment extends DialogFragment { //===================================== Fragment Lifecycle Callbacks – start ===================================== /** * Only for DialogFragment * * @param savedInstanceState * @return */ @Override public Dialog onCreateDialog(Bundle savedInstanceState) { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); LayoutInflater inflater = getActivity().getLayoutInflater(); View view = inflater.inflate(R.layout.fragment_apicall_result, null); builder.setView(view) .setNegativeButton(“닫기”, new… Read More »