未完成的歌12
未完成的歌12
关注数: 0
粉丝数: 14
发帖数: 652
关注贴吧数: 27
问题 反射实现 父类根据方法名调用子类方法(父类不含此方法,未知子类类名方法名)。应该没办法做吧?
listview item问题 问题是:为嘛item的竖线显示不出来,直接上item的一个布局代码 <RelativeLayout xmlns:android="http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fschemas.android.com%2Fapk%2Fres%2Fandroid&urlrefer=cc882df92c96a5c2ac087a3d5bd884d4" android:layout_width="fill_parent" android:layout_height="fill_parent" android:descendantFocusability="blocksDescendants" > <View android:layout_width="2dp" android:layout_height="fill_parent" android:layout_centerHorizontal="true" android:visibility="visible" android:background="#cccccc" /> <ImageView android:id="@+id/itemincome_deleteicon" android:layout_width="28dp" android:layout_height="28dp" android:layout_centerHorizontal="true" android:src="@drawable/account_delete" /> <!-- android:layout_marginRight="90dp" --> <!-- android:layout_toLeftOf="@+id/account_item_incomeicon" --> <ImageView android:id="@+id/account_item_incomeicon" android:layout_width="28dp" android:layout_height="28dp" android:layout_centerHorizontal="true" android:src="@drawable/account_income" /> <ImageView android:id="@+id/itemincome_editicon" android:layout_width="28dp" android:layout_height="28dp" android:layout_centerHorizontal="true" android:src="@drawable/account_edit" /> <!-- android:layout_marginLeft="90dp" --> <!-- android:layout_toRightOf="@+id/account_item_incomeicon" --> <LinearLayout android:id="@+id/account_item_textlay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="14dp" android:layout_toLeftOf="@+id/account_item_incomeicon" android:orientation="vertical" > <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" android:orientation="horizontal" android:paddingBottom="7dp" > <TextView android:id="@+id/account_income_money" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="9dp" android:textColor="@color/account_moneytext" android:textSize="14sp" /> <TextView android:id="@+id/account_income_income" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/income" android:textColor="@color/black" android:textSize="14sp" /> </LinearLayout> <TextView android:id="@+id/account_income_remark" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" android:text="这是备注" android:textColor="@color/account_moneytext" android:textSize="12sp" /> </LinearLayout> <ImageView android:id="@+id/account_income_photo" android:layout_width="83dp" android:layout_height="44dp" android:layout_marginLeft="14dp" android:layout_toRightOf="@+id/account_item_incomeicon" /> </RelativeLayout>
activity 背景问题 我给activity设置了背景图片,图片经常被回收。什么鬼
新手求救 listview 长按时为什么只能显示一个checkbox public class OrderShowAdater extends BaseAdapter { private List<? extends Map<String, Object>> list; private LayoutInflater inflater private HashMap<Integer, View> mView; // public HashMap<Integer, Integer> visiblecheck;// 用来记录是否显示checkBox public HashMap<Integer, Boolean> ischeck; private HashMap<Integer, CheckBox> boxes; public OrderShowAdater(Context context, List<? extends Map<String, Object>> list) { this.list = list; inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); mView = new HashMap<Integer, View>(); ischeck = new HashMap<Integer, Boolean>(); boxes = new HashMap<Integer, CheckBox>(); } @Override public int getCount() { return list.size(); } @Override public Object getItem(int arg0) { return null; } @Override public long getItemId(int position) { return position; } @Override public View getView(final int position, View convertView, ViewGroup parent) { AdapterHolder holder; if (convertView == null) { convertView = inflater.inflate(R.layout.listfor_order_show, null); holder = new AdapterHolder(convertView); boxes.put(position, holder.check); ischeck.put(position, false); mView.put(position, convertView); convertView.setTag(holder); //checkbox勾选监听 holder.check.setOnCheckedChangeListener(new OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if(isChecked){ ischeck.put(position, isChecked); }else{ ischeck.remove(position); } } }); convertView.setOnLongClickListener(new OnLongClickListener() { @Override public boolean onLongClick(View v) { // if(mPullDownView.getMIsRefreshing()){ // return true; // } showCheckBoxes(); return true; } }); }else{ holder = (AdapterHolder) convertView.getTag(); } holder.title.setText(list.get(position).get("title").toString()); holder.content.setText(list.get(position).get("content").toString()); holder.date.setText(list.get(position).get("date").toString()); return convertView; } private static class AdapterHolder{ TextView title; TextView content; TextView date; CheckBox check; public AdapterHolder(View view){ this.title = (TextView) view.findViewById(R.id.ordertitle); this.check = (CheckBox) view.findViewById(R.id.orderinfocheckbox); this.date = (TextView) view.findViewById(R.id.orderdate); this.content = (TextView) view.findViewById(R.id.ordercontent); } } /** * 显示所有checkbox */ private void showCheckBoxes(){ for (int i = 0; i < boxes.size(); i++) { boxes.get(i).setVisibility(View.VISIBLE); } } // public void setIsMulChoice(boolean isMulChoice){ // this.isMulChoice = isMulChoice; // } public Map<Integer, CheckBox> getCheckBoxes(){ return this.boxes; } }
问题请教 弄一下午了没懂 问题如下: php代码写入: echo*<span style="height:28px;cursor: pointer;"class="icon-phone" onmousemove=bindToolTip(this,"已通过手机认证!");> </span>*; js代码:ps这里用的是jquery easyui里的源码 function bindToolTip(obj,msg){ $(obj).tooltip({ position: *top*, deltaY:10, content: *<span style="color:#fff">*+msg+*</span>*, onShow: function(){ $(this).tooltip(*tip*).css({ backgroundColor: *#666*, borderColor: *#666* }); } }); } 代码效果是这样的:问题来了:当我把onmousemove改为onmouseover火狐浏览器就不兼容了。而且onmousemove方法执行时要鼠标变成过编辑状态(工字形)才会显示效果 我琢磨是不是document未加载原因啊 求大手指教
二维数组问题 a,b,c a,b,d .. 1,2,3 1,2,4 .. 形如以上格式的二维数组 要求输出格式为 a,b,(c,d,..) 1,2,(3,4,..)
谁知道学院的网上超市网址是什么啊 RT,忘记网站了
【tomcat】新人求指导 我的eclipse装了tomcat了。但是发布项目的时候jar包加载不进去,下了插件还是不行
求解一个面试问题 昨天去一家公司面试,叫我回来等待明天的复试
求大神给我new个job 就要过年了,找不到实习,找不到依靠。大神求带走吧,给个权限new个job好吗
闲的无聊,找些逻辑题来给大家做做吧 RT:不知道有人吗?一楼访偷看
关于递归 private static BigInteger add(int i) { if (i <= 1) return new BigInteger(i + ""); return new BigInteger(i + "").multiply(add(--i)); } 这个方法调用的时候会栈溢出,请问递归应该怎么写
我也是来求助数组问题的 随便分享一下比较老的逻辑题吧
还有人记得吗 记得以前看的时候可入迷了~~
算法题,静待大神 给一个已知数组元素不重复,如int a[]={1,2,3,4,5}把a中的元素排列组合,把所有可能情况输出,不能有重复(共5*4*3*2*1)种情况~~要求方法有通用性)
求个HttpServlet的中文api RT中秋快乐
又来请教了 上图先
一道面向对象的题目
鲤鱼神功 想问下,有部古装剧主人公把鲤鱼的行为演化成神功的是什么电视? 大陆剧,早年在拍的时候有关注,可一直没看到
灌灌水 如今小学生都去过情人节了,中学生都过光棍节,剩下一群高中生和大学生整天嚷嚷着过儿童节。真快亲爱的六一就这么过去了,朋友今天吃糖了吗。
【签名】自制签名 最近在学习特效,自己做过就忘了
【签名】这人少 发现自己一点耐心也没有,渣渣没做好
1
下一页