forked from hzuapps/android-labs-2020
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
acdcb54
commit 47908e6
Showing
1 changed file
with
0 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +0,0 @@ | ||
package edu.hzuapps.androidlabs.sec1814080911128; | ||
|
||
import android.os.Bundle; | ||
import android.widget.LinearLayout; | ||
import android.support.v7.app.AppCompatActivity; | ||
|
||
public class Sec1814080911128Activity extends AppCompatActivity { | ||
|
||
private LinearLayout loading; | ||
private ListView lvNews; | ||
private List<NewsInfos> | ||
|
||
@Override | ||
protected void onCreate(Budle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_main); | ||
initView(); | ||
fillData(); | ||
} | ||
//初始化控件 | ||
private void initView() { | ||
loading = (L) | ||
} | ||
|
||
private void fillData() { } | ||
//ListView适配器 | ||
private class NewsAdapter extends BaseAdapter { | ||
//listview的item数 | ||
@Override | ||
public int getCount() { | ||
return newsInfos.size(); | ||
} | ||
|
||
//条目对象 | ||
@Override | ||
public Object getItem(int position) { | ||
return null; | ||
} | ||
|
||
//条目id | ||
@Override | ||
public long getItemId(int position) { | ||
return 0; | ||
} | ||
} | ||
} | ||