Commit bfaa7264b36ae68733981113e4f96303558ab305
1 parent
22599b8b76
Exists in
master
学校无法搜索问题解决
Showing
4 changed files
with
30 additions
and
16 deletions
Show diff stats
PersonalCenter/app/src/main/java/com/hjx/personalcenter/adapter/SchoolAdapter.java
| 1 | package com.hjx.personalcenter.adapter; | 1 | package com.hjx.personalcenter.adapter; |
| 2 | 2 | ||
| 3 | import android.content.Context; | 3 | import android.content.Context; |
| 4 | import android.os.Handler; | ||
| 5 | import android.os.Message; | ||
| 4 | import android.view.View; | 6 | import android.view.View; |
| 5 | import android.view.ViewGroup; | 7 | import android.view.ViewGroup; |
| 6 | import android.widget.BaseAdapter; | 8 | import android.widget.BaseAdapter; |
| 7 | import android.widget.Filter; | 9 | import android.widget.Filter; |
| 8 | import android.widget.Filterable; | 10 | import android.widget.Filterable; |
| 9 | import android.widget.TextView; | 11 | import android.widget.TextView; |
| 10 | 12 | ||
| 11 | import com.hjx.personalcenter.R; | 13 | import com.hjx.personalcenter.R; |
| 14 | import com.hjx.personalcenter.http.HttpCode; | ||
| 12 | import com.hjx.personalcenter.model.SchoolInfo; | 15 | import com.hjx.personalcenter.model.SchoolInfo; |
| 13 | 16 | ||
| 14 | import java.util.ArrayList; | 17 | import java.util.ArrayList; |
| 15 | import java.util.List; | ||
| 16 | 18 | ||
| 17 | /** | 19 | /** |
| 18 | * Created by h on 2017/8/21. | 20 | * Created by h on 2017/8/21. |
| 19 | */ | 21 | */ |
| 20 | 22 | ||
| 21 | public class SchoolAdapter extends BaseAdapter implements Filterable { | 23 | public class SchoolAdapter extends BaseAdapter implements Filterable { |
| 22 | private List<SchoolInfo.DataBean> mDatas; | 24 | private ArrayList<SchoolInfo.DataBean> mDatas; |
| 23 | ArrayList<SchoolInfo.DataBean> objects; | 25 | private ArrayList<SchoolInfo.DataBean> objects; |
| 24 | private Context context; | 26 | private Context context; |
| 25 | private final Object mLock = new Object(); | 27 | private final Object mLock = new Object(); |
| 26 | private ArrayFilter mFilter; | 28 | private ArrayFilter mFilter; |
| 29 | Handler handler = null; | ||
| 27 | 30 | ||
| 28 | public SchoolAdapter(ArrayList<SchoolInfo.DataBean> objects, Context context) { | 31 | public SchoolAdapter(ArrayList<SchoolInfo.DataBean> objects, Context context,Handler handler) { |
| 29 | this.objects = objects; | 32 | this.objects = objects; |
| 30 | this.context = context; | 33 | this.context = context; |
| 34 | this.handler = handler; | ||
| 31 | } | 35 | } |
| 32 | 36 | ||
| 33 | @Override | 37 | @Override |
| 34 | public int getCount() { | 38 | public int getCount() { |
| 35 | return objects.size(); | 39 | return objects.size(); |
| 36 | } | 40 | } |
| 37 | 41 | ||
| 38 | @Override | 42 | @Override |
| 39 | public Object getItem(int position) { | 43 | public Object getItem(int position) { |
| 40 | return position; | 44 | return objects.get(position); |
| 41 | } | 45 | } |
| 42 | 46 | ||
| 43 | @Override | 47 | @Override |
| 44 | public long getItemId(int position) { | 48 | public long getItemId(int position) { |
| 45 | return position; | 49 | return position; |
| 46 | } | 50 | } |
| 47 | 51 | ||
| 48 | @Override | 52 | @Override |
| 49 | public View getView(final int position, View convertView, ViewGroup parent) { | 53 | public View getView(final int position, View convertView, ViewGroup parent) { |
| 50 | 54 | ||
| 51 | ProvincesAdapter.ViewHolder holder = null; | 55 | ProvincesAdapter.ViewHolder holder = null; |
| 52 | 56 | ||
| 53 | if (convertView == null) { | 57 | if (convertView == null) { |
| 54 | convertView = View.inflate(context, R.layout.custom_adilog_school_list_items, null); | 58 | convertView = View.inflate(context, R.layout.custom_adilog_school_list_items, null); |
| 55 | holder = new ProvincesAdapter.ViewHolder(); | 59 | holder = new ProvincesAdapter.ViewHolder(); |
| 56 | holder.nameText = (TextView) convertView.findViewById(R.id.list_school_items); | 60 | holder.nameText = (TextView) convertView.findViewById(R.id.list_school_items); |
| 57 | convertView.setTag(holder); | 61 | convertView.setTag(holder); |
| 58 | } else { | 62 | } else { |
| 59 | holder = (ProvincesAdapter.ViewHolder) convertView.getTag(); | 63 | holder = (ProvincesAdapter.ViewHolder) convertView.getTag(); |
| 60 | } | 64 | } |
| 61 | 65 | ||
| 62 | holder.nameText.setText(objects.get(position).getSchoolName()); | 66 | holder.nameText.setText(objects.get(position).getSchoolName()); |
| 63 | 67 | ||
| 64 | return convertView; | 68 | return convertView; |
| 65 | } | 69 | } |
| 66 | 70 | ||
| 67 | @Override | 71 | @Override |
| 68 | public Filter getFilter() { | 72 | public Filter getFilter() { |
| 69 | if (mFilter == null) { | 73 | if (mFilter == null) { |
| 70 | mFilter = new ArrayFilter(); | 74 | mFilter = new ArrayFilter(); |
| 71 | } | 75 | } |
| 72 | return mFilter; | 76 | return mFilter; |
| 73 | } | 77 | } |
| 74 | 78 | ||
| 75 | 79 | ||
| 76 | static class ViewHolder { | 80 | static class ViewHolder { |
| 77 | TextView nameText; | 81 | TextView nameText; |
| 78 | } | 82 | } |
| 79 | private class ArrayFilter extends Filter { | 83 | private class ArrayFilter extends Filter { |
| 80 | //执行刷选 | 84 | //执行刷选 |
| 81 | @Override | 85 | @Override |
| 82 | protected FilterResults performFiltering(CharSequence prefix) { | 86 | protected FilterResults performFiltering(CharSequence prefix) { |
| 83 | FilterResults results = new FilterResults();//过滤的结果 | 87 | FilterResults results = new FilterResults();//过滤的结果 |
| 84 | //原始数据备份为空时,上锁,同步复制原始数据 | 88 | //原始数据备份为空时,上锁,同步复制原始数据 |
| 85 | if (objects == null) { | 89 | if (mDatas == null) { |
| 86 | synchronized (mLock) { | 90 | synchronized (mLock) { |
| 87 | objects = new ArrayList<>(mDatas); | 91 | mDatas = new ArrayList<SchoolInfo.DataBean>(objects); |
| 88 | } | 92 | } |
| 89 | } | 93 | } |
| 90 | //当首字母为空时 | 94 | //当首字母为空时 |
| 91 | if (prefix == null || prefix.length() == 0) { | 95 | if (prefix == null || prefix.length() == 0) { |
| 92 | ArrayList<SchoolInfo.DataBean> list; | 96 | ArrayList<SchoolInfo.DataBean> list ; |
| 93 | synchronized (mLock) {//同步复制一个原始备份数据 | 97 | synchronized (mLock) {//同步复制一个原始备份数据 |
| 94 | list = new ArrayList<>(objects); | 98 | list = new ArrayList<SchoolInfo.DataBean>(mDatas); |
| 95 | } | 99 | } |
| 96 | results.values = list; | 100 | results.values = list; |
| 97 | results.count = list.size();//此时返回的results就是原始的数据,不进行过滤 | 101 | results.count = list.size();//此时返回的results就是原始的数据,不进行过滤 |
| 98 | } else { | 102 | } else { |
| 99 | String prefixString = prefix.toString().toLowerCase();//转化为小写 | 103 | String prefixString = prefix.toString().toLowerCase();//转化为小写 |
| 100 | 104 | ||
| 101 | ArrayList<SchoolInfo.DataBean> values; | 105 | ArrayList<SchoolInfo.DataBean> values; |
| 102 | synchronized (mLock) {//同步复制一个原始备份数据 | 106 | synchronized (mLock) {//同步复制一个原始备份数据 |
| 103 | values = new ArrayList<>(objects); | 107 | values = new ArrayList<SchoolInfo.DataBean>(mDatas); |
| 104 | } | 108 | } |
| 105 | final int count = values.size(); | 109 | final int count = values.size(); |
| 106 | final ArrayList<SchoolInfo.DataBean> newValues = new ArrayList<>(); | 110 | final ArrayList<SchoolInfo.DataBean> newValues = new ArrayList<SchoolInfo.DataBean>(count); |
| 107 | 111 | ||
| 108 | for (int i = 0; i < count; i++) { | 112 | for (int i = 0; i < count; i++) { |
| 109 | final SchoolInfo.DataBean value = values.get(i);//从List<User>中拿到User对象 | 113 | final SchoolInfo.DataBean value = values.get(i);//从List<User>中拿到User对象 |
| 110 | // final String valueText = value.toString().toLowerCase(); | 114 | // final String valueText = value.toString().toLowerCase(); |
| 111 | final String valueText = value.getSchoolName().toString().toLowerCase();//User对象的name属性作为过滤的参数 | 115 | final String valueText = value.getSchoolName().toString().toLowerCase();//User对象的name属性作为过滤的参数 |
| 112 | // First match against the whole, non-splitted value | 116 | // First match against the whole, non-splitted value |
| 113 | if (valueText.startsWith(prefixString) || valueText.indexOf(prefixString.toString()) != -1) {//第一个字符是否匹配 | 117 | if (valueText.startsWith(prefixString) || valueText.indexOf(prefixString.toString()) != -1) {//第一个字符是否匹配 |
| 114 | newValues.add(value);//将这个item加入到数组对象中 | 118 | newValues.add(value);//将这个item加入到数组对象中 |
| 115 | } else {//处理首字符是空格 | 119 | } else {//处理首字符是空格 |
| 116 | final String[] words = valueText.split(" "); | 120 | final String[] words = valueText.split(" "); |
| 117 | final int wordCount = words.length; | 121 | final int wordCount = words.length; |
| 118 | 122 | ||
| 119 | // Start at index 0, in case valueText starts with space(s) | 123 | // Start at index 0, in case valueText starts with space(s) |
| 120 | for (int k = 0; k < wordCount; k++) { | 124 | for (int k = 0; k < wordCount; k++) { |
| 121 | if (words[k].startsWith(prefixString)) {//一旦找到匹配的就break,跳出for循环 | 125 | if (words[k].startsWith(prefixString)) {//一旦找到匹配的就break,跳出for循环 |
| 122 | newValues.add(value); | 126 | newValues.add(value); |
| 123 | break; | 127 | break; |
| 124 | } | 128 | } |
| 125 | } | 129 | } |
| 126 | } | 130 | } |
| 127 | } | 131 | } |
| 128 | results.values = newValues;//此时的results就是过滤后的List<User>数组 | 132 | results.values = newValues;//此时的results就是过滤后的List<User>数组 |
| 129 | results.count = newValues.size(); | 133 | results.count = newValues.size(); |
| 130 | } | 134 | } |
| 131 | return results; | 135 | return results; |
| 132 | } | 136 | } |
| 133 | 137 | ||
| 134 | //刷选结果 | 138 | //刷选结果 |
| 135 | @Override | 139 | @Override |
| 136 | protected void publishResults(CharSequence prefix, FilterResults results) { | 140 | protected void publishResults(CharSequence prefix, FilterResults results) { |
| 137 | //noinspection unchecked | 141 | //noinspection unchecked |
| 138 | mDatas = (List<SchoolInfo.DataBean>) results.values;//此时,Adapter数据源就是过滤后的Results | 142 | objects = (ArrayList<SchoolInfo.DataBean>) results.values;//此时,Adapter数据源就是过滤后的Results |
| 143 | Message message = Message.obtain(); | ||
| 144 | message.what = HttpCode.SCOOL; | ||
| 145 | message.obj = objects; | ||
| 146 | handler.sendMessage(message); | ||
| 139 | if (results.count > 0) { | 147 | if (results.count > 0) { |
| 140 | notifyDataSetChanged();//这个相当于从mDatas中删除了一些数据,只是数据的变化,故使用notifyDataSetChanged() | 148 | notifyDataSetChanged();//这个相当于从mDatas中删除了一些数据,只是数据的变化,故使用notifyDataSetChanged() |
| 141 | } else { | 149 | } else { |
| 142 | /** | 150 | /** |
| 143 | * 数据容器变化 ----> notifyDataSetInValidated | 151 | * 数据容器变化 ----> notifyDataSetInValidated |
| 144 | 152 | ||
| 145 | 容器中的数据变化 ----> notifyDataSetChanged | 153 | 容器中的数据变化 ----> notifyDataSetChanged |
| 146 | */ | 154 | */ |
| 147 | notifyDataSetInvalidated();//当results.count<=0时,此时数据源就是重新new出来的,说明原始的数据源已经失效了 | 155 | notifyDataSetInvalidated();//当results.count<=0时,此时数据源就是重新new出来的,说明原始的数据源已经失效了 |
| 148 | } | 156 | } |
| 149 | } | 157 | } |
| 150 | } | 158 | } |
| 151 | } | 159 | } |
PersonalCenter/app/src/main/java/com/hjx/personalcenter/customdialog/SchoolListDialog.java
| 1 | package com.hjx.personalcenter.customdialog; | 1 | package com.hjx.personalcenter.customdialog; |
| 2 | 2 | ||
| 3 | import android.annotation.SuppressLint; | 3 | import android.annotation.SuppressLint; |
| 4 | import android.content.Context; | 4 | import android.content.Context; |
| 5 | import android.graphics.Color; | 5 | import android.graphics.Color; |
| 6 | import android.os.Bundle; | 6 | import android.os.Bundle; |
| 7 | import android.os.Handler; | 7 | import android.os.Handler; |
| 8 | import android.os.Message; | 8 | import android.os.Message; |
| 9 | import android.text.Editable; | 9 | import android.text.Editable; |
| 10 | import android.text.TextWatcher; | 10 | import android.text.TextWatcher; |
| 11 | import android.util.Log; | 11 | import android.util.Log; |
| 12 | import android.view.Gravity; | 12 | import android.view.Gravity; |
| 13 | import android.view.LayoutInflater; | 13 | import android.view.LayoutInflater; |
| 14 | import android.view.View; | 14 | import android.view.View; |
| 15 | import android.view.ViewGroup; | 15 | import android.view.ViewGroup; |
| 16 | import android.widget.AdapterView; | 16 | import android.widget.AdapterView; |
| 17 | import android.widget.EditText; | 17 | import android.widget.EditText; |
| 18 | import android.widget.ImageView; | 18 | import android.widget.ImageView; |
| 19 | import android.widget.ListView; | 19 | import android.widget.ListView; |
| 20 | 20 | ||
| 21 | import com.hjx.personalcenter.R; | 21 | import com.hjx.personalcenter.R; |
| 22 | import com.hjx.personalcenter.adapter.SchoolAdapter; | 22 | import com.hjx.personalcenter.adapter.SchoolAdapter; |
| 23 | import com.hjx.personalcenter.db.Content; | 23 | import com.hjx.personalcenter.db.Content; |
| 24 | import com.hjx.personalcenter.db.SaveParam; | 24 | import com.hjx.personalcenter.db.SaveParam; |
| 25 | import com.hjx.personalcenter.http.HttpCode; | 25 | import com.hjx.personalcenter.http.HttpCode; |
| 26 | import com.hjx.personalcenter.http.HttpManager; | 26 | import com.hjx.personalcenter.http.HttpManager; |
| 27 | import com.hjx.personalcenter.interfaces.DialogCallBack; | 27 | import com.hjx.personalcenter.interfaces.DialogCallBack; |
| 28 | import com.hjx.personalcenter.model.SchoolInfo; | 28 | import com.hjx.personalcenter.model.SchoolInfo; |
| 29 | import com.mylhyl.circledialog.BaseCircleDialog; | 29 | import com.mylhyl.circledialog.BaseCircleDialog; |
| 30 | import com.mylhyl.circledialog.res.values.CircleDimen; | 30 | import com.mylhyl.circledialog.res.values.CircleDimen; |
| 31 | 31 | ||
| 32 | import java.util.ArrayList; | 32 | import java.util.ArrayList; |
| 33 | import java.util.List; | 33 | import java.util.List; |
| 34 | 34 | ||
| 35 | /** | 35 | /** |
| 36 | * Created by h on 2017/8/21. | 36 | * Created by h on 2017/8/21. |
| 37 | */ | 37 | */ |
| 38 | @SuppressLint("ValidFragment") | 38 | @SuppressLint("ValidFragment") |
| 39 | public class SchoolListDialog extends BaseCircleDialog implements AdapterView.OnItemClickListener { | 39 | public class SchoolListDialog extends BaseCircleDialog implements AdapterView.OnItemClickListener { |
| 40 | private ListView school_list; | 40 | private ListView school_list; |
| 41 | private EditText school_sech; | 41 | private EditText school_sech; |
| 42 | private SchoolAdapter listadapter; | 42 | private SchoolAdapter listadapter; |
| 43 | private ImageView cance; | 43 | private ImageView cance; |
| 44 | private View mView; | 44 | private View mView; |
| 45 | boolean isFilter; | 45 | boolean isFilter; |
| 46 | ArrayList<SchoolInfo.DataBean> data = new ArrayList<>(); | 46 | ArrayList<SchoolInfo.DataBean> data = new ArrayList<>(); |
| 47 | private DialogCallBack.SchoolCallBack mCallBack; | 47 | private DialogCallBack.SchoolCallBack mCallBack; |
| 48 | 48 | ||
| 49 | // public SchoolListDialog(DialogCallBack.CallBackView callBack) { | 49 | // public SchoolListDialog(DialogCallBack.CallBackView callBack) { |
| 50 | // this.mCallBack = callBack; | 50 | // this.mCallBack = callBack; |
| 51 | // } | 51 | // } |
| 52 | public SchoolListDialog(DialogCallBack.SchoolCallBack callBack) { | 52 | public SchoolListDialog(DialogCallBack.SchoolCallBack callBack) { |
| 53 | this.mCallBack = callBack; | 53 | this.mCallBack = callBack; |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | public static SchoolListDialog getInstance(DialogCallBack.SchoolCallBack mCallBack) { | 56 | public static SchoolListDialog getInstance(DialogCallBack.SchoolCallBack mCallBack) { |
| 57 | SchoolListDialog dialogFragment = new SchoolListDialog(mCallBack); | 57 | SchoolListDialog dialogFragment = new SchoolListDialog(mCallBack); |
| 58 | dialogFragment.setCanceledBack(true); | 58 | dialogFragment.setCanceledBack(true); |
| 59 | dialogFragment.setCanceledOnTouchOutside(true); | 59 | dialogFragment.setCanceledOnTouchOutside(true); |
| 60 | dialogFragment.setRadius(CircleDimen.RADIUS); | 60 | dialogFragment.setRadius(CircleDimen.RADIUS); |
| 61 | dialogFragment.setWidth(0.5f); | 61 | dialogFragment.setWidth(0.5f); |
| 62 | dialogFragment.setGravity(Gravity.CENTER); | 62 | dialogFragment.setGravity(Gravity.CENTER); |
| 63 | dialogFragment.setBackgroundColor(Color.WHITE); | 63 | dialogFragment.setBackgroundColor(Color.WHITE); |
| 64 | return dialogFragment; | 64 | return dialogFragment; |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | Handler handler = new Handler(){ | 67 | Handler handler = new Handler(){ |
| 68 | @Override | 68 | @Override |
| 69 | public void handleMessage(Message msg) { | 69 | public void handleMessage(Message msg) { |
| 70 | super.handleMessage(msg); | 70 | super.handleMessage(msg); |
| 71 | switch (msg.what){ | 71 | switch (msg.what){ |
| 72 | case HttpCode.SCHOOL: | 72 | case HttpCode.SCHOOL: |
| 73 | data.clear(); | 73 | data.clear(); |
| 74 | data.addAll( (List<SchoolInfo.DataBean>)msg.obj); | 74 | data.addAll( (List<SchoolInfo.DataBean>)msg.obj); |
| 75 | listadapter.notifyDataSetChanged(); | 75 | listadapter.notifyDataSetChanged(); |
| 76 | break; | 76 | break; |
| 77 | case HttpCode.SCOOL: | ||
| 78 | data.clear(); | ||
| 79 | data.addAll( (List<SchoolInfo.DataBean>)msg.obj); | ||
| 80 | listadapter.notifyDataSetChanged(); | ||
| 81 | break; | ||
| 77 | } | 82 | } |
| 78 | } | 83 | } |
| 79 | }; | 84 | }; |
| 80 | 85 | ||
| 81 | 86 | ||
| 82 | @Override | 87 | @Override |
| 83 | public View createView(Context context, LayoutInflater inflater, ViewGroup container) { | 88 | public View createView(Context context, LayoutInflater inflater, ViewGroup container) { |
| 84 | 89 | ||
| 85 | if (mView == null) { | 90 | if (mView == null) { |
| 86 | mView = inflater.inflate(R.layout.custom_adilog_school_list, container, false); | 91 | mView = inflater.inflate(R.layout.custom_adilog_school_list, container, false); |
| 87 | //mCallBack.provinceOnItemClick(context, inflater, container); | 92 | //mCallBack.provinceOnItemClick(context, inflater, container); |
| 88 | } | 93 | } |
| 89 | return mView; | 94 | return mView; |
| 90 | } | 95 | } |
| 91 | 96 | ||
| 92 | @Override | 97 | @Override |
| 93 | public void onActivityCreated(Bundle savedInstanceState) { | 98 | public void onActivityCreated(Bundle savedInstanceState) { |
| 94 | super.onActivityCreated(savedInstanceState); | 99 | super.onActivityCreated(savedInstanceState); |
| 95 | school_list = (ListView) getView().findViewById(R.id.listschooladapter); | 100 | school_list = (ListView) getView().findViewById(R.id.listschooladapter); |
| 96 | school_sech = (EditText) getView().findViewById(R.id.et_school_sech); | 101 | school_sech = (EditText) getView().findViewById(R.id.et_school_sech); |
| 97 | cance = (ImageView) getView().findViewById(R.id.cancel); | 102 | cance = (ImageView) getView().findViewById(R.id.cancel); |
| 98 | String citys = SaveParam.getInstance().getsaveCityParam(getActivity(), SaveParam.CITYS); | 103 | String citys = SaveParam.getInstance().getsaveCityParam(getActivity(), SaveParam.CITYS); |
| 99 | String country = SaveParam.getInstance().getsaveCityParam(getActivity(), SaveParam.COUNTRY); | 104 | String country = SaveParam.getInstance().getsaveCityParam(getActivity(), SaveParam.COUNTRY); |
| 100 | 105 | ||
| 101 | String grade = null; | 106 | String grade = null; |
| 102 | 107 | ||
| 103 | if (Content.changeadressinfoflag == 1&&Content.changegradeinfoflag == 2 ){ | 108 | if (Content.changeadressinfoflag == 1&&Content.changegradeinfoflag == 2 ){ |
| 104 | if (country==null){ | 109 | if (country==null){ |
| 105 | country =citys; | 110 | country =citys; |
| 106 | Log.e("test","Content.changeinfoflag == 1"+country+"年级ID"+grade); | 111 | Log.e("test","Content.changeinfoflag == 1"+country+"年级ID"+grade); |
| 107 | } | 112 | } |
| 108 | grade=SaveParam.getInstance().getLoginParam(getActivity(), SaveParam.CHILDSGRADENS); | 113 | grade=SaveParam.getInstance().getLoginParam(getActivity(), SaveParam.CHILDSGRADENS); |
| 109 | Log.e("test","地区ID"+country+"年级ID"+grade); | 114 | Log.e("test","地区ID"+country+"年级ID"+grade); |
| 110 | 115 | ||
| 111 | }else if(Content.changegradeinfoflag == 2){ | 116 | }else if(Content.changegradeinfoflag == 2){ |
| 112 | grade=SaveParam.getInstance().getLoginParam(getActivity(), SaveParam.CHILDSGRADENS); | 117 | grade=SaveParam.getInstance().getLoginParam(getActivity(), SaveParam.CHILDSGRADENS); |
| 113 | country =SaveParam.getInstance().getLoginParam(getActivity(), SaveParam.ADRESSID); | 118 | country =SaveParam.getInstance().getLoginParam(getActivity(), SaveParam.ADRESSID); |
| 114 | Log.e("test","Content.changeinfoflag == 2"+country+"年级ID"+grade); | 119 | Log.e("test","Content.changeinfoflag == 2"+country+"年级ID"+grade); |
| 115 | }else if(Content.changeadressinfoflag == 1){ | 120 | }else if(Content.changeadressinfoflag == 1){ |
| 116 | if (country==null){ | 121 | if (country==null){ |
| 117 | country =citys; | 122 | country =citys; |
| 118 | Log.e("test","Content.changeinfoflag == 1"+country+"年级ID"+grade); | 123 | Log.e("test","Content.changeinfoflag == 1"+country+"年级ID"+grade); |
| 119 | } | 124 | } |
| 120 | grade=SaveParam.getInstance().getLoginParam(getActivity(), SaveParam.GRADENS); | 125 | grade=SaveParam.getInstance().getLoginParam(getActivity(), SaveParam.GRADENS); |
| 121 | }else { | 126 | }else { |
| 122 | grade=SaveParam.getInstance().getLoginParam(getActivity(), SaveParam.GRADENS); | 127 | grade=SaveParam.getInstance().getLoginParam(getActivity(), SaveParam.GRADENS); |
| 123 | country =SaveParam.getInstance().getLoginParam(getActivity(), SaveParam.ADRESSID); | 128 | country =SaveParam.getInstance().getLoginParam(getActivity(), SaveParam.ADRESSID); |
| 124 | 129 | ||
| 125 | } | 130 | } |
| 126 | listadapter = new SchoolAdapter(data, getActivity()); | 131 | listadapter = new SchoolAdapter(data, getActivity(),handler); |
| 127 | school_list.setAdapter(listadapter); | 132 | school_list.setAdapter(listadapter); |
| 128 | school_list.setOnItemClickListener(this); | 133 | school_list.setOnItemClickListener(this); |
| 129 | cance.setOnClickListener(new View.OnClickListener() { | 134 | cance.setOnClickListener(new View.OnClickListener() { |
| 130 | @Override | 135 | @Override |
| 131 | public void onClick(View v) { | 136 | public void onClick(View v) { |
| 132 | dismiss(); | 137 | dismiss(); |
| 133 | } | 138 | } |
| 134 | }); | 139 | }); |
| 135 | try { | 140 | try { |
| 136 | int a = Integer.parseInt(country); | 141 | int a = Integer.parseInt(country); |
| 137 | int b = Integer.parseInt(grade); | 142 | int b = Integer.parseInt(grade); |
| 138 | HttpManager.getInstance().getschool(getActivity(),a,b,handler); | 143 | HttpManager.getInstance().getschool(getActivity(),a,b,handler); |
| 139 | } catch (NumberFormatException e) { | 144 | } catch (NumberFormatException e) { |
| 140 | e.printStackTrace(); | 145 | e.printStackTrace(); |
| 141 | } | 146 | } |
| 142 | intiEditView(); | 147 | intiEditView(); |
| 143 | 148 | ||
| 144 | 149 | ||
| 145 | } | 150 | } |
| 146 | 151 | ||
| 147 | private void intiEditView() { | 152 | private void intiEditView() { |
| 148 | school_sech.addTextChangedListener(new TextWatcher() { | 153 | school_sech.addTextChangedListener(new TextWatcher() { |
| 149 | @Override | 154 | @Override |
| 150 | public void beforeTextChanged(CharSequence s, int start, int count, int after) { | 155 | public void beforeTextChanged(CharSequence s, int start, int count, int after) { |
| 151 | 156 | ||
| 152 | } | 157 | } |
| 153 | 158 | ||
| 154 | @Override | 159 | @Override |
| 155 | public void onTextChanged(CharSequence s, int start, int before, int count) { | 160 | public void onTextChanged(CharSequence s, int start, int before, int count) { |
| 156 | // mAdapter.getFilter().filter(s); | 161 | // mAdapter.getFilter().filter(s); |
| 157 | 162 | ||
| 158 | listadapter.getFilter().filter(s); | 163 | listadapter.getFilter().filter(school_sech.getText().toString()); |
| 159 | } | 164 | } |
| 160 | 165 | ||
| 161 | @Override | 166 | @Override |
| 162 | public void afterTextChanged(Editable s) { | 167 | public void afterTextChanged(Editable s) { |
| 168 | //listadapter.notifyDataSetInvalidated(); | ||
| 163 | 169 | ||
| 164 | } | 170 | } |
| 165 | }); | 171 | }); |
| 166 | } | 172 | } |
| 167 | 173 | ||
| 168 | @Override | 174 | @Override |
| 169 | public void onItemClick(AdapterView<?> parent, View view, int position, long id) { | 175 | public void onItemClick(AdapterView<?> parent, View view, int position, long id) { |
| 170 | SaveParam.getInstance().saveLoginParam(getActivity(), SaveParam.SCHOOOlID, ""+data.get(position).getSchoolId()); | 176 | SaveParam.getInstance().saveLoginParam(getActivity(), SaveParam.SCHOOOlID, ""+data.get(position).getSchoolId()); |
| 171 | mCallBack.provinceO4nItemClick(data,position,4); | 177 | mCallBack.provinceO4nItemClick(data,position,4); |
| 172 | dismiss(); | 178 | dismiss(); |
| 173 | 179 | ||
| 174 | } | 180 | } |
| 175 | } | 181 | } |
| 176 | 182 |
PersonalCenter/app/src/main/java/com/hjx/personalcenter/http/HttpCode.java
| 1 | package com.hjx.personalcenter.http; | 1 | package com.hjx.personalcenter.http; |
| 2 | 2 | ||
| 3 | /** | 3 | /** |
| 4 | * Created by wei on 2017/6/21. | 4 | * Created by wei on 2017/6/21. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | public class HttpCode { | 7 | public class HttpCode { |
| 8 | //查询保卡信息 | 8 | //查询保卡信息 |
| 9 | public static final int SUCHCARDINFO = 0; | 9 | public static final int SUCHCARDINFO = 0; |
| 10 | //是否填写保卡信息 | 10 | //是否填写保卡信息 |
| 11 | public static final int CHECKCARD = 1; | 11 | public static final int CHECKCARD = 1; |
| 12 | //注册 | 12 | //注册 |
| 13 | public static final int REGISTERED_SUCESS = 2; | 13 | public static final int REGISTERED_SUCESS = 2; |
| 14 | public static final int REGISTERED_FAIL = 3; | 14 | public static final int REGISTERED_FAIL = 3; |
| 15 | //注册验证码 | 15 | //注册验证码 |
| 16 | public static final int AUTHCODE_SUCESS = 4; | 16 | public static final int AUTHCODE_SUCESS = 4; |
| 17 | public static final int AUTHCODE_FAIL = 5; | 17 | public static final int AUTHCODE_FAIL = 5; |
| 18 | //忘记密码验证码 | 18 | //忘记密码验证码 |
| 19 | public static final int AUTHCODE_SUCESS1 = 6; | 19 | public static final int AUTHCODE_SUCESS1 = 6; |
| 20 | public static final int AUTHCODE_FAIL1 = 7; | 20 | public static final int AUTHCODE_FAIL1 = 7; |
| 21 | //是否已经注册 | 21 | //是否已经注册 |
| 22 | public static final int IS_REFISTER = 8; | 22 | public static final int IS_REFISTER = 8; |
| 23 | //忘记密码 | 23 | //忘记密码 |
| 24 | public static final int PASSWORD_SUCESS = 9; | 24 | public static final int PASSWORD_SUCESS = 9; |
| 25 | public static final int PASSWORD_FAIL = 10; | 25 | public static final int PASSWORD_FAIL = 10; |
| 26 | //s省 | 26 | //s省 |
| 27 | public static final int PROVICES = 11; | 27 | public static final int PROVICES = 11; |
| 28 | //市 | 28 | //市 |
| 29 | public static final int CITYS = 12; | 29 | public static final int CITYS = 12; |
| 30 | //区 | 30 | //区 |
| 31 | public static final int COUNTRY = 13; | 31 | public static final int COUNTRY = 13; |
| 32 | //学校 | 32 | //学校 |
| 33 | public static final int SCHOOL = 14; | 33 | public static final int SCHOOL = 14; |
| 34 | //年级 | 34 | //年级 |
| 35 | public static final int GRADER = 15; | 35 | public static final int GRADER = 15; |
| 36 | //获取个人信息 | 36 | //获取个人信息 |
| 37 | public static final int GETINFO = 16; | 37 | public static final int GETINFO = 16; |
| 38 | //获取个性签名 | 38 | //获取个性签名 |
| 39 | public static final int SIGN = 17; | 39 | public static final int SIGN = 17; |
| 40 | //登录 | 40 | //登录 |
| 41 | public static final int LOGIN_SUCESS = 18; | 41 | public static final int LOGIN_SUCESS = 18; |
| 42 | //获取子账户信息 | 42 | //获取子账户信息 |
| 43 | public static final int CHILDS_SUCESS = 19; | 43 | public static final int CHILDS_SUCESS = 19; |
| 44 | //版本升级 | 44 | //版本升级 |
| 45 | public static final int APPUPDATE_SUCESS = 20; | 45 | public static final int APPUPDATE_SUCESS = 20; |
| 46 | //获取出版社 | 46 | //获取出版社 |
| 47 | public static final int VERSION_SUCESS = 22; | 47 | public static final int VERSION_SUCESS = 22; |
| 48 | //注册信息是否完整 | 48 | //注册信息是否完整 |
| 49 | public static final int REGISTER_SUCESS = 23; | 49 | public static final int REGISTER_SUCESS = 23; |
| 50 | //获取默认版本信息 | 50 | //获取默认版本信息 |
| 51 | public static final int PUBLISH_SUCESS = 24; | 51 | public static final int PUBLISH_SUCESS = 24; |
| 52 | //注册信息提交 | 52 | //注册信息提交 |
| 53 | public static final int REGISTERINFO_SUCESS = 25; | 53 | public static final int REGISTERINFO_SUCESS = 25; |
| 54 | //获取视频信息 | 54 | //获取视频信息 |
| 55 | public static final int GETVIDIO_SUCESS = 26; | 55 | public static final int GETVIDIO_SUCESS = 26; |
| 56 | //查询保卡信息1 | 56 | //查询保卡信息1 |
| 57 | public static final int SUCHCARDINFOONE = 27; | 57 | public static final int SUCHCARDINFOONE = 27; |
| 58 | //个人信息 | 58 | //个人信息 |
| 59 | public static final int PESERNAOL = 28; | 59 | public static final int PESERNAOL = 28; |
| 60 | //touxan | 60 | //touxan |
| 61 | public static final int TOUXIANG = 29; | 61 | public static final int TOUXIANG = 29; |
| 62 | //学校 | ||
| 63 | public static final int SCOOL = 29; | ||
| 62 | 64 | ||
| 63 | 65 | ||
| 64 | } | 66 | } |
| 65 | 67 |
PersonalCenter/app/src/main/res/layout/activity_main.xml
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | android:layout_width="match_parent" | 3 | android:layout_width="match_parent" |
| 4 | android:layout_height="match_parent" | 4 | android:layout_height="match_parent" |
| 5 | xmlns:fresco="http://schemas.android.com/apk/res-auto" | 5 | xmlns:fresco="http://schemas.android.com/apk/res-auto" |
| 6 | android:background="@color/white" | 6 | android:background="@color/white" |
| 7 | android:orientation="vertical"> | 7 | android:orientation="vertical"> |
| 8 | 8 | ||
| 9 | <RelativeLayout | 9 | <RelativeLayout |
| 10 | android:id="@+id/title" | 10 | android:id="@+id/title" |
| 11 | android:layout_width="match_parent" | 11 | android:layout_width="match_parent" |
| 12 | android:layout_height="50dp" | 12 | android:layout_height="50dp" |
| 13 | android:background="@color/login_text_blue"> | 13 | android:background="@color/login_text_blue"> |
| 14 | 14 | ||
| 15 | <ImageView | 15 | <ImageView |
| 16 | android:id="@+id/cancel" | 16 | android:id="@+id/cancel" |
| 17 | android:layout_width="wrap_content" | 17 | android:layout_width="wrap_content" |
| 18 | android:layout_height="match_parent" | 18 | android:layout_height="match_parent" |
| 19 | android:paddingLeft="20dp" | 19 | android:paddingLeft="20dp" |
| 20 | android:paddingRight="20dp" | 20 | android:paddingRight="20dp" |
| 21 | android:visibility="gone" | 21 | android:visibility="gone" |
| 22 | android:src="@mipmap/title_back" /> | 22 | android:src="@mipmap/title_back" /> |
| 23 | 23 | ||
| 24 | <TextView | 24 | <TextView |
| 25 | android:id="@+id/menu_title" | 25 | android:id="@+id/menu_title" |
| 26 | android:layout_width="wrap_content" | 26 | android:layout_width="wrap_content" |
| 27 | android:layout_height="match_parent" | 27 | android:layout_height="match_parent" |
| 28 | android:layout_centerInParent="true" | 28 | android:layout_centerInParent="true" |
| 29 | android:gravity="center_vertical" | 29 | android:gravity="center_vertical" |
| 30 | android:text="@string/titel_preson" | 30 | android:text="@string/titel_preson" |
| 31 | android:textColor="@android:color/white" | 31 | android:textColor="@android:color/white" |
| 32 | android:textSize="22sp" /> | 32 | android:textSize="22sp" /> |
| 33 | 33 | ||
| 34 | <ImageView | 34 | <ImageView |
| 35 | android:id="@+id/iv_setting" | 35 | android:id="@+id/iv_setting" |
| 36 | android:layout_width="wrap_content" | 36 | android:layout_width="wrap_content" |
| 37 | android:layout_height="match_parent" | 37 | android:layout_height="match_parent" |
| 38 | android:layout_marginRight="10dp" | 38 | android:layout_marginRight="10dp" |
| 39 | android:layout_toLeftOf="@+id/iv_skin" | 39 | android:layout_toLeftOf="@+id/iv_skin" |
| 40 | android:gravity="center_vertical" | 40 | android:gravity="center_vertical" |
| 41 | android:padding="10dp" | 41 | android:padding="10dp" |
| 42 | android:src="@mipmap/shezhi1" | 42 | android:src="@mipmap/shezhi1" |
| 43 | android:textColor="@android:color/white" | 43 | android:textColor="@android:color/white" |
| 44 | android:textSize="22sp" /> | 44 | android:textSize="22sp" /> |
| 45 | 45 | ||
| 46 | <ImageView | 46 | <ImageView |
| 47 | android:id="@+id/iv_skin" | 47 | android:id="@+id/iv_skin" |
| 48 | android:layout_width="wrap_content" | 48 | android:layout_width="wrap_content" |
| 49 | android:layout_height="match_parent" | 49 | android:layout_height="match_parent" |
| 50 | android:layout_marginRight="10dp" | 50 | android:layout_marginRight="10dp" |
| 51 | android:layout_toLeftOf="@+id/iv_imformatioan" | 51 | android:layout_toLeftOf="@+id/iv_imformatioan" |
| 52 | android:gravity="center_vertical" | 52 | android:gravity="center_vertical" |
| 53 | android:padding="10dp" | 53 | android:padding="10dp" |
| 54 | android:src="@mipmap/pifu" | 54 | android:src="@mipmap/pifu" |
| 55 | android:textColor="@android:color/white" | 55 | android:textColor="@android:color/white" |
| 56 | android:visibility="gone" | 56 | android:visibility="gone" |
| 57 | android:textSize="22sp" /> | 57 | android:textSize="22sp" /> |
| 58 | 58 | ||
| 59 | <ImageView | 59 | <ImageView |
| 60 | android:id="@+id/iv_imformatioan" | 60 | android:id="@+id/iv_imformatioan" |
| 61 | android:layout_width="wrap_content" | 61 | android:layout_width="wrap_content" |
| 62 | android:layout_height="match_parent" | 62 | android:layout_height="match_parent" |
| 63 | android:layout_alignParentRight="true" | 63 | android:layout_alignParentRight="true" |
| 64 | android:layout_marginRight="10dp" | 64 | android:layout_marginRight="10dp" |
| 65 | android:gravity="center_vertical" | 65 | android:gravity="center_vertical" |
| 66 | android:padding="10dp" | 66 | android:padding="10dp" |
| 67 | android:src="@mipmap/fankui1" | 67 | android:src="@mipmap/fankui1" |
| 68 | android:textColor="@android:color/white" | 68 | android:textColor="@android:color/white" |
| 69 | android:textSize="22sp" /> | 69 | android:textSize="22sp" /> |
| 70 | 70 | ||
| 71 | 71 | ||
| 72 | </RelativeLayout> | 72 | </RelativeLayout> |
| 73 | 73 | ||
| 74 | <LinearLayout | 74 | <LinearLayout |
| 75 | android:layout_width="match_parent" | 75 | android:layout_width="match_parent" |
| 76 | android:layout_height="match_parent"> | 76 | android:layout_height="match_parent"> |
| 77 | 77 | ||
| 78 | <LinearLayout | 78 | <LinearLayout |
| 79 | android:layout_width="0dp" | 79 | android:layout_width="0dp" |
| 80 | android:layout_height="match_parent" | 80 | android:layout_height="match_parent" |
| 81 | android:layout_weight="1.2" | 81 | android:layout_weight="1.2" |
| 82 | android:orientation="vertical" | 82 | android:orientation="vertical" |
| 83 | android:background="@mipmap/head_bg"> | 83 | android:background="@mipmap/head_bg"> |
| 84 | <RelativeLayout | 84 | <RelativeLayout |
| 85 | android:layout_width="wrap_content" | 85 | android:layout_width="wrap_content" |
| 86 | android:layout_marginTop="118dp" | 86 | android:layout_marginTop="118dp" |
| 87 | android:layout_height="250sp"> | 87 | android:layout_height="250sp"> |
| 88 | 88 | ||
| 89 | <LinearLayout | 89 | <LinearLayout |
| 90 | android:id="@+id/ssss" | 90 | android:id="@+id/ssss" |
| 91 | android:layout_width="match_parent" | 91 | android:layout_width="match_parent" |
| 92 | android:layout_height="wrap_content" | 92 | android:layout_height="wrap_content" |
| 93 | android:layout_marginTop="28dp" | 93 | android:layout_marginTop="28dp" |
| 94 | android:gravity="center" | 94 | android:gravity="center" |
| 95 | android:orientation="horizontal"> | 95 | android:orientation="horizontal"> |
| 96 | <com.hjx.personalcenter.View.RoundImageView60dip | 96 | <com.hjx.personalcenter.View.RoundImageView60dip |
| 97 | android:id="@+id/iv_head" | 97 | android:id="@+id/iv_head" |
| 98 | android:layout_width="70dp" | 98 | android:layout_width="70dp" |
| 99 | android:layout_height="70dp" | 99 | android:layout_height="70dp" |
| 100 | android:scaleType="centerCrop" | 100 | android:scaleType="centerCrop" |
| 101 | android:background="@mipmap/header_default" | 101 | android:background="@mipmap/header_default" |
| 102 | /> | 102 | /> |
| 103 | 103 | ||
| 104 | <TextView | 104 | <TextView |
| 105 | android:layout_width="wrap_content" | 105 | android:layout_width="wrap_content" |
| 106 | android:layout_height="wrap_content" | 106 | android:layout_height="wrap_content" |
| 107 | android:layout_marginLeft="18dp" | 107 | android:layout_marginLeft="18dp" |
| 108 | android:layout_marginTop="20dp" | 108 | android:layout_marginTop="20dp" |
| 109 | android:background="@drawable/corcle_blue_bg" | 109 | android:background="@drawable/corcle_blue_bg" |
| 110 | android:paddingLeft="5dp" | 110 | android:paddingLeft="5dp" |
| 111 | android:paddingRight="5dp" | 111 | android:paddingRight="5dp" |
| 112 | android:gravity="center_vertical" | 112 | android:gravity="center_vertical" |
| 113 | android:text="签到" | 113 | android:text="签到" |
| 114 | android:textColor="@color/login_text_blue" | 114 | android:textColor="@color/login_text_blue" |
| 115 | android:visibility="gone" | 115 | android:visibility="gone" |
| 116 | android:textSize="18sp" /> | 116 | android:textSize="18sp" /> |
| 117 | 117 | ||
| 118 | </LinearLayout> | 118 | </LinearLayout> |
| 119 | 119 | ||
| 120 | <LinearLayout | 120 | <LinearLayout |
| 121 | android:id="@+id/sssssss" | 121 | android:id="@+id/sssssss" |
| 122 | android:layout_width="match_parent" | 122 | android:layout_width="match_parent" |
| 123 | android:layout_height="wrap_content" | 123 | android:layout_height="wrap_content" |
| 124 | android:layout_marginLeft="20dp" | 124 | android:layout_marginLeft="20dp" |
| 125 | android:layout_below="@id/ssss" | 125 | android:layout_below="@id/ssss" |
| 126 | android:layout_marginTop="25dp" | 126 | android:layout_marginTop="25dp" |
| 127 | android:gravity="center" | 127 | android:gravity="center" |
| 128 | android:orientation="horizontal"> | 128 | android:orientation="horizontal"> |
| 129 | 129 | ||
| 130 | <TextView | 130 | <TextView |
| 131 | android:id="@+id/tv_username" | 131 | android:id="@+id/tv_username" |
| 132 | android:layout_width="wrap_content" | 132 | android:layout_width="wrap_content" |
| 133 | android:layout_height="wrap_content" | 133 | android:layout_height="wrap_content" |
| 134 | android:text="" | 134 | android:text="" |
| 135 | android:gravity="center" | 135 | android:gravity="center" |
| 136 | android:textSize="22sp" /> | 136 | android:textSize="22sp" /> |
| 137 | <TextView | 137 | <TextView |
| 138 | android:id="@+id/tv_yangji" | 138 | android:id="@+id/tv_yangji" |
| 139 | android:layout_marginLeft="5dp" | 139 | android:layout_marginLeft="5dp" |
| 140 | android:layout_width="wrap_content" | 140 | android:layout_width="wrap_content" |
| 141 | android:layout_height="wrap_content" | 141 | android:layout_height="wrap_content" |
| 142 | android:text="(样机)" | 142 | android:text="(样机)" |
| 143 | android:textSize="20dp" | 143 | android:textSize="20dp" |
| 144 | android:visibility="gone"/> | 144 | android:visibility="gone"/> |
| 145 | 145 | ||
| 146 | <ImageView | 146 | <ImageView |
| 147 | android:id="@+id/iv_sex" | 147 | android:id="@+id/iv_sex" |
| 148 | android:layout_width="wrap_content" | 148 | android:layout_width="wrap_content" |
| 149 | android:layout_height="wrap_content" | 149 | android:layout_height="wrap_content" |
| 150 | android:layout_gravity="center_vertical" | 150 | android:layout_gravity="center_vertical" |
| 151 | android:layout_marginLeft="5dp" | 151 | android:layout_marginLeft="5dp" |
| 152 | android:src="@mipmap/men" /> | 152 | android:src="@mipmap/men" /> |
| 153 | 153 | ||
| 154 | </LinearLayout> | 154 | </LinearLayout> |
| 155 | 155 | ||
| 156 | <LinearLayout | 156 | <LinearLayout |
| 157 | android:layout_below="@id/sssssss" | 157 | android:layout_below="@id/sssssss" |
| 158 | android:layout_width="match_parent" | 158 | android:layout_width="match_parent" |
| 159 | android:layout_height="wrap_content" | 159 | android:layout_height="wrap_content" |
| 160 | android:layout_marginLeft="20dp" | 160 | android:layout_marginLeft="20dp" |
| 161 | android:layout_marginTop="10dp" | 161 | android:layout_marginTop="10dp" |
| 162 | android:gravity="center" | 162 | android:gravity="center" |
| 163 | android:orientation="horizontal"> | 163 | android:orientation="horizontal"> |
| 164 | 164 | ||
| 165 | <TextView | 165 | <TextView |
| 166 | android:id="@+id/tv_sign" | 166 | android:id="@+id/tv_sign" |
| 167 | android:layout_height="wrap_content" | 167 | android:layout_height="wrap_content" |
| 168 | android:layout_width="wrap_content" | 168 | android:layout_width="wrap_content" |
| 169 | android:hint="请输入个性签名" | 169 | android:hint="请输入个性签名" |
| 170 | android:maxLines="3" | 170 | android:maxLines="3" |
| 171 | android:padding="10dp" | 171 | android:padding="10dp" |
| 172 | android:gravity="center" | 172 | android:gravity="center" |
| 173 | android:maxLength="40" | 173 | android:maxLength="40" |
| 174 | android:ellipsize="end" | 174 | android:ellipsize="end" |
| 175 | android:textSize="16sp" | 175 | android:textSize="16sp" |
| 176 | android:drawableRight="@mipmap/gerenxinxibianji"/> | 176 | android:drawableRight="@mipmap/gerenxinxibianji"/> |
| 177 | 177 | ||
| 178 | <ImageView | 178 | <ImageView |
| 179 | android:id="@+id/iv_sign" | 179 | android:id="@+id/iv_sign" |
| 180 | android:layout_width="wrap_content" | 180 | android:layout_width="wrap_content" |
| 181 | android:layout_height="wrap_content" | 181 | android:layout_height="wrap_content" |
| 182 | android:scaleType="center" | 182 | android:scaleType="center" |
| 183 | android:padding="10dp" | 183 | android:padding="10dp" |
| 184 | android:visibility="gone" | 184 | android:visibility="gone" |
| 185 | android:src="@mipmap/gerenxinxibianji" /> | 185 | android:src="@mipmap/gerenxinxibianji" /> |
| 186 | 186 | ||
| 187 | 187 | ||
| 188 | </LinearLayout> | 188 | </LinearLayout> |
| 189 | </RelativeLayout> | 189 | </RelativeLayout> |
| 190 | <View | 190 | <View |
| 191 | android:layout_width="match_parent" | 191 | android:layout_width="match_parent" |
| 192 | android:layout_height="0.7dp" | 192 | android:layout_height="0.7dp" |
| 193 | android:background="@color/cutoff_line" | 193 | android:background="@color/cutoff_line" |
| 194 | android:visibility="gone"> | 194 | android:visibility="gone"> |
| 195 | 195 | ||
| 196 | </View> | 196 | </View> |
| 197 | 197 | ||
| 198 | <LinearLayout | 198 | <LinearLayout |
| 199 | android:layout_width="match_parent" | 199 | android:layout_width="match_parent" |
| 200 | android:layout_height="50dp" | 200 | android:layout_height="50dp" |
| 201 | android:orientation="vertical" | 201 | android:orientation="vertical" |
| 202 | android:visibility="invisible"> | 202 | android:visibility="invisible"> |
| 203 | 203 | ||
| 204 | <LinearLayout | 204 | <LinearLayout |
| 205 | android:layout_width="match_parent" | 205 | android:layout_width="match_parent" |
| 206 | android:layout_height="wrap_content" | 206 | android:layout_height="wrap_content" |
| 207 | android:gravity="center_vertical" | 207 | android:gravity="center_vertical" |
| 208 | android:orientation="horizontal"> | 208 | android:orientation="horizontal"> |
| 209 | 209 | ||
| 210 | <ImageView | 210 | <ImageView |
| 211 | android:layout_width="0dp" | 211 | android:layout_width="0dp" |
| 212 | android:layout_height="wrap_content" | 212 | android:layout_height="wrap_content" |
| 213 | android:layout_weight="1" | 213 | android:layout_weight="1" |
| 214 | android:paddingTop="20dp" | 214 | android:paddingTop="20dp" |
| 215 | android:paddingBottom="20dp" | 215 | android:paddingBottom="20dp" |
| 216 | android:src="@mipmap/wodecuoti1" /> | 216 | android:src="@mipmap/wodecuoti1" /> |
| 217 | 217 | ||
| 218 | <TextView | 218 | <TextView |
| 219 | android:id="@+id/linel_mycuoti" | 219 | android:id="@+id/linel_mycuoti" |
| 220 | android:layout_width="0dp" | 220 | android:layout_width="0dp" |
| 221 | android:layout_height="wrap_content" | 221 | android:layout_height="wrap_content" |
| 222 | android:layout_weight="1" | 222 | android:layout_weight="1" |
| 223 | android:paddingTop="20dp" | 223 | android:paddingTop="20dp" |
| 224 | android:paddingBottom="20dp" | 224 | android:paddingBottom="20dp" |
| 225 | android:text="我的错题" | 225 | android:text="我的错题" |
| 226 | android:textSize="20sp" /> | 226 | android:textSize="20sp" /> |
| 227 | <View | 227 | <View |
| 228 | android:layout_width="1dp" | 228 | android:layout_width="1dp" |
| 229 | android:layout_height="match_parent" | 229 | android:layout_height="match_parent" |
| 230 | android:background="@color/cutoff_line"> | 230 | android:background="@color/cutoff_line"> |
| 231 | 231 | ||
| 232 | </View> | 232 | </View> |
| 233 | 233 | ||
| 234 | <ImageView | 234 | <ImageView |
| 235 | android:layout_width="0dp" | 235 | android:layout_width="0dp" |
| 236 | android:layout_height="wrap_content" | 236 | android:layout_height="wrap_content" |
| 237 | android:layout_weight="1" | 237 | android:layout_weight="1" |
| 238 | android:paddingTop="20dp" | 238 | android:paddingTop="20dp" |
| 239 | android:paddingBottom="20dp" | 239 | android:paddingBottom="20dp" |
| 240 | android:src="@mipmap/wodebiji1" /> | 240 | android:src="@mipmap/wodebiji1" /> |
| 241 | <TextView | 241 | <TextView |
| 242 | android:id="@+id/linel_mynote" | 242 | android:id="@+id/linel_mynote" |
| 243 | android:layout_width="0dp" | 243 | android:layout_width="0dp" |
| 244 | android:layout_height="wrap_content" | 244 | android:layout_height="wrap_content" |
| 245 | android:layout_weight="1" | 245 | android:layout_weight="1" |
| 246 | android:paddingTop="20dp" | 246 | android:paddingTop="20dp" |
| 247 | android:paddingBottom="20dp" | 247 | android:paddingBottom="20dp" |
| 248 | android:text="我的笔记" | 248 | android:text="我的笔记" |
| 249 | android:textSize="20sp" /> | 249 | android:textSize="20sp" /> |
| 250 | 250 | ||
| 251 | </LinearLayout> | 251 | </LinearLayout> |
| 252 | <View | 252 | <View |
| 253 | android:layout_width="match_parent" | 253 | android:layout_width="match_parent" |
| 254 | android:layout_height="1dp" | 254 | android:layout_height="1dp" |
| 255 | android:background="@color/cutoff_line"> | 255 | android:background="@color/cutoff_line"> |
| 256 | 256 | ||
| 257 | </View> | 257 | </View> |
| 258 | <LinearLayout | 258 | <LinearLayout |
| 259 | android:layout_width="match_parent" | 259 | android:layout_width="match_parent" |
| 260 | android:layout_height="wrap_content" | 260 | android:layout_height="wrap_content" |
| 261 | android:gravity="center_vertical" | 261 | android:gravity="center_vertical" |
| 262 | android:orientation="horizontal"> | 262 | android:orientation="horizontal"> |
| 263 | 263 | ||
| 264 | <ImageView | 264 | <ImageView |
| 265 | android:layout_width="0dp" | 265 | android:layout_width="0dp" |
| 266 | android:layout_height="wrap_content" | 266 | android:layout_height="wrap_content" |
| 267 | android:layout_weight="1" | 267 | android:layout_weight="1" |
| 268 | android:paddingTop="20dp" | 268 | android:paddingTop="20dp" |
| 269 | android:paddingBottom="20dp" | 269 | android:paddingBottom="20dp" |
| 270 | android:src="@mipmap/wodeshoucang" /> | 270 | android:src="@mipmap/wodeshoucang" /> |
| 271 | 271 | ||
| 272 | <TextView | 272 | <TextView |
| 273 | android:id="@+id/linel_mycollege" | 273 | android:id="@+id/linel_mycollege" |
| 274 | android:layout_width="0dp" | 274 | android:layout_width="0dp" |
| 275 | android:layout_height="wrap_content" | 275 | android:layout_height="wrap_content" |
| 276 | android:layout_weight="1" | 276 | android:layout_weight="1" |
| 277 | android:paddingTop="20dp" | 277 | android:paddingTop="20dp" |
| 278 | android:paddingBottom="20dp" | 278 | android:paddingBottom="20dp" |
| 279 | android:text="我的收藏" | 279 | android:text="我的收藏" |
| 280 | android:textSize="20sp" /> | 280 | android:textSize="20sp" /> |
| 281 | <View | 281 | <View |
| 282 | android:layout_width="1dp" | 282 | android:layout_width="1dp" |
| 283 | android:layout_height="match_parent" | 283 | android:layout_height="match_parent" |
| 284 | android:background="@color/cutoff_line"> | 284 | android:background="@color/cutoff_line"> |
| 285 | 285 | ||
| 286 | </View> | 286 | </View> |
| 287 | 287 | ||
| 288 | <ImageView | 288 | <ImageView |
| 289 | android:layout_width="0dp" | 289 | android:layout_width="0dp" |
| 290 | android:layout_height="wrap_content" | 290 | android:layout_height="wrap_content" |
| 291 | android:layout_weight="1" | 291 | android:layout_weight="1" |
| 292 | android:paddingTop="20dp" | 292 | android:paddingTop="20dp" |
| 293 | android:paddingBottom="20dp" | 293 | android:paddingBottom="20dp" |
| 294 | android:src="@mipmap/wodebanji1" /> | 294 | android:src="@mipmap/wodebanji1" /> |
| 295 | <TextView | 295 | <TextView |
| 296 | android:id="@+id/linel_myclass" | 296 | android:id="@+id/linel_myclass" |
| 297 | android:layout_width="0dp" | 297 | android:layout_width="0dp" |
| 298 | android:layout_height="wrap_content" | 298 | android:layout_height="wrap_content" |
| 299 | android:layout_weight="1" | 299 | android:layout_weight="1" |
| 300 | android:text="我的生词" | 300 | android:text="我的生词" |
| 301 | android:paddingTop="20dp" | 301 | android:paddingTop="20dp" |
| 302 | android:paddingBottom="20dp" | 302 | android:paddingBottom="20dp" |
| 303 | android:textSize="20sp" /> | 303 | android:textSize="20sp" /> |
| 304 | 304 | ||
| 305 | </LinearLayout> | 305 | </LinearLayout> |
| 306 | 306 | ||
| 307 | <View | 307 | <View |
| 308 | android:layout_width="match_parent" | 308 | android:layout_width="match_parent" |
| 309 | android:layout_height="0.7dp" | 309 | android:layout_height="0.7dp" |
| 310 | android:background="@color/cutoff_line"> | 310 | android:background="@color/cutoff_line"> |
| 311 | 311 | ||
| 312 | </View> | 312 | </View> |
| 313 | 313 | ||
| 314 | </LinearLayout> | 314 | </LinearLayout> |
| 315 | <LinearLayout | 315 | <LinearLayout |
| 316 | android:layout_width="wrap_content" | 316 | android:layout_width="wrap_content" |
| 317 | android:layout_height="wrap_content" | 317 | android:layout_height="wrap_content" |
| 318 | android:paddingTop="10dp" | 318 | android:paddingTop="10dp" |
| 319 | android:paddingLeft="10dp" | 319 | android:paddingLeft="10dp" |
| 320 | android:paddingRight="10dp" | 320 | android:paddingRight="10dp" |
| 321 | android:layout_gravity="center" | 321 | android:layout_gravity="center" |
| 322 | android:layout_marginTop="150dp"> | 322 | android:layout_marginTop="150dp"> |
| 323 | <TextView | 323 | <TextView |
| 324 | android:id="@+id/iv_look_card" | 324 | android:id="@+id/iv_look_card" |
| 325 | android:layout_width="wrap_content" | 325 | android:layout_width="wrap_content" |
| 326 | android:layout_height="wrap_content" | 326 | android:layout_height="wrap_content" |
| 327 | android:textColor="@color/bgstudy_baoka" | 327 | android:textColor="@color/bgstudy_baoka" |
| 328 | android:text="好记星电子产品保修卡" /> | 328 | android:text="好记星电子产品保修卡" /> |
| 329 | <ImageView | 329 | <ImageView |
| 330 | android:layout_width="wrap_content" | 330 | android:layout_width="wrap_content" |
| 331 | android:layout_height="wrap_content" | 331 | android:layout_height="wrap_content" |
| 332 | android:layout_gravity="center_vertical" | 332 | android:layout_gravity="center_vertical" |
| 333 | android:src="@mipmap/ahah" /> | 333 | android:src="@mipmap/ahah" /> |
| 334 | </LinearLayout> | 334 | </LinearLayout> |
| 335 | 335 | ||
| 336 | <!-- | 336 | <!-- |
| 337 | <LinearLayout | 337 | <LinearLayout |
| 338 | android:layout_marginTop="10dp" | 338 | android:layout_marginTop="10dp" |
| 339 | android:layout_width="match_parent" | 339 | android:layout_width="match_parent" |
| 340 | android:layout_height="100dp" | 340 | android:layout_height="100dp" |
| 341 | android:gravity="bottom" | 341 | android:gravity="bottom" |
| 342 | android:background="@mipmap/xiaoguanggao"> | 342 | android:background="@mipmap/xiaoguanggao"> |
| 343 | 343 | ||
| 344 | </LinearLayout>--> | 344 | </LinearLayout>--> |
| 345 | 345 | ||
| 346 | 346 | ||
| 347 | </LinearLayout> | 347 | </LinearLayout> |
| 348 | 348 | ||
| 349 | 349 | ||
| 350 | <View | 350 | <View |
| 351 | android:layout_width="0.7dp" | 351 | android:layout_width="0.7dp" |
| 352 | android:layout_height="match_parent" | 352 | android:layout_height="match_parent" |
| 353 | android:background="@color/cutoff_line"> | 353 | android:background="@color/cutoff_line"> |
| 354 | 354 | ||
| 355 | </View> | 355 | </View> |
| 356 | 356 | ||
| 357 | <LinearLayout | 357 | <LinearLayout |
| 358 | android:layout_width="0dp" | 358 | android:layout_width="0dp" |
| 359 | android:layout_height="match_parent" | 359 | android:layout_height="match_parent" |
| 360 | android:layout_weight="2.8" | 360 | android:layout_weight="2.8" |
| 361 | android:orientation="vertical"> | 361 | android:orientation="vertical"> |
| 362 | 362 | ||
| 363 | <LinearLayout | 363 | <LinearLayout |
| 364 | android:layout_width="match_parent" | 364 | android:layout_width="match_parent" |
| 365 | android:layout_height="wrap_content" | 365 | android:layout_height="wrap_content" |
| 366 | android:layout_margin="10dp" | 366 | android:layout_margin="10dp" |
| 367 | android:gravity="center_vertical" | 367 | android:gravity="center_vertical" |
| 368 | android:orientation="horizontal"> | 368 | android:orientation="horizontal"> |
| 369 | 369 | ||
| 370 | <View | 370 | <View |
| 371 | android:layout_width="5dp" | 371 | android:layout_width="5dp" |
| 372 | android:layout_height="20dp" | 372 | android:layout_height="20dp" |
| 373 | android:background="@color/login_text_blue"> | 373 | android:background="@color/login_text_blue"> |
| 374 | 374 | ||
| 375 | </View> | 375 | </View> |
| 376 | 376 | ||
| 377 | <TextView | 377 | <TextView |
| 378 | android:layout_width="0dp" | 378 | android:layout_width="0dp" |
| 379 | android:layout_height="wrap_content" | 379 | android:layout_height="wrap_content" |
| 380 | android:layout_marginLeft="5dp" | 380 | android:layout_marginLeft="5dp" |
| 381 | android:layout_weight="5" | 381 | android:layout_weight="5" |
| 382 | android:text="个人信息" | 382 | android:text="个人信息" |
| 383 | android:textSize="22sp" /> | 383 | android:textSize="22sp" /> |
| 384 | 384 | ||
| 385 | <TextView | 385 | <TextView |
| 386 | android:layout_width="0dp" | 386 | android:layout_width="0dp" |
| 387 | android:layout_height="wrap_content" | 387 | android:layout_height="wrap_content" |
| 388 | android:layout_marginLeft="10dp" | 388 | android:layout_marginLeft="10dp" |
| 389 | android:layout_weight="0.1" | 389 | android:layout_weight="0.1" |
| 390 | android:text="" | 390 | android:text="" |
| 391 | android:textSize="18sp" /> | 391 | android:textSize="18sp" /> |
| 392 | 392 | ||
| 393 | <ImageView | 393 | <ImageView |
| 394 | android:id="@+id/tv_edit_presoninfo" | 394 | android:id="@+id/tv_edit_presoninfo" |
| 395 | android:padding="10dp" | 395 | android:padding="10dp" |
| 396 | android:layout_width="0dp" | 396 | android:layout_width="0dp" |
| 397 | android:layout_height="wrap_content" | 397 | android:layout_height="wrap_content" |
| 398 | android:layout_weight="0.4" | 398 | android:layout_weight="0.4" |
| 399 | android:src="@mipmap/gerenxinxibianji" /> | 399 | android:src="@mipmap/gerenxinxibianji" /> |
| 400 | 400 | ||
| 401 | 401 | ||
| 402 | </LinearLayout> | 402 | </LinearLayout> |
| 403 | 403 | ||
| 404 | <LinearLayout | 404 | <LinearLayout |
| 405 | android:layout_width="match_parent" | 405 | android:layout_width="match_parent" |
| 406 | android:layout_height="wrap_content" | 406 | android:layout_height="wrap_content" |
| 407 | android:layout_marginLeft="50dp" | 407 | android:layout_marginLeft="50dp" |
| 408 | android:orientation="vertical"> | 408 | android:orientation="vertical"> |
| 409 | 409 | ||
| 410 | <LinearLayout | 410 | <LinearLayout |
| 411 | android:layout_width="match_parent" | 411 | android:layout_width="match_parent" |
| 412 | android:layout_height="wrap_content" | 412 | android:layout_height="wrap_content" |
| 413 | android:gravity="center_vertical" | 413 | android:gravity="center_vertical" |
| 414 | android:orientation="horizontal"> | 414 | android:orientation="horizontal"> |
| 415 | 415 | ||
| 416 | <TextView | 416 | <TextView |
| 417 | android:layout_width="0dp" | 417 | android:layout_width="0dp" |
| 418 | android:layout_height="wrap_content" | 418 | android:layout_height="wrap_content" |
| 419 | android:textColor="@color/login_edittext_hint" | 419 | android:textColor="@color/login_edittext_hint" |
| 420 | android:layout_weight="1" | 420 | android:layout_weight="1" |
| 421 | android:text="昵称" | 421 | android:text="昵称" |
| 422 | android:textSize="20sp" /> | 422 | android:textSize="20sp" /> |
| 423 | 423 | ||
| 424 | <TextView | 424 | <TextView |
| 425 | android:id="@+id/tv_username1" | 425 | android:id="@+id/tv_username1" |
| 426 | android:layout_width="0dp" | 426 | android:layout_width="0dp" |
| 427 | android:layout_height="wrap_content" | 427 | android:layout_height="wrap_content" |
| 428 | android:layout_weight="2" | 428 | android:layout_weight="2" |
| 429 | android:hint="未填写" | 429 | android:hint="未填写" |
| 430 | android:textSize="20sp" /> | 430 | android:textSize="20sp" /> |
| 431 | 431 | ||
| 432 | <TextView | 432 | <TextView |
| 433 | android:layout_width="1dp" | 433 | android:layout_width="1dp" |
| 434 | android:layout_height="wrap_content" | 434 | android:layout_height="wrap_content" |
| 435 | android:layout_weight="1" | 435 | android:layout_weight="1" |
| 436 | android:textColor="@color/login_edittext_hint" | 436 | android:textColor="@color/login_edittext_hint" |
| 437 | android:text="星座" | 437 | android:text="星座" |
| 438 | android:textSize="20sp" /> | 438 | android:textSize="20sp" /> |
| 439 | 439 | ||
| 440 | <TextView | 440 | <TextView |
| 441 | android:id="@+id/tv_mygad" | 441 | android:id="@+id/tv_mygad" |
| 442 | android:layout_width="0dp" | 442 | android:layout_width="0dp" |
| 443 | android:layout_height="wrap_content" | 443 | android:layout_height="wrap_content" |
| 444 | android:layout_weight="2" | 444 | android:layout_weight="2" |
| 445 | android:hint="未填写" | 445 | android:hint="未填写" |
| 446 | android:textSize="20sp" /> | 446 | android:textSize="20sp" /> |
| 447 | </LinearLayout> | 447 | </LinearLayout> |
| 448 | 448 | ||
| 449 | <LinearLayout | 449 | <LinearLayout |
| 450 | android:layout_width="match_parent" | 450 | android:layout_width="match_parent" |
| 451 | android:layout_height="wrap_content" | 451 | android:layout_height="wrap_content" |
| 452 | android:layout_marginTop="15dp" | 452 | android:layout_marginTop="15dp" |
| 453 | android:gravity="center_vertical" | 453 | android:gravity="center_vertical" |
| 454 | android:orientation="horizontal"> | 454 | android:orientation="horizontal"> |
| 455 | 455 | ||
| 456 | <TextView | 456 | <TextView |
| 457 | android:layout_width="0dp" | 457 | android:layout_width="0dp" |
| 458 | android:layout_height="wrap_content" | 458 | android:layout_height="wrap_content" |
| 459 | android:textColor="@color/login_edittext_hint" | 459 | android:textColor="@color/login_edittext_hint" |
| 460 | android:layout_weight="1" | 460 | android:layout_weight="1" |
| 461 | android:text="性别" | 461 | android:text="性别" |
| 462 | android:textSize="20sp" /> | 462 | android:textSize="20sp" /> |
| 463 | 463 | ||
| 464 | <TextView | 464 | <TextView |
| 465 | android:id="@+id/tv_sex" | 465 | android:id="@+id/tv_sex" |
| 466 | android:layout_width="0dp" | 466 | android:layout_width="0dp" |
| 467 | android:layout_height="wrap_content" | 467 | android:layout_height="wrap_content" |
| 468 | android:layout_weight="2" | 468 | android:layout_weight="2" |
| 469 | android:hint="未填写" | 469 | android:hint="未填写" |
| 470 | android:textSize="20sp" /> | 470 | android:textSize="20sp" /> |
| 471 | 471 | ||
| 472 | <TextView | 472 | <TextView |
| 473 | android:layout_width="1dp" | 473 | android:layout_width="1dp" |
| 474 | android:layout_height="wrap_content" | 474 | android:layout_height="wrap_content" |
| 475 | android:textColor="@color/login_edittext_hint" | 475 | android:textColor="@color/login_edittext_hint" |
| 476 | android:layout_weight="1" | 476 | android:layout_weight="1" |
| 477 | android:text="地区" | 477 | android:text="地区" |
| 478 | android:textSize="20sp" /> | 478 | android:textSize="20sp" /> |
| 479 | 479 | ||
| 480 | <TextView | 480 | <TextView |
| 481 | android:id="@+id/tv_useinfo_adress" | 481 | android:id="@+id/tv_useinfo_adress" |
| 482 | android:layout_width="0dp" | 482 | android:layout_width="0dp" |
| 483 | android:layout_height="wrap_content" | 483 | android:layout_height="wrap_content" |
| 484 | android:layout_weight="2" | 484 | android:layout_weight="2" |
| 485 | android:hint="未填写" | 485 | android:hint="未填写" |
| 486 | android:maxLines="2" | 486 | android:maxLines="2" |
| 487 | android:ellipsize="end" | 487 | android:ellipsize="end" |
| 488 | android:textSize="20sp" /> | 488 | android:textSize="20sp" /> |
| 489 | </LinearLayout> | 489 | </LinearLayout> |
| 490 | 490 | ||
| 491 | <LinearLayout | 491 | <LinearLayout |
| 492 | android:layout_width="match_parent" | 492 | android:layout_width="match_parent" |
| 493 | android:layout_height="wrap_content" | 493 | android:layout_height="wrap_content" |
| 494 | android:layout_marginTop="15dp" | 494 | android:layout_marginTop="15dp" |
| 495 | android:gravity="center_vertical" | 495 | android:gravity="center_vertical" |
| 496 | android:orientation="horizontal"> | 496 | android:orientation="horizontal"> |
| 497 | 497 | ||
| 498 | <TextView | 498 | <TextView |
| 499 | android:layout_width="0dp" | 499 | android:layout_width="0dp" |
| 500 | android:layout_height="wrap_content" | 500 | android:layout_height="wrap_content" |
| 501 | android:layout_weight="1" | 501 | android:layout_weight="1" |
| 502 | android:text="生日" | 502 | android:text="生日" |
| 503 | android:textColor="@color/login_edittext_hint" | 503 | android:textColor="@color/login_edittext_hint" |
| 504 | 504 | ||
| 505 | android:textSize="20sp" /> | 505 | android:textSize="20sp" /> |
| 506 | 506 | ||
| 507 | <TextView | 507 | <TextView |
| 508 | android:id="@+id/tv_useinfo_birthday" | 508 | android:id="@+id/tv_useinfo_birthday" |
| 509 | android:layout_width="0dp" | 509 | android:layout_width="0dp" |
| 510 | android:layout_height="wrap_content" | 510 | android:layout_height="wrap_content" |
| 511 | android:layout_weight="2" | 511 | android:layout_weight="2" |
| 512 | android:hint="未填写" | 512 | android:hint="未填写" |
| 513 | android:textSize="20sp" /> | 513 | android:textSize="20sp" /> |
| 514 | 514 | ||
| 515 | <TextView | 515 | <TextView |
| 516 | android:layout_width="1dp" | 516 | android:layout_width="1dp" |
| 517 | android:layout_height="wrap_content" | 517 | android:layout_height="wrap_content" |
| 518 | android:layout_weight="1" | 518 | android:layout_weight="1" |
| 519 | android:textColor="@color/login_edittext_hint" | 519 | android:textColor="@color/login_edittext_hint" |
| 520 | 520 | ||
| 521 | android:text="学校" | 521 | android:text="学校" |
| 522 | android:textSize="20sp" /> | 522 | android:textSize="20sp" /> |
| 523 | 523 | ||
| 524 | <TextView | 524 | <TextView |
| 525 | android:id="@+id/tv_useinfo_school" | 525 | android:id="@+id/tv_useinfo_school" |
| 526 | android:layout_width="0dp" | 526 | android:layout_width="0dp" |
| 527 | android:layout_height="wrap_content" | 527 | android:layout_height="wrap_content" |
| 528 | android:layout_weight="2" | 528 | android:layout_weight="2" |
| 529 | android:hint="未填写" | 529 | android:hint="未填写" |
| 530 | android:textSize="20sp" /> | 530 | android:textSize="20sp" /> |
| 531 | </LinearLayout> | 531 | </LinearLayout> |
| 532 | 532 | ||
| 533 | <LinearLayout | 533 | <LinearLayout |
| 534 | android:layout_width="match_parent" | 534 | android:layout_width="match_parent" |
| 535 | android:layout_height="wrap_content" | 535 | android:layout_height="wrap_content" |
| 536 | android:layout_marginTop="15dp" | 536 | android:layout_marginTop="15dp" |
| 537 | android:gravity="center_vertical" | 537 | android:gravity="center_vertical" |
| 538 | android:orientation="horizontal"> | 538 | android:orientation="horizontal"> |
| 539 | 539 | ||
| 540 | <TextView | 540 | <TextView |
| 541 | android:layout_width="0dp" | 541 | android:layout_width="0dp" |
| 542 | android:layout_height="wrap_content" | 542 | android:layout_height="wrap_content" |
| 543 | android:layout_weight="1" | 543 | android:layout_weight="1" |
| 544 | android:textColor="@color/login_edittext_hint" | 544 | android:textColor="@color/login_edittext_hint" |
| 545 | android:text=" Q Q" | 545 | android:text=" Q Q" |
| 546 | android:textSize="20sp" /> | 546 | android:textSize="20sp" /> |
| 547 | 547 | ||
| 548 | <TextView | 548 | <TextView |
| 549 | android:id="@+id/tv_useinfo_qq" | 549 | android:id="@+id/tv_useinfo_qq" |
| 550 | android:layout_width="0dp" | 550 | android:layout_width="0dp" |
| 551 | android:layout_height="wrap_content" | 551 | android:layout_height="wrap_content" |
| 552 | android:layout_weight="2" | 552 | android:layout_weight="2" |
| 553 | android:hint="未填写" | 553 | android:hint="未填写" |
| 554 | android:textSize="20sp" /> | 554 | android:textSize="20sp" /> |
| 555 | 555 | ||
| 556 | <TextView | 556 | <TextView |
| 557 | android:layout_width="1dp" | 557 | android:layout_width="1dp" |
| 558 | android:layout_height="wrap_content" | 558 | android:layout_height="wrap_content" |
| 559 | android:layout_weight="1" | 559 | android:layout_weight="1" |
| 560 | android:text="年级" | 560 | android:text="年级" |
| 561 | android:textColor="@color/login_edittext_hint" | 561 | android:textColor="@color/login_edittext_hint" |
| 562 | 562 | ||
| 563 | android:textSize="20sp" /> | 563 | android:textSize="20sp" /> |
| 564 | 564 | ||
| 565 | <TextView | 565 | <TextView |
| 566 | android:id="@+id/tv_useinfo_gender" | 566 | android:id="@+id/tv_useinfo_gender" |
| 567 | android:layout_width="0dp" | 567 | android:layout_width="0dp" |
| 568 | android:layout_height="wrap_content" | 568 | android:layout_height="wrap_content" |
| 569 | android:layout_weight="2" | 569 | android:layout_weight="2" |
| 570 | android:hint="未填写" | 570 | android:hint="未填写" |
| 571 | android:textSize="20sp" /> | 571 | android:textSize="20sp" /> |
| 572 | </LinearLayout> | 572 | </LinearLayout> |
| 573 | 573 | ||
| 574 | 574 | ||
| 575 | </LinearLayout> | 575 | </LinearLayout> |
| 576 | <View | 576 | <View |
| 577 | android:layout_width="match_parent" | 577 | android:layout_width="match_parent" |
| 578 | android:layout_height="0.7dp" | 578 | android:layout_height="0.7dp" |
| 579 | android:layout_marginTop="40dp" | 579 | android:layout_marginTop="40dp" |
| 580 | android:background="@color/cutoff_line"> | 580 | android:background="@color/cutoff_line"> |
| 581 | 581 | ||
| 582 | </View> | 582 | </View> |
| 583 | <LinearLayout | 583 | <LinearLayout |
| 584 | android:layout_width="match_parent" | 584 | android:layout_width="match_parent" |
| 585 | android:layout_height="wrap_content" | 585 | android:layout_height="wrap_content" |
| 586 | android:layout_margin="10dp" | 586 | android:layout_margin="10dp" |
| 587 | android:gravity="center_vertical" | 587 | android:gravity="center_vertical" |
| 588 | android:orientation="horizontal"> | 588 | android:orientation="horizontal"> |
| 589 | 589 | ||
| 590 | <View | 590 | <View |
| 591 | android:layout_width="5dp" | 591 | android:layout_width="5dp" |
| 592 | android:layout_height="20dp" | 592 | android:layout_height="20dp" |
| 593 | android:layout_marginTop="10dp" | ||
| 594 | android:background="@color/login_text_blue"> | 593 | android:background="@color/login_text_blue"> |
| 595 | 594 | ||
| 596 | </View> | 595 | </View> |
| 597 | 596 | ||
| 598 | <TextView | 597 | <TextView |
| 599 | android:layout_width="wrap_content" | 598 | android:layout_width="wrap_content" |
| 600 | android:layout_height="wrap_content" | 599 | android:layout_height="wrap_content" |
| 601 | android:layout_marginTop="10dp" | ||
| 602 | android:layout_marginLeft="5dp" | 600 | android:layout_marginLeft="5dp" |
| 603 | android:text="版本信息" | 601 | android:text="版本信息" |
| 604 | android:textSize="22sp" /> | 602 | android:textSize="22sp" /> |
| 605 | 603 | ||
| 606 | </LinearLayout> | 604 | </LinearLayout> |
| 607 | 605 | ||
| 608 | <LinearLayout | 606 | <LinearLayout |
| 609 | android:layout_width="wrap_content" | 607 | android:layout_width="wrap_content" |
| 610 | android:layout_height="wrap_content" | 608 | android:layout_height="wrap_content" |
| 611 | android:orientation="vertical" | 609 | android:orientation="vertical" |
| 612 | android:gravity="center"> | 610 | android:gravity="center"> |
| 613 | 611 | ||
| 614 | 612 | ||
| 615 | <GridView | 613 | <GridView |
| 616 | android:id="@+id/id_recyclerview_pubish" | 614 | android:id="@+id/id_recyclerview_pubish" |
| 617 | android:layout_margin="3dp" | 615 | android:layout_margin="3dp" |
| 618 | android:layout_width="match_parent" | 616 | android:layout_width="match_parent" |
| 619 | android:layout_height="wrap_content" | 617 | android:layout_height="wrap_content" |
| 620 | android:gravity="center_vertical" | 618 | android:gravity="center_vertical" |
| 621 | android:verticalSpacing="20dp" | 619 | android:verticalSpacing="20dp" |
| 622 | android:numColumns="5"> | 620 | android:numColumns="5"> |
| 623 | 621 | ||
| 624 | </GridView> | 622 | </GridView> |
| 625 | 623 | ||
| 626 | 624 | ||
| 627 | </LinearLayout> | 625 | </LinearLayout> |
| 628 | 626 | ||
| 629 | 627 | ||
| 630 | </LinearLayout> | 628 | </LinearLayout> |
| 631 | <LinearLayout | 629 | <LinearLayout |
| 632 | android:layout_width="0dp" | 630 | android:layout_width="0dp" |
| 633 | android:layout_height="match_parent" | 631 | android:layout_height="match_parent" |
| 634 | android:layout_weight="1" | 632 | android:layout_weight="1" |
| 635 | android:background="@color/bgstudy_laout" | 633 | android:background="@color/bgstudy_laout" |
| 636 | android:orientation="vertical"> | 634 | android:orientation="vertical"> |
| 637 | <LinearLayout | 635 | <LinearLayout |
| 638 | android:layout_width="match_parent" | 636 | android:layout_width="match_parent" |
| 639 | android:layout_height="wrap_content" | 637 | android:layout_height="wrap_content" |
| 640 | android:layout_margin="20dp" | 638 | android:layout_margin="20dp" |
| 641 | android:gravity="center_vertical" | 639 | android:gravity="center_vertical" |
| 642 | android:orientation="horizontal"> | 640 | android:orientation="horizontal"> |
| 643 | 641 | ||
| 644 | <View | 642 | <View |
| 645 | android:layout_width="5dp" | 643 | android:layout_width="5dp" |
| 646 | android:layout_height="20dp" | 644 | android:layout_height="20dp" |
| 647 | android:background="@color/login_text_blue"> | 645 | android:background="@color/login_text_blue"> |
| 648 | 646 | ||
| 649 | </View> | 647 | </View> |
| 650 | 648 | ||
| 651 | <TextView | 649 | <TextView |
| 652 | android:layout_width="wrap_content" | 650 | android:layout_width="wrap_content" |
| 653 | android:layout_height="wrap_content" | 651 | android:layout_height="wrap_content" |
| 654 | android:layout_marginLeft="5dp" | 652 | android:layout_marginLeft="5dp" |
| 655 | android:text="最近学习" | 653 | android:text="最近学习" |
| 656 | android:textSize="22sp" /> | 654 | android:textSize="22sp" /> |
| 657 | 655 | ||
| 658 | </LinearLayout> | 656 | </LinearLayout> |
| 659 | 657 | ||
| 660 | <LinearLayout | 658 | <LinearLayout |
| 661 | android:layout_width="match_parent" | 659 | android:layout_width="match_parent" |
| 662 | android:layout_height="match_parent" | 660 | android:layout_height="match_parent" |
| 663 | android:gravity="center" | 661 | android:gravity="center" |
| 664 | android:orientation="vertical" | 662 | android:orientation="vertical" |
| 665 | > | 663 | > |
| 666 | <LinearLayout | 664 | <LinearLayout |
| 667 | android:id="@+id/view_novedeo" | 665 | android:id="@+id/view_novedeo" |
| 668 | android:layout_width="match_parent" | 666 | android:layout_width="match_parent" |
| 669 | android:layout_height="match_parent" | 667 | android:layout_height="match_parent" |
| 670 | android:gravity="center" | 668 | android:gravity="center" |
| 671 | android:orientation="vertical"> | 669 | android:orientation="vertical"> |
| 672 | <ImageView | 670 | <ImageView |
| 673 | android:layout_width="wrap_content" | 671 | android:layout_width="wrap_content" |
| 674 | android:layout_height="wrap_content" | 672 | android:layout_height="wrap_content" |
| 675 | android:src="@mipmap/nostudy"/> | 673 | android:src="@mipmap/nostudy"/> |
| 676 | <TextView | 674 | <TextView |
| 677 | android:layout_width="wrap_content" | 675 | android:layout_width="wrap_content" |
| 678 | android:layout_height="wrap_content" | 676 | android:layout_height="wrap_content" |
| 679 | android:layout_marginTop="20dp" | 677 | android:layout_marginTop="20dp" |
| 680 | android:text="小主人最近还没有学习哦" | 678 | android:text="小主人最近还没有学习哦" |
| 681 | android:textSize="14sp" /> | 679 | android:textSize="14sp" /> |
| 682 | <TextView | 680 | <TextView |
| 683 | android:layout_width="wrap_content" | 681 | android:layout_width="wrap_content" |
| 684 | android:layout_height="wrap_content" | 682 | android:layout_height="wrap_content" |
| 685 | android:text="快去学习吧" | 683 | android:text="快去学习吧" |
| 686 | android:textSize="14sp" /> | 684 | android:textSize="14sp" /> |
| 687 | </LinearLayout> | 685 | </LinearLayout> |
| 688 | <android.support.v7.widget.RecyclerView | 686 | <android.support.v7.widget.RecyclerView |
| 689 | android:id="@+id/id_recyclerview_horizontal" | 687 | android:id="@+id/id_recyclerview_horizontal" |
| 690 | android:layout_width="wrap_content" | 688 | android:layout_width="wrap_content" |
| 691 | android:layout_height="wrap_content" | 689 | android:layout_height="wrap_content" |
| 692 | android:layout_marginLeft="20dp" | 690 | android:layout_marginLeft="20dp" |
| 693 | android:layout_gravity="top" | 691 | android:layout_gravity="top" |
| 694 | android:scrollbars="none" /> | 692 | android:scrollbars="none" /> |
| 695 | </LinearLayout> | 693 | </LinearLayout> |
| 696 | 694 | ||
| 697 | </LinearLayout> | 695 | </LinearLayout> |
| 698 | 696 | ||
| 699 | 697 | ||
| 700 | </LinearLayout> | 698 | </LinearLayout> |
| 701 | 699 | ||
| 702 | 700 | ||
| 703 | </LinearLayout> | 701 | </LinearLayout> |
| 704 | 702 |