This commit is contained in:
ろむねこ 2024-01-25 11:11:52 +09:00
parent 5bac9657ac
commit 4f8751e4b3
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
2 changed files with 0 additions and 63 deletions

View File

@ -1,49 +0,0 @@
package one.nem.lacerta.shared.ui;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* A simple {@link Fragment} subclass.
* Use the {@link LacertaTextInputDialog#newInstance} factory method to
* create an instance of this fragment.
*/
public class LacertaTextInputDialog extends Fragment {
String title;
String message;
public LacertaTextInputDialog() {
// Required empty public constructor
}
public static LacertaTextInputDialog newInstance(String title, String message) {
LacertaTextInputDialog fragment = new LacertaTextInputDialog();
Bundle args = new Bundle();
args.putString("title", title);
args.putString("message", message);
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
title = getArguments().getString("title");
message = getArguments().getString("message");
}
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_lacerta_text_input_dialog, container, false);
}
}

View File

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".LacertaTextInputDialog">
<!-- TODO: Update blank fragment layout -->
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment" />
</FrameLayout>