ITeye博客

2010 年文章归档

共 143 篇文章

android listview拖拽,拖动item 改变位置

在packages/apps/Music/src/touchIncepter.java中 该类提供了listview的拖动效果,并提供接口,在程序接口中实现数据的交换即可。 源码中的类: <com.and.DragListview.TouchInterceptor android:id="@android:id/list" android:layout_width="match_parent" android:layout_height="match_parent" android:textSize="18sp" android:drawSelectorOnTop="false" andro…

2010-12-31 11:12

android 拖拽图片

拖拽图片效果 方法一: 方法二:

2010-12-30 09:26

BI--BI对象的后台表的命名规则

Namings for Cube: /BI<C OR DIGIT>/<TABLE CODE><INFOCUBE><DIMENSION> <C or digit>: C = Customer-defined InfoCube Digit = SAP-defined InfoCube <table code>: D = Dimension table E = Compressed fact table(partitioned by Year/Month etc.) /BI*/E<cube_name> F = Uncompressed fact table <InfoCube>: The name…

2010-12-28 09:47

popwindow动画显示消失,activity切换动画

popwindow通过setAnimationStyle(int animationStyle)函数来设置动画效果 android:windowEnterAnimation表示进入窗口动画 android:windowExitAnimation表示窗口退出动画 在res/values/style.xml代码: 在res/anim/popup_enter.xml声明所需进入动画 在res/anim/popup_exit.xml声明所需退出动画 设置popwindow的位置及动画 popupWindow.setAnimationStyle(R.style.PopupAnimation); pop…

2010-12-21 11:54

Informix数据库连接使用方法整理

本文主要讲解Windows下连接Linux中的Informix数据库的两种实用方法:用MyEclipse直接连接Informix数据库和用ODBC连接Informix数据库。 项目中用到的开发相关资料主要有: 系统开发环境:Windows+Linux Windows开发软件:MyEclipse5.5+IBM Informix Client-SDK 2.90+FlashFXP Linux软件:Informix11数据库 相关技术:JSP+Struts+JavaBean+Informix 方式一:MyEclipse直接连接Informix数据库 准备文件有:d:/ifxjdbc.jar 操作步骤…

2010-12-17 19:17

ABAP--如何暂停其他进程的处理,加速当前程序的处理速度

REPORT ZHGUPALL NO STANDARD PAGE HEADING. ************************************************************************ * This is a test program to measure - how much faster a program can * process it's job if all the other workprocesses are halted. * The program identifies the dialog and batch workproc…

2010-12-09 15:47

FI--Note 306504 - Collective note: BAPIs for the AC interface

Symptom Composite SAP note: BAPIs and IDocs for the AC interface This note answers frequently asked questions regarding: BAPI documentation The business transaction concept Enhancement of the interfaces (SAP and customer) The importance of the parameter OBJ_TYPE (reference transaction) Navigation b…

2010-12-08 18:00

Autowire: 自动从xml中绑定Activity中的view

Autowire 是一个Android小工具,把在layout xml中声明的View自动绑定到对应的Activity中. 如果 Activity中有几十个View,现在您再也不用手工编写几十行findViewById代码了, 只需要使用一行代码 Wire.me(this, R.id.class), 就帮您搞定了! /(o )/~ 绑定策略:默认绑定策略是根据Field变量的名字来绑定对应的layout view. 例如: 如果一个TextView, 变量名称为uri 则默认对应的layout textview id为 uri. 另外还支持带有m前缀的变量名称, 例如 mResult 对应 …

2010-12-06 17:30

设置控件的随机显示位置 setlayoutparams

RelativeLayout.LayoutParams parms=(RelativeLayout.LayoutParams)img.getLayoutParams(); parms.leftMargin = (int) (Math.random() * 320); parms.topMargin = (int) (Math.random() * 480); img.setLayoutParams(parms); img.invalidate(); XXX.addView(mOthersetModeLayout,getOtherSetLayoutParameter()); 把上面的代码精简一…

2010-12-06 10:08

HR--Copy of fetching HR data in different ways

There are 3 methods in fetching the data from HR database tables . 1.using select statements . This is the simple method for the selection of data from the hr tables(pannnn). in the HR data time is the major component , in the where condition we should include the date parameters for fetching the d…

2010-12-05 13:03

BADI--Purchase Requisition Header Long Text using Badi - ME_PROCESS_REQ_CUST.

* Create Implementation for BADI using Transaction code SE19 Click on Method - PROCESS_HEADER Check the Process mode using the LOCAL class parameter TRTYP Populate the Text only if TRTYP is eqal to H (Creation) Use the interface method IF_LONGTEXTS_MM~SET_TEXT of importing parameter IM_HEADER to cr…

