You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
986 B
34 lines
986 B
package com.example.cmknowledgegraph;
|
|
|
|
import android.os.Bundle;
|
|
import android.util.Log;
|
|
import android.view.View;
|
|
import android.widget.Button;
|
|
import android.widget.EditText;
|
|
import android.widget.ImageButton;
|
|
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
|
|
import com.example.PersonalCenter.Search;
|
|
|
|
public class SearchActivity extends AppCompatActivity {
|
|
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
setContentView(R.layout.activity_search);
|
|
EditText search_edit_frame = findViewById(R.id.search_edit);
|
|
ImageButton search_btn = findViewById(R.id.search_btn);
|
|
String sickname = search_edit_frame.getText().toString();
|
|
|
|
search_btn.setOnClickListener(new View.OnClickListener() {
|
|
@Override
|
|
public void onClick(View v) {
|
|
|
|
// Search search = new Search(sickname);
|
|
// search.search();
|
|
}
|
|
});
|
|
}
|
|
}
|