-
大小: 714KB文件类型: .zip金币: 1下载: 0 次发布日期: 2021-05-16
- 语言: 其他
- 标签: ScrollView GridView 水平滚动 解析
资源简介
该资源实现了HorizontalScrollView嵌套GridView实现单行滚动效果。选中GridView的item,该item下面的ListView跟着变化,并处理了他们之间的焦点转换问题
代码片段和文件信息
package com.tpv.xmic.help.ebony2k14;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.xmlReader;
import com.tpv.xmic.help.ebony2k14.R;
import com.tpv.xmic.help.ebony2k14.helper.HelpList;
import com.tpv.xmic.help.ebony2k14.helper.ListItem;
import com.tpv.xmic.help.ebony2k14.helper.SAXPraserHelper;
import com.tpv.xmic.help.ebony2k14.helper.XmicListAdapter;
import com.tpv.xmic.help.ebony2k14.helper.XmicListItemAdapter;
import com.tpv.xmic.help.ebony2k14.listener.DataListListener;
import com.tpv.xmic.help.ebony2k14.view.XmicGridView;
import com.tpv.xmic.help.ebony2k14.view.XmicListView;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.onfocusChangeListener;
import android.view.View.OnKeyListener;
import android.view.Window;
import android.view.WindowManager;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.frameLayout;
import android.widget.HorizontalScrollView;
import android.widget.LinearLayout;
import android.widget.ListView;
/**
* HelpActivity
*
* @author esther.bao
*
*/
public class HelpActivity extends Activity implements DataListListener
onfocusChangeListener {
public WebView listWebView;
private List lists;
public XmicGridView gridView;
public XmicListView listView;
private List itemLists;
private List itemBooks;
public HorizontalScrollView hScrollView;
private int gSelectedPosition = 0;
private View gSelectedView;
public Button btnList;
public Button btnBook;
private int typeList = 10;
private int typeBook = 11;
private LinearLayout linearLayoutHelpList;
private LinearLayout linearLayoutHelpBook;
private ListView listViewBookOne;
private ListView listViewBookTwo;
private List bookLists = null;
public Handler myHandler = new Handler();
private int listViewOne = 100;
private int listViewTwo = 101;
private int listViewThree = 102;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_title);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_main);
findViews();
parseListxml(R.raw.help_list);
}
private void parseListxml(int helpList) {
try {
// 实例化一个SAXParserFactory对象
SAXParserFactory factory = SAXParserFactory.newInstance();
SAXParser parser;
// 实例化SAXParser对象,创建xmlReader对象,解析器
parser = factory.newSAXParse
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-01-31 20:07 HscrollView\
文件 364 2013-01-22 11:13 HscrollView\.classpath
文件 845 2013-01-22 11:13 HscrollView\.project
文件 925 2013-01-29 09:14 HscrollView\AndroidManifest.xm
目录 0 2013-01-31 20:07 HscrollView\assets\
目录 0 2013-01-31 20:07 HscrollView\assets\8830\
文件 5659 2013-01-30 11:10 HscrollView\assets\8830\Index.html
文件 53917 2013-01-22 11:13 HscrollView\ic_launcher-web.png
目录 0 2013-01-31 20:07 HscrollView\libs\
文件 385685 2013-01-22 11:13 HscrollView\libs\android-support-v4.jar
文件 781 2013-01-22 11:13 HscrollView\proguard-project.txt
文件 563 2013-01-22 11:13 HscrollView\project.properties
目录 0 2013-01-31 20:07 HscrollView\res\
目录 0 2013-01-31 20:07 HscrollView\res\drawable\
目录 0 2013-01-31 20:07 HscrollView\res\drawable-hdpi\
文件 19163 2013-01-17 13:46 HscrollView\res\drawable-hdpi\button_hl.png
文件 7935 2013-01-17 13:46 HscrollView\res\drawable-hdpi\button_normal.png
文件 59101 2013-01-28 13:37 HscrollView\res\drawable-hdpi\ic_launcher.png
文件 4404 2013-01-28 13:47 HscrollView\res\drawable-hdpi\index_normal.png
文件 6070 2013-01-28 13:47 HscrollView\res\drawable-hdpi\index_selected.png
文件 10653 2013-01-28 13:46 HscrollView\res\drawable-hdpi\list_normal.png
文件 20874 2013-01-28 13:46 HscrollView\res\drawable-hdpi\list_selected.png
目录 0 2013-01-31 20:07 HscrollView\res\drawable-ldpi\
文件 59101 2013-01-28 13:37 HscrollView\res\drawable-ldpi\ic_launcher.png
文件 7168 2013-01-29 16:36 HscrollView\res\drawable-ldpi\Thumbs.db
目录 0 2013-01-31 20:07 HscrollView\res\drawable-mdpi\
文件 59101 2013-01-28 13:37 HscrollView\res\drawable-mdpi\ic_launcher.png
目录 0 2013-01-31 20:07 HscrollView\res\drawable-xhdpi\
文件 59101 2013-01-28 13:37 HscrollView\res\drawable-xhdpi\ic_launcher.png
文件 449 2013-01-18 10:50 HscrollView\res\drawable\button_sel.xm
目录 0 2013-01-31 20:07 HscrollView\res\layout\
............此处省略39个文件信息
相关资源
- datagridview添加一个合计行[美好实用版
- 一个可折叠行的DataGridView控件
- DataGridView 合计行
- GridView动态增加行
- DataGridViewAutoFilter 每列多选
- DEV GridControl GridView导出到Excel 支持多
- Datagridview合计行
- Optimized ScrollView Adapter-V3.2.unitypackage
- 树状表格TreeGridView自定义控件,源码
- RecyclerView 瀑布流、ListView、GridView
- 使用RecyclerView实现GridView和ListView混排
- UGUI Super ScrollView 2.4.1.zip
- UGUI ScrollView 分页滑动
- 水平滚动循环uguiEnhanceScrollview
- DataGridView 绑定多表并且更新
- datagridview导入导出txt(VS2010)
- GridView表格抬头列值复选筛选
- 直接在DataGridView表格中修改数据(2
- DataGridView(DataGridViewComboBoxCell)使用
- GridView中实现上传个人修改版
- 很好很强大的datagridview(强大的过滤
- GridView控件的排序、分页、编辑功能实
- VC对话框添加View双缓冲画图(升级版
- (ScrollView优化)UnityTest1.rar
- Dev GridView 拖拽行进行排序
- gridcontrol实现分组,并实现分组总计,
- Xib中使用UIScrollView的AutolayoutDemo
评论
共有 条评论