2010-12-05 11:53

2010-SAP 技术教育大会上SAP的新焦点

今年sap技术教育大会到场的人数创造了新的纪录,人数达到2000人,去年是1500人。给我的感觉是中国的sap的用户是众多的,我们的用户更加成熟。在这次大会上我们听到的最多的三个概念是: 1、云计算 2、内存计算 3、移动终端。 特别是内存计算的使用和推广值得期待。

2010-12-04 17:38

android 入门xml布局文件

本文出处:http://blog.csdn.net/dany1202/archive/2010/12/02/6050189.aspx LinearLayout和RelativeLayout 共有属性: java代码中通过btn1关联次控件 android:id="@+id/btn1" 控件宽度 android:layout_width="80px" //"80dip"或"80dp" android:layout_width =“wrap_content” android:layout_width =“match_parent” 控件高度 android:layout_height="80px…

2010-12-02 15:05

android listview选中某一行,成选中状态颜色高亮显示

构造自己的adapter,在getView中,设置颜色,点击item,刷新listview。 代码: 其xml文件写法,同我的另一博文: android 自定义adapter extends BaseAdapter,做有自己布局的listView 或: siteListView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view,int position, long id) { for(int i=0;i<pa…

2010-11-29 19:17

android 数据库 SQLiteOpenHelper和ContentProvider学习笔记---添加修改删除数据之联系人(二)

1.结构化分 1)主界面:用来显示数据库列表,并响应menu菜单 本程序为GContact.java,其主布局文件为contact_list.xml,其ListView的id必须声明为android:id="@+id/android:list",这样系统才可 以在ListActivity里引用的到 2 ) SQLiteOpenHelper类,该类里定义数据库名字:DATABASE_NAME = "bbbcontact.db" 并创建数据库表 表名:contactstable 每个数据库表至少有一个字段_id。 3)ContentProvider,其提供了数据库的增删该查方法,在此声明uri …

2010-11-25 17:37

android 数据库 SQLiteOpenHelper和ContentProvider学习笔记---添加数据及显示(一)

1.在SQLiteOpenHelper中,声明数据库名,并创建表 2.ContentProvider中 CONTENT_URI声明 private static UriMatcher URI_MATCHER = new UriMatcher(UriMatcher.NO_MATCH); public static final String AUTHORITY = "com.bbb.contact"; private static final int CONTACTS = 1; public static final Uri CONTENT_URI = Uri.parse("content://…

2010-11-24 16:06

ABAP--如何获取ABAP的程序的调用堆栈

REPORT demo_mod_tech_perform_int . DATA: num1 TYPE i, num2 TYPE i, sum TYPE i. num1 = 2. num2 = 4. PERFORM addit. FORM addit. sum = num1 + num2. PERFORM out. ENDFORM. "addit FORM out. field-symbols: <fs> type any. data l_cstack_tab type SYS_CALLST. WRITE: / 'Sum of', num1, 'and', num2, 'is', sum. C…

2010-11-24 10:43

SD--关于定价过程中的存储顺序的参考结构和参考字段的使用代码跟踪

在sap的定价配置中,我们常常会使用到参考结构和参考字段(条件表和存储顺序),这些字段是如何使用的呢,我带着这个好奇阅读了sap的源码(函数SD_COND_ACCESS),并将我的理解记录下来供大家参考。 Step 1 调用t682z_select子过程从T682Z读取存储顺序存储到t682z_tab PERFORM t682z_select TABLES t682z_tab USING t682i_i CHANGING subrc. 并根据参考结构和参考字段拼接存放到内表的字段kommfield中 CONCATENATE t682z_buf-qustr '-' t682z_buf-qufn…

2010-11-23 18:00

android 自定义adapter extends BaseAdapter,做有自己布局的listView

程序实现效果: 可根据自己喜欢,做任何效果布局。类似simpleadapter. 程序xml文件: list_view.xml://主文件 item_custom.xml://定义想要的布局效果 程序代码:

2010-11-20 15:15

android 应用之listview添加radiobutton,获取textView

程序效果: 点击一整行,更换radiobutton选择。 xml代码: java代码: 二 另一个简单办法: android系统中,提供了这样的方法 mylist.setChoiceMode(ListView.CHOICE_MODE_SINGLE); 程序主代码: 其中,android.R.layout.simple_list_item_single_choice在framework/base/core/res/res/layout目录下,可参见源码 三 多选框 main.xml

2010-11-20 14:59