pull/23/head
XieChangrong 2 years ago
parent 2627a361b6
commit 8a2553b463

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 KiB

After

Width:  |  Height:  |  Size: 11 KiB

@ -19,7 +19,7 @@
android:name=".ui.HistoryActivity" android:name=".ui.HistoryActivity"
android:exported="false" /> android:exported="false" />
<activity <activity
android:name=".ui.NoPickActivity" android:name=".ui.SearchActivity"
android:exported="false" /> android:exported="false" />
<activity <activity
android:name=".ui.MenuActivity" android:name=".ui.MenuActivity"

@ -20,13 +20,13 @@ import androidx.fragment.app.Fragment;
import com.example.logistics.R; import com.example.logistics.R;
import com.example.logistics.manager.goodManager; import com.example.logistics.manager.goodManager;
public class SearchUI extends Fragment implements View.OnClickListener{ public class FindActivity extends Fragment implements View.OnClickListener{
private Context mContext; private Context mContext;
private Button mButton; private Button mButton;
private EditText mPickUpCode; private EditText mPickUpCode;
private EditText mPhoneNum; private EditText mPhoneNum;
public SearchUI(){ public FindActivity(){
} }
@Nullable @Nullable

@ -93,7 +93,7 @@ public class MenuActivity extends AppCompatActivity implements View.OnClickListe
mTextView1.setSelected(true); mTextView1.setSelected(true);
mTextNum1.setVisibility(View.INVISIBLE); mTextNum1.setVisibility(View.INVISIBLE);
if (mFrag1 == null) { if (mFrag1 == null) {
mFrag1 = new SearchUI(); mFrag1 = new FindActivity();
transaction.add(R.id.fragment_container, mFrag1); transaction.add(R.id.fragment_container, mFrag1);
@ -106,7 +106,7 @@ public class MenuActivity extends AppCompatActivity implements View.OnClickListe
mTextView2.setSelected(true); mTextView2.setSelected(true);
mTextNum2.setVisibility(View.INVISIBLE); mTextNum2.setVisibility(View.INVISIBLE);
if (mFrag2 == null) { if (mFrag2 == null) {
mFrag2 = new PickUpUI(); mFrag2 = new PickUpActivity();
Bundle bundle = new Bundle(); Bundle bundle = new Bundle();
bundle.putString("user", owner); bundle.putString("user", owner);
mFrag2.setArguments(bundle); mFrag2.setArguments(bundle);
@ -120,7 +120,7 @@ public class MenuActivity extends AppCompatActivity implements View.OnClickListe
mTextView3.setSelected(true); mTextView3.setSelected(true);
mTextNum3.setVisibility(View.INVISIBLE); mTextNum3.setVisibility(View.INVISIBLE);
if (mFrag3 == null) { if (mFrag3 == null) {
mFrag3 = new MeUI(); mFrag3 = new SetActivity();
Bundle bundle = new Bundle(); Bundle bundle = new Bundle();
bundle.putString("user", owner); bundle.putString("user", owner);
mFrag3.setArguments(bundle); mFrag3.setArguments(bundle);

@ -38,7 +38,7 @@ import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.net.URI; import java.net.URI;
public class PickUpUI extends Fragment implements View.OnClickListener{ public class PickUpActivity extends Fragment implements View.OnClickListener{
private Button mButton; private Button mButton;
private Context mContext; private Context mContext;
@ -58,7 +58,7 @@ public class PickUpUI extends Fragment implements View.OnClickListener{
int flag = 0; //flag=0:chushi int flag = 0; //flag=0:chushi
public PickUpUI(){ public PickUpActivity(){
} }
@Nullable @Nullable

@ -25,7 +25,7 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public class NoPickActivity extends Activity implements OnItemClickListener, OnScrollListener, View.OnClickListener { public class SearchActivity extends Activity implements OnItemClickListener, OnScrollListener, View.OnClickListener {
private String TAG = "NoPickActivity"; private String TAG = "NoPickActivity";
private ListView lv_nopick; private ListView lv_nopick;
@ -113,7 +113,7 @@ public class NoPickActivity extends Activity implements OnItemClickListener, OnS
@Override @Override
public void handleMessage(Message msg){ public void handleMessage(Message msg){
if(msg.what == 1){ if(msg.what == 1){
simp_adapter=new SimpleAdapter(NoPickActivity.this, dataList, R.layout.item, new String[]{"id","time"}, new int[]{R.id.np_id,R.id.np_time}); simp_adapter=new SimpleAdapter(SearchActivity.this, dataList, R.layout.item, new String[]{"id","time"}, new int[]{R.id.np_id,R.id.np_time});
lv_nopick.setAdapter(simp_adapter); lv_nopick.setAdapter(simp_adapter);
} }
} }

@ -15,14 +15,14 @@ import androidx.annotation.Nullable;
import com.example.logistics.R; import com.example.logistics.R;
public class MeUI extends Fragment implements View.OnClickListener{ public class SetActivity extends Fragment implements View.OnClickListener{
private LinearLayout ll_waiting; private LinearLayout ll_waiting;
private LinearLayout ll_history; private LinearLayout ll_history;
private LinearLayout ll_exit; private LinearLayout ll_exit;
private Context mContext; private Context mContext;
private String user; private String user;
public MeUI(){ public SetActivity(){
} }
@Nullable @Nullable
@ -52,7 +52,7 @@ public class MeUI extends Fragment implements View.OnClickListener{
Intent intent; Intent intent;
switch(view.getId()){ switch(view.getId()){
case R.id.waiting: case R.id.waiting:
intent = new Intent(mContext, NoPickActivity.class); intent = new Intent(mContext, SearchActivity.class);
intent.putExtra("user", user); intent.putExtra("user", user);
startActivity(intent); startActivity(intent);
break; break;
Loading…
Cancel
Save