xuxiuxi
2017-03-31 d6e29e229c86b31004eff30093fca27c4ce3b3e7


git-svn-id: http://192.168.1.226/svn/proxy@305 454eff88-639b-444f-9e54-f578c98de674
2个文件已修改
23 ■■■■ 已修改文件
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/MyWheelAdapter.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/dialog/CountrySelectionDialog.java 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/MyWheelAdapter.java
@@ -11,10 +11,6 @@
import cn.com.basic.face.discern.entity.Dictionary;
/**
 * Created by Administrator on 2016/11/3.
 */
public class MyWheelAdapter extends BaseWheelAdapter<String> {
    private Context mContext;
@@ -39,7 +35,6 @@
        } else {
            viewHolder.textView.setText(o+"");
        }
        return convertView;
    }
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/dialog/CountrySelectionDialog.java
@@ -23,6 +23,7 @@
import java.util.List;
public class CountrySelectionDialog extends PopupWindow implements View.OnClickListener, WheelView.OnWheelItemSelectedListener {
    private Context mContext;
    private View view;
    private TextView mTvConfirm, mTvCancel;
@@ -43,13 +44,9 @@
        mTvConfirm = (TextView) view.findViewById(R.id.pop_country_confirm);
        mTvCancel.setOnClickListener(this);
        mTvConfirm.setOnClickListener(this);
        //String[] countryWordData = DictionaryMng.countryWordData;
        this.countryWordList = countryWordList;//DictionaryMng.countryWordList;
        this.countryData = countryData;//DictionaryMng.countryData;
        this.countryWordList = countryWordList;
        this.countryData = countryData;
        countryList = countryData.get(countryWordList.get(mWheelViewTitle.getSelection()));
        mWheelViewTitle.setWheelAdapter(new MyWheelAdapter(context));
        mWheelViewTitle.setSkin(WheelView.Skin.Holo);
        mWheelViewTitle.setWheelSize(5);
@@ -67,9 +64,7 @@
        mWheelViewTitle.setStyle(style);
        mWheelViewName.setStyle(style);
        initData();
        //外部可点击
        setOutsideTouchable(true);
        view.setOnTouchListener(new View.OnTouchListener() {
            @Override
            public boolean onTouch(View view, MotionEvent motionEvent) {
@@ -93,17 +88,10 @@
            }
        });
        /*
             设置窗口特征
         */
        //设置视图
        this.setContentView(this.view);
        //设置窗口宽高
        this.setHeight(RelativeLayout.LayoutParams.MATCH_PARENT);
        this.setWidth(RelativeLayout.LayoutParams.MATCH_PARENT);
        //设置弹出窗口可点击
        this.setFocusable(true);
        //实例化Color
        ColorDrawable colorDrawable = new ColorDrawable(0x7f000000);
        this.setBackgroundDrawable(colorDrawable);
        this.setAnimationStyle(R.style.PopupAnimation);