? ???? ?? Android??? ?? WeChat ?? ???? ??? ?? ??? ?????. ???? ?? ??? ??? ??????.
?? ?? ???? ???? ????? ?? ??? ? ??? ???? ??????.
???? ??? ? ??? ??? ??? ??? ?? ? "??? ????" ??? ???? ??? ??? ?????.
Ⅰ. ??? ???? ??? ??? ?? ???? ?????.
Ⅱ. Gridview? ???? ?? ?? ???? ???????, ??? ?? ?? ???? ?????. >Ⅲ. ??? ?? ???? ?????? ??? ??? ?
???? ??? ????, ??? ??? ????? ???? ??? ??? ?????. ??? ??? ??? ???.
?? ??? ?? ???? ??? ???? ???? ???. ?? ??? ??? ????.
for?(int?i?=?0;?i?<p style="text-align: left;">??? ???? ??? 6?? ???? 6?? ???? ?? ???? ???? ??? ???? ?????. ?? ???? ???? ? ???? ???? ??? ???? ?? ? ???? ?? ???? ?? ???? ????. </p> ?? <p style="text-align: left;"> ?? ?? Gridview? ???? 12??? ?????? ?? ???? ????? ?????? ???? ??? ????. <a href="http://m.miracleart.cn/wiki/58.html" target="_blank"></a></p><p style="text-align: left;"></p>?? ??? ??? ??? ???. <p style="text-align: left;"></p><pre class="brush:php;toolbar:false">?/** ??*?加載數(shù)據(jù)的代碼 ??*/ ?private?void?initData()?{ ??/*?初始化按鈕上應(yīng)該顯示的數(shù)字?*/ ??for?(int?i?=?1;?i??map?=?new?HashMap<string>(); ???if?(i??parent,?View?view, ?????int?position,?long?id)?{ ????if?(position?=?-1?&&?currentIndex?=?-1)?{?//?判斷是否刪除完畢————要小心數(shù)組越界 ???????tvList[currentIndex--].setText(""); ??????} ?????} ????} ???} ??}); ?} ??/** ???*?GrideView的適配器 ???*/? ?BaseAdapter?adapter?=?new?BaseAdapter()?{ ??@Override ??public?int?getCount()?{ ???return?valueList.size(); ??} ??@Override ??public?Object?getItem(int?position)?{ ???return?valueList.get(position); ??} ??@Override ??public?long?getItemId(int?position)?{ ???return?position; ??} ??@SuppressWarnings("deprecation") ??@Override ??public?View?getView(int?position,?View?convertView,?ViewGroup?parent)?{ ???ViewHolder?viewHolder; ???if?(convertView?==?null)?{ ????convertView?=?View.inflate(context,?R.layout.item_gride,?null); ????viewHolder?=?new?ViewHolder(); ????viewHolder.btnKey?=?(TextView)?convertView ??????.findViewById(R.id.btn_keys); ????convertView.setTag(viewHolder); ???}?else?{ ????viewHolder?=?(ViewHolder)?convertView.getTag(); ???} ???viewHolder.btnKey.setText(valueList.get(position).get("name")); ???if?(position?==?9||position==11)?{ ????viewHolder.btnKey.setBackgroundDrawable(Utils.getStateListDrawable(context)); ????viewHolder.btnKey.setEnabled(false); ???} ???if?(position?==?11)?{ ????viewHolder.btnKey.setBackgroundDrawable(Utils.getStateListDrawable(context)); ???} ???return?convertView; ??} ?}; ? ? ?/** ??*?存放控件 ??*/ ?public?final?class?ViewHolder?{ ??public?TextView?btnKey; ?}</string>

View?contentView?=?LayoutInflater.from(context).inflate( ????R.layout.layout_popupdemo,?null);//?定義后退彈出框 ??gridView?=?(GridView)?contentView.findViewById(R.id.gv_keybord);//?泡泡窗口的布局? ?popupWindow?=?new?PopupWindow(contentView, ????ViewGroup.LayoutParams.MATCH_PARENT,//?width ????ViewGroup.LayoutParams.WRAP_CONTENT);//?higth ??popupWindow.setFocusable(false); ??popupWindow.setAnimationStyle(R.style.animation); ???//從底部彈出 public?void?show()?{ ??popupWindow.showAtLocation(rl_bottom,?Gravity.BOTTOM,?0,?0);?//?確定在界面中出現(xiàn)的位置 ?} ?@Override ?public?void?onWindowFocusChanged(boolean?hasWindowFocus)?{ ??super.onWindowFocusChanged(hasWindowFocus); ??show(); ?}
? ???? ???? ??? ?????. >
????? ??? ?? ? ?? ?????? ???? ?????? ? ?????? ???? ??? ???? ??? ???? ????. , ???? Gridview? onitemclick ???? ?????? ?? ????.
gridView.setOnItemClickListener(new?AdapterView.OnItemClickListener()?{ ???@Override ???public?void?onItemClick(AdapterView>?parent,?View?view, ?????int?position,?long?id)?{ ????if?(position?=?-1?&&?currentIndex?=?-1)?{?//?判斷是否刪除完畢————要小心數(shù)組越界 ???????tvList[currentIndex--].setText(""); ??????} ?????} ????} ???} ??});???? 0~9? ??? ???? ???? ??? ?????. ???? ????? ?? ???? ?? ???? ??? ??? ?????. ???, ??? ??? ??? ?? ?? ??? ?????. ???? ??? ???? ???? ?????.
//?設(shè)置監(jiān)聽(tīng)方法,在第6位輸入完成后觸發(fā) ?public?void?setOnFinishInput(final?OnPasswordInputFinish?pass)?{ ??tvList[5].addTextChangedListener(new?TextWatcher()?{ ???@Override ???public?void?beforeTextChanged(CharSequence?s,?int?start,?int?count, ?????int?after)?{ ???} ???@Override ???public?void?onTextChanged(CharSequence?s,?int?start,?int?before, ?????int?count)?{ ???} ???@Override ???public?void?afterTextChanged(Editable?s)?{ ????if?(s.toString().length()?==?1)?{ ?????strPassword?=?"";?//?每次觸發(fā)都要先將strPassword置空,再重新獲取,避免由于輸入刪除再輸入造成混亂 ?????for?(int?i?=?0;?i???? ?? ?? ?? ??? ??? ????. <p style="text-align: left;"></p> <p style="text-align: left;"></p>
? ??? ????? ???? WeChat ?? ???? ?? ?? ?? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)