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.
36 lines
1.1 KiB
36 lines
1.1 KiB
package com.example.myapplication;
|
|
|
|
import android.os.Bundle;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.ArrayAdapter;
|
|
import android.widget.Button;
|
|
import android.widget.ListView;
|
|
import android.widget.Toast;
|
|
|
|
import androidx.fragment.app.Fragment;
|
|
|
|
import java.util.List;
|
|
|
|
public class GoodsFragment extends Fragment {
|
|
|
|
private static final String[] strs = new String[]{
|
|
"一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二", "十三", "十四", "十五", "十六", "十七", "十八", "十九", "二十", "二十一", "二十二", "二十三"};
|
|
|
|
private ListView shoesList;
|
|
private Button shoesButton;
|
|
|
|
@Override
|
|
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
|
Bundle savedInstanceState) {
|
|
View view = inflater.inflate(R.layout.fragment_goods, null);
|
|
return view;
|
|
}
|
|
|
|
void init(View view) {
|
|
shoesButton = view.findViewById(R.id.shoes);
|
|
shoesList = view.findViewById(R.id.shoesView);
|
|
}
|
|
}
|
|
|