|
|
|
@ -1,9 +1,14 @@
|
|
|
|
|
package com.example.cmknowledgegraph;
|
|
|
|
|
|
|
|
|
|
import android.graphics.Typeface;
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
|
import android.util.TypedValue;
|
|
|
|
|
import android.widget.TextView;
|
|
|
|
|
|
|
|
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
|
|
|
|
|
|
|
|
import com.example.PersonalCenter.SearchServiceGet;
|
|
|
|
|
|
|
|
|
|
public class SearchContentActivity extends AppCompatActivity {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -16,6 +21,19 @@ public class SearchContentActivity extends AppCompatActivity {
|
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
|
setContentView(R.layout.activity_search_content);
|
|
|
|
|
TextView text_title=findViewById(R.id.search_content);
|
|
|
|
|
|
|
|
|
|
//设置内容的标题,位置,大小
|
|
|
|
|
String label_name=getIntent().getStringExtra("label").toString();
|
|
|
|
|
text_title.setPadding(50,80,100,100);
|
|
|
|
|
text_title.setText(label_name);
|
|
|
|
|
text_title.setTextSize(TypedValue.COMPLEX_UNIT_SP, 16);
|
|
|
|
|
text_title.setTypeface(Typeface.defaultFromStyle(Typeface.BOLD));
|
|
|
|
|
|
|
|
|
|
//遍历label和content的队列,显示内容
|
|
|
|
|
for(int i=1;i< SearchServiceGet.label.size();i++){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|