收藏夹测试ExpandableListView控件
This commit is contained in:
@@ -673,7 +673,7 @@ public class MainActivity extends Activity {
|
||||
}
|
||||
|
||||
private void MenuDialog() {
|
||||
String[] items = { "新建窗口", "关闭当前窗口", "收藏当前页", "收藏夹", "查找", "分享", "网页信息", "视频独立播放", "视频截图", "视频在播放器中打开", "资源探查", "查看源码", "保存", "全屏", "广告过滤规则", "清除当前页面缓存", "设置", "检查更新", "关于", "退出" };
|
||||
String[] items = { "新建窗口", "关闭当前窗口", "收藏当前页", "收藏夹", "查找", "分享", "网页信息", "视频独立播放", "视频截图", "视频在播放器中打开", "资源探查", "查看源码", "保存", "全屏", "广告过滤规则", "清除当前页面缓存", "设置", "检查更新", "关于", "退出", "ExpandableListView" };
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
||||
builder.setTitle("菜单");
|
||||
//builder.setIcon(android.R.drawable.ic_menu_preferences);
|
||||
@@ -719,7 +719,7 @@ public class MainActivity extends Activity {
|
||||
ArrayList<String> list = new ArrayList<>();
|
||||
list.add("");
|
||||
DBHelper helper = new DBHelper(MainActivity.this);
|
||||
Cursor cursor = helper.category("");
|
||||
Cursor cursor = helper.category();
|
||||
if (cursor != null) {
|
||||
while (cursor.moveToNext()) {
|
||||
String s = cursor.getString(cursor.getColumnIndex("category"));
|
||||
@@ -959,6 +959,10 @@ public class MainActivity extends Activity {
|
||||
unregisterReceiver(receiver);
|
||||
MainActivity.this.finish();
|
||||
break;
|
||||
case 20:
|
||||
intent = new Intent(MainActivity.this, FavoriteActivity1.class);
|
||||
startActivityForResult(intent, 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user