Commit 661a7bcfd73f43258a5121a1695f2618abb1a6f2
1 parent
b0a7a1fce1
Exists in
master
处理包问题
Showing
15 changed files
with
531 additions
and
55 deletions
Show diff stats
PersonalCenter/app/src/main/AndroidManifest.xml
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | package="com.hjx.personalcenter"> | 3 | package="com.hjx.personalcenter"> |
| 4 | 4 | ||
| 5 | <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | ||
| 5 | <application | 6 | <application |
| 6 | android:allowBackup="true" | 7 | android:allowBackup="true" |
| 7 | android:icon="@mipmap/ic_launcher" | 8 | android:icon="@mipmap/ic_launcher" |
| 8 | android:label="@string/app_name" | 9 | android:label="@string/app_name" |
| 9 | android:supportsRtl="true" | 10 | android:supportsRtl="true" |
| 10 | android:theme="@style/Theme.AppCompat.Light.NoActionBar"> | 11 | android:theme="@style/Theme.AppCompat.Light.NoActionBar"> |
| 11 | <activity | 12 | <activity |
| 12 | android:name=".activity.MainActivity" | 13 | android:name=".activity.MainActivity" |
| 13 | android:launchMode="singleTask" | 14 | android:launchMode="singleTask" |
| 14 | android:screenOrientation="landscape"> | 15 | android:screenOrientation="landscape"> |
| 15 | <intent-filter> | 16 | <intent-filter> |
| 16 | <action android:name="android.intent.action.MAIN" /> | 17 | <action android:name="android.intent.action.MAIN" /> |
| 17 | 18 | ||
| 18 | <category android:name="android.intent.category.LAUNCHER" /> | 19 | <category android:name="android.intent.category.LAUNCHER" /> |
| 19 | </intent-filter> | 20 | </intent-filter> |
| 20 | </activity> | 21 | </activity> |
| 21 | <activity | 22 | <activity |
| 22 | android:name=".activity.LoginAndRegisterActivity" | 23 | android:name=".activity.LoginAndRegisterActivity" |
| 23 | android:launchMode="singleTask" | 24 | android:launchMode="singleTask" |
| 24 | android:screenOrientation="landscape"> | 25 | android:screenOrientation="landscape"> |
| 25 | 26 | ||
| 26 | </activity> | 27 | </activity> |
| 27 | <activity | 28 | <activity |
| 28 | android:name=".activity.ForgotPasswordActivity" | 29 | android:name=".activity.ForgotPasswordActivity" |
| 29 | android:launchMode="singleTask" | 30 | android:launchMode="singleTask" |
| 30 | android:screenOrientation="landscape"> | 31 | android:screenOrientation="landscape"> |
| 31 | 32 | ||
| 32 | </activity> | 33 | </activity> |
| 33 | <activity | 34 | <activity |
| 34 | android:name=".activity.ChangePasswordActivity" | 35 | android:name=".activity.ChangePasswordActivity" |
| 35 | android:launchMode="singleTask" | 36 | android:launchMode="singleTask" |
| 36 | android:screenOrientation="landscape"> | 37 | android:screenOrientation="landscape"> |
| 37 | 38 | ||
| 38 | </activity> | 39 | </activity> |
| 39 | <activity | 40 | <activity |
| 40 | android:name=".activity.RegisterInfoActivity" | 41 | android:name=".activity.RegisterInfoActivity" |
| 41 | android:launchMode="singleTask" | 42 | android:launchMode="singleTask" |
| 42 | android:screenOrientation="landscape"> | 43 | android:screenOrientation="landscape"> |
| 43 | 44 | ||
| 44 | </activity> | 45 | </activity> |
| 45 | <activity | 46 | <activity |
| 46 | android:name=".activity.ElectronicCardValidationActivity" | 47 | android:name=".activity.ElectronicCardValidationActivity" |
| 47 | android:launchMode="singleTask" | 48 | android:launchMode="singleTask" |
| 48 | android:screenOrientation="landscape"> | 49 | android:screenOrientation="landscape"> |
| 49 | 50 | ||
| 50 | </activity> | 51 | </activity> |
| 51 | <activity | 52 | <activity |
| 52 | android:name=".activity.ChangeBangDingActivity" | 53 | android:name=".activity.ChangeBangDingActivity" |
| 53 | android:launchMode="singleTask" | 54 | android:launchMode="singleTask" |
| 54 | android:screenOrientation="landscape"> | 55 | android:screenOrientation="landscape"> |
| 55 | 56 | ||
| 56 | </activity> | 57 | </activity> |
| 57 | <activity | 58 | <activity |
| 58 | android:name=".activity.ChangeElectronicCardInfoActivity" | 59 | android:name=".activity.ChangeElectronicCardInfoActivity" |
| 59 | android:launchMode="singleTask" | 60 | android:launchMode="singleTask" |
| 60 | android:screenOrientation="landscape"> | 61 | android:screenOrientation="landscape"> |
| 61 | 62 | ||
| 62 | </activity> | 63 | </activity> |
| 63 | <activity | 64 | <activity |
| 64 | android:name=".activity.ChangeEletronicCardPhoneActivity" | 65 | android:name=".activity.ChangeEletronicCardPhoneActivity" |
| 65 | android:launchMode="singleTask" | 66 | android:launchMode="singleTask" |
| 66 | android:screenOrientation="landscape"> | 67 | android:screenOrientation="landscape"> |
| 67 | 68 | ||
| 68 | </activity> | 69 | </activity> |
| 69 | <activity | 70 | <activity |
| 70 | android:name=".activity.ChoiseTextBookActivity" | 71 | android:name=".activity.ChoiseTextBookActivity" |
| 71 | android:launchMode="singleTask" | 72 | android:launchMode="singleTask" |
| 72 | android:screenOrientation="landscape"> | 73 | android:screenOrientation="landscape"> |
| 73 | 74 | ||
| 74 | </activity> | 75 | </activity> |
| 75 | <activity | 76 | <activity |
| 76 | android:name=".activity.TheStartPageActivity" | 77 | android:name=".activity.TheStartPageActivity" |
| 77 | android:launchMode="singleTask" | 78 | android:launchMode="singleTask" |
| 78 | android:screenOrientation="landscape"> | 79 | android:screenOrientation="landscape"> |
| 79 | 80 | ||
| 80 | </activity> | 81 | </activity> |
| 81 | <activity | 82 | <activity |
| 82 | android:name=".activity.ElectronicCardEditInfoActivity" | 83 | android:name=".activity.ElectronicCardEditInfoActivity" |
| 83 | android:launchMode="singleTask" | 84 | android:launchMode="singleTask" |
| 84 | android:screenOrientation="landscape"> | 85 | android:screenOrientation="landscape"> |
| 85 | 86 | ||
| 86 | </activity> | 87 | </activity> |
| 87 | <activity | 88 | <activity |
| 88 | android:name=".activity.ElectronicCardInfoOKActivity" | 89 | android:name=".activity.ElectronicCardInfoOKActivity" |
| 89 | android:launchMode="singleTask" | 90 | android:launchMode="singleTask" |
| 90 | android:screenOrientation="landscape"> | 91 | android:screenOrientation="landscape"> |
| 91 | 92 | ||
| 92 | </activity> | 93 | </activity> |
| 93 | <activity | 94 | <activity |
| 94 | android:name=".activity.ElectronicCardLookInfoActivity" | 95 | android:name=".activity.ElectronicCardLookInfoActivity" |
| 95 | android:launchMode="singleTask" | 96 | android:launchMode="singleTask" |
| 96 | android:screenOrientation="landscape"> | 97 | android:screenOrientation="landscape"> |
| 97 | 98 | ||
| 98 | </activity> | 99 | </activity> |
| 99 | <activity | 100 | <activity |
| 100 | android:name=".activity.FeedBackActivity" | 101 | android:name=".activity.FeedBackActivity" |
| 101 | android:launchMode="singleTask" | 102 | android:launchMode="singleTask" |
| 102 | android:screenOrientation="landscape"> | 103 | android:screenOrientation="landscape"> |
| 103 | 104 | ||
| 104 | </activity> | 105 | </activity> |
| 105 | <activity | 106 | <activity |
| 106 | android:name=".activity.AccountManagementActivity" | 107 | android:name=".activity.AccountManagementActivity" |
| 107 | android:launchMode="singleTask" | 108 | android:launchMode="singleTask" |
| 108 | android:screenOrientation="landscape"> | 109 | android:screenOrientation="landscape"> |
| 109 | 110 | ||
| 110 | </activity> | 111 | </activity> |
| 111 | <activity | 112 | <activity |
| 112 | android:name=".activity.ChangePresonalInfoActivity" | 113 | android:name=".activity.ChangePresonalInfoActivity" |
| 113 | android:launchMode="singleTask" | 114 | android:launchMode="singleTask" |
| 114 | android:screenOrientation="landscape"> | 115 | android:screenOrientation="landscape"> |
| 115 | 116 | ||
| 116 | </activity> | 117 | </activity> |
| 118 | <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | ||
| 117 | </application> | 119 | </application> |
| 118 | 120 | ||
| 119 | </manifest> | 121 | </manifest> |
PersonalCenter/app/src/main/java/com/hjx/personalcenter/activity/ElectronicCardEditInfoActivity.java
| 1 | package com.hjx.personalcenter.activity; | 1 | package com.hjx.personalcenter.activity; |
| 2 | 2 | ||
| 3 | import android.app.Activity; | 3 | import android.app.Activity; |
| 4 | import android.content.Intent; | 4 | import android.content.Intent; |
| 5 | import android.graphics.Color; | 5 | import android.graphics.Color; |
| 6 | import android.os.Bundle; | 6 | import android.os.Bundle; |
| 7 | import android.view.View; | 7 | import android.view.View; |
| 8 | import android.widget.Button; | 8 | import android.widget.Button; |
| 9 | import android.widget.EditText; | ||
| 10 | import android.widget.ImageView; | ||
| 9 | import android.widget.LinearLayout; | 11 | import android.widget.LinearLayout; |
| 10 | import android.widget.TextView; | 12 | import android.widget.TextView; |
| 11 | 13 | ||
| 12 | import com.bigkoo.pickerview.TimePickerView; | 14 | import com.bigkoo.pickerview.TimePickerView; |
| 13 | import com.hjx.personalcenter.R; | 15 | import com.hjx.personalcenter.R; |
| 14 | 16 | ||
| 15 | import java.text.SimpleDateFormat; | 17 | import java.text.SimpleDateFormat; |
| 16 | import java.util.Calendar; | ||
| 17 | import java.util.Date; | 18 | import java.util.Date; |
| 18 | 19 | ||
| 19 | /**填写保卡信息 熊巍 | 20 | /**填写保卡信息 熊巍 |
| 20 | * Created by h on 2017/8/11. | 21 | * Created by h on 2017/8/11. |
| 21 | */ | 22 | */ |
| 22 | 23 | ||
| 23 | public class ElectronicCardEditInfoActivity extends Activity implements View.OnClickListener { | 24 | public class ElectronicCardEditInfoActivity extends Activity implements View.OnClickListener { |
| 24 | private LinearLayout lineL_buy_time; | 25 | private LinearLayout lineL_buy_time; |
| 25 | private TextView tv_buy_time; | 26 | private TextView tv_buy_time,adress_shop,adress_custem; |
| 27 | private EditText username,store,detalAdress,telphone; | ||
| 26 | private TimePickerView pvTime; | 28 | private TimePickerView pvTime; |
| 27 | private Button btn_change_info; | 29 | private Button btn_change_info; |
| 30 | private ImageView iv_card_back; | ||
| 28 | 31 | ||
| 29 | @Override | 32 | @Override |
| 30 | protected void onCreate(Bundle savedInstanceState) { | 33 | protected void onCreate(Bundle savedInstanceState) { |
| 31 | super.onCreate(savedInstanceState); | 34 | super.onCreate(savedInstanceState); |
| 32 | setContentView(R.layout.activity_electroniccard_info); | 35 | setContentView(R.layout.activity_electroniccard_info); |
| 33 | initView(); | 36 | initView(); |
| 34 | initData(); | 37 | initData(); |
| 35 | initLister(); | 38 | initLister(); |
| 36 | initTimePicker(); | 39 | initTimePicker(); |
| 37 | } | 40 | } |
| 38 | 41 | ||
| 39 | private void initView() { | 42 | private void initView() { |
| 40 | lineL_buy_time = (LinearLayout) findViewById(R.id.lineL_buy_time); | 43 | lineL_buy_time = (LinearLayout) findViewById(R.id.lineL_buy_time); |
| 41 | tv_buy_time = (TextView) findViewById(R.id.tv_buy_time); | 44 | tv_buy_time = (TextView) findViewById(R.id.tv_buy_time); |
| 45 | adress_shop = (TextView) findViewById(R.id.tv_edit_adress_shop); | ||
| 46 | adress_custem = (TextView) findViewById(R.id.tv_edit_adress_custem); | ||
| 47 | username = (EditText) findViewById(R.id.et_edit_username); | ||
| 48 | store = (EditText) findViewById(R.id.et_edit_store); | ||
| 49 | detalAdress = (EditText) findViewById(R.id.et_edit_adress_detail); | ||
| 50 | telphone = (EditText) findViewById(R.id.et_edit_telphone); | ||
| 42 | btn_change_info = (Button) findViewById(R.id.btn_change_info); | 51 | btn_change_info = (Button) findViewById(R.id.btn_change_info); |
| 43 | } | 52 | } |
| 44 | 53 | ||
| 45 | private void initData() { | 54 | private void initData() { |
| 46 | 55 | ||
| 47 | } | 56 | } |
| 48 | 57 | ||
| 49 | private void initLister() { | 58 | private void initLister() { |
| 50 | lineL_buy_time.setOnClickListener(this); | 59 | lineL_buy_time.setOnClickListener(this); |
| 60 | adress_shop.setOnClickListener(this); | ||
| 61 | adress_custem.setOnClickListener(this); | ||
| 51 | btn_change_info.setOnClickListener(this); | 62 | btn_change_info.setOnClickListener(this); |
| 52 | 63 | ||
| 53 | } | 64 | } |
| 65 | //自定义时间选择器 | ||
| 54 | private void initTimePicker() { | 66 | private void initTimePicker() { |
| 55 | //控制时间范围(如果不设置范围,则使用默认时间1900-2100年,此段代码可注释) | 67 | //控制时间范围(如果不设置范围,则使用默认时间1900-2100年,此段代码可注释) |
| 56 | //因为系统Calendar的月份是从0-11的,所以如果是调用Calendar的set方法来设置时间,月份的范围也要是从0-11 | 68 | //因为系统Calendar的月份是从0-11的,所以如果是调用Calendar的set方法来设置时间,月份的范围也要是从0-11 |
| 57 | Calendar selectedDate = Calendar.getInstance(); | 69 | // Calendar selectedDate = Calendar.getInstance(); |
| 58 | Calendar startDate = Calendar.getInstance(); | 70 | // Calendar startDate = Calendar.getInstance(); |
| 59 | startDate.set(1900, 1, 1); | 71 | // startDate.set(1900, 1, 1); |
| 60 | Calendar endDate = Calendar.getInstance(); | 72 | // Calendar endDate = Calendar.getInstance(); |
| 61 | endDate.set(2100, 1, 1); | 73 | // endDate.set(2100, 1, 1); |
| 62 | //时间选择器 | 74 | //时间选择器 |
| 63 | pvTime = new TimePickerView.Builder(this, new TimePickerView.OnTimeSelectListener() { | 75 | pvTime = new TimePickerView.Builder(this, new TimePickerView.OnTimeSelectListener() { |
| 64 | @Override | 76 | @Override |
| 65 | public void onTimeSelect(Date date, View v) {//选中事件回调 | 77 | public void onTimeSelect(Date date, View v) {//选中事件回调 |
| 66 | // 这里回调过来的v,就是show()方法里面所添加的 View 参数,如果show的时候没有添加参数,v则为null | 78 | // 这里回调过来的v,就是show()方法里面所添加的 View 参数,如果show的时候没有添加参数,v则为null |
| 67 | /*btn_Time.setText(getTime(date));*/ | 79 | /*btn_Time.setText(getTime(date));*/ |
| 68 | TextView btn = (TextView) v; | 80 | TextView btn = (TextView) v; |
| 69 | btn.setText(getTime(date)); | 81 | btn.setText(getTime(date)); |
| 70 | } | 82 | } |
| 71 | }) | 83 | }) |
| 72 | //年月日时分秒 的显示与否,不设置则默认全部显示 | 84 | //年月日时分秒 的显示与否,不设置则默认全部显示 |
| 73 | .setType(new boolean[]{true, true, true, false, false, false}) | 85 | .setType(new boolean[]{true, true, true, false, false, false}) |
| 74 | .setLabel("", "", "", "", "", "") | 86 | .setLabel("", "", "", "", "", "") |
| 75 | .isCenterLabel(false) | 87 | .isCenterLabel(false) |
| 76 | .setDividerColor(Color.DKGRAY) | 88 | .setDividerColor(Color.DKGRAY) |
| 77 | .setContentSize(21) | 89 | .setContentSize(21) |
| 78 | .setDate(selectedDate) | 90 | // .setDate(selectedDate) |
| 79 | .setRangDate(startDate, endDate) | 91 | // .setRangDate(startDate, endDate) |
| 80 | .setBackgroundId(0x80000000) //设置外部遮罩颜色 | 92 | .setBackgroundId(0x80000000) //设置外部遮罩颜色 |
| 81 | .setDecorView(null) | 93 | .setDecorView(null) |
| 82 | .setTitleText("购买日期") | 94 | .setTitleText("购买日期") |
| 83 | .setTitleSize(22) | 95 | .setTitleSize(22) |
| 84 | .setCancelColor(Color.GRAY) | 96 | .setCancelColor(Color.GRAY) |
| 85 | .setSubCalSize(22) | 97 | .setSubCalSize(22) |
| 86 | .setDividerColor(Color.GRAY) | 98 | .setDividerColor(Color.GRAY) |
| 87 | .setSubmitColor(Color.GRAY) | 99 | .setSubmitColor(Color.GRAY) |
| 88 | .build(); | 100 | .build(); |
| 89 | } | 101 | } |
| 90 | private String getTime(Date date) {//可根据需要自行截取数据显示 | 102 | private String getTime(Date date) {//可根据需要自行截取数据显示 |
| 91 | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); | 103 | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); |
| 92 | return format.format(date); | 104 | return format.format(date); |
| 93 | } | 105 | } |
| 94 | 106 | ||
| 95 | @Override | 107 | @Override |
| 96 | public void onClick(View v) { | 108 | public void onClick(View v) { |
| 97 | switch (v.getId()){ | 109 | switch (v.getId()){ |
| 98 | case R.id.lineL_buy_time: | 110 | case R.id.lineL_buy_time: |
| 99 | pvTime.show(tv_buy_time);//弹出时间选择器,传递参数过去,回调的时候则可以绑定此view | 111 | pvTime.show(tv_buy_time);//弹出时间选择器,传递参数过去,回调的时候则可以绑定此view |
| 100 | break; | 112 | break; |
| 101 | case R.id.btn_change_info: | 113 | case R.id.btn_change_info: |
| 102 | Intent intent = new Intent(); | 114 | Intent intent = new Intent(); |
| 103 | intent.setClass(ElectronicCardEditInfoActivity.this,ElectronicCardInfoOKActivity.class); | 115 | intent.setClass(ElectronicCardEditInfoActivity.this,ElectronicCardInfoOKActivity.class); |
| 104 | startActivity(intent); | 116 | startActivity(intent); |
| 105 | overridePendingTransition(R.anim.rightin, R.anim.rightout); | 117 | overridePendingTransition(R.anim.rightin, R.anim.rightout); |
| 106 | break; | 118 | break; |
| 119 | case R.id.tv_edit_adress_shop: | ||
| 120 | |||
| 121 | break; | ||
| 122 | case R.id.tv_edit_adress_custem: | ||
| 123 | break; | ||
| 124 | |||
| 107 | } | 125 | } |
| 108 | 126 | ||
| 109 | 127 | ||
| 110 | } | 128 | } |
| 111 | } | 129 | } |
PersonalCenter/app/src/main/java/com/hjx/personalcenter/activity/ElectronicCardInfoOKActivity.java
| 1 | package com.hjx.personalcenter.activity; | 1 | package com.hjx.personalcenter.activity; |
| 2 | 2 | ||
| 3 | import android.app.Activity; | 3 | import android.app.Activity; |
| 4 | import android.content.Intent; | 4 | import android.content.Intent; |
| 5 | import android.os.Bundle; | 5 | import android.os.Bundle; |
| 6 | import android.view.View; | 6 | import android.view.View; |
| 7 | import android.widget.Button; | 7 | import android.widget.Button; |
| 8 | import android.widget.ImageView; | ||
| 9 | import android.widget.TextView; | ||
| 8 | 10 | ||
| 9 | import com.hjx.personalcenter.R; | 11 | import com.hjx.personalcenter.R; |
| 12 | import com.hjx.personalcenter.util.GetDevicesUtil; | ||
| 10 | 13 | ||
| 11 | /**确认保卡信息 | 14 | /**确认保卡信息 |
| 12 | * Created by h on 2017/8/11. | 15 | * Created by h on 2017/8/11. |
| 13 | */ | 16 | */ |
| 14 | 17 | ||
| 15 | public class ElectronicCardInfoOKActivity extends Activity implements View.OnClickListener { | 18 | public class ElectronicCardInfoOKActivity extends Activity implements View.OnClickListener { |
| 16 | private Button btn_finish; | 19 | private Button btn_finish; |
| 20 | private ImageView iv_last_step; | ||
| 21 | private TextView usename,deviceModel,customer_address,mac_adress,shoptime,deviceNumber,shopadress,phone,tlePhone; | ||
| 17 | @Override | 22 | @Override |
| 18 | protected void onCreate(Bundle savedInstanceState) { | 23 | protected void onCreate(Bundle savedInstanceState) { |
| 19 | super.onCreate(savedInstanceState); | 24 | super.onCreate(savedInstanceState); |
| 20 | setContentView(R.layout.activity_ok_cardinfo); | 25 | setContentView(R.layout.activity_ok_cardinfo); |
| 21 | initView(); | 26 | initView(); |
| 22 | initData(); | 27 | initData(); |
| 23 | initLister(); | 28 | initLister(); |
| 24 | } | 29 | } |
| 25 | private void initView() { | 30 | private void initView() { |
| 26 | btn_finish = (Button) findViewById(R.id.btn_finish); | 31 | btn_finish = (Button) findViewById(R.id.btn_finish); |
| 32 | usename = (TextView) findViewById(R.id.iv_card_username); | ||
| 33 | deviceModel = (TextView) findViewById(R.id.tv_card_deviceModel); | ||
| 34 | customer_address = (TextView) findViewById(R.id.tv_card_adress); | ||
| 35 | mac_adress = (TextView) findViewById(R.id.tv_card_mac); | ||
| 36 | shoptime = (TextView) findViewById(R.id.tv_card_time); | ||
| 37 | deviceNumber = (TextView) findViewById(R.id.tv_card_deviceNumber); | ||
| 38 | shopadress = (TextView) findViewById(R.id.tv_card_shopAdress); | ||
| 39 | phone = (TextView) findViewById(R.id.tv_card_phone); | ||
| 40 | tlePhone = (TextView) findViewById(R.id.tv_card_tleNember); | ||
| 27 | } | 41 | } |
| 28 | 42 | ||
| 29 | private void initData() { | 43 | private void initData() { |
| 44 | //获取设备信息 | ||
| 45 | deviceModel.setText(GetDevicesUtil.getDevicesInfo(this).getDeviceModel()); | ||
| 46 | deviceNumber.setText(GetDevicesUtil.getDevicesInfo(this).getDeviceNumber()); | ||
| 47 | mac_adress.setText(GetDevicesUtil.getDevicesInfo(this).getMac()); | ||
| 48 | //获取保卡信息 | ||
| 30 | 49 | ||
| 31 | } | 50 | } |
| 32 | 51 | ||
| 33 | private void initLister() { | 52 | private void initLister() { |
| 34 | btn_finish.setOnClickListener(this); | 53 | btn_finish.setOnClickListener(this); |
| 35 | } | 54 | } |
| 36 | 55 | ||
| 37 | @Override | 56 | @Override |
| 38 | public void onClick(View v) { | 57 | public void onClick(View v) { |
| 39 | switch (v.getId()){ | 58 | switch (v.getId()){ |
| 40 | case R.id.btn_finish: | 59 | case R.id.btn_finish: |
| 41 | Intent intent = new Intent(); | 60 | Intent intent = new Intent(); |
| 42 | intent.setClass(ElectronicCardInfoOKActivity.this,TheStartPageActivity.class); | 61 | intent.setClass(ElectronicCardInfoOKActivity.this,TheStartPageActivity.class); |
| 43 | startActivity(intent); | 62 | startActivity(intent); |
| 44 | overridePendingTransition(R.anim.rightin, R.anim.rightout); | 63 | overridePendingTransition(R.anim.rightin, R.anim.rightout); |
| 45 | break; | 64 | break; |
| 46 | } | 65 | } |
| 47 | } | 66 | } |
| 48 | } | 67 | } |
| 49 | 68 |
PersonalCenter/app/src/main/java/com/hjx/personalcenter/activity/MainActivity.java
| 1 | package com.hjx.personalcenter.activity; | 1 | package com.hjx.personalcenter.activity; |
| 2 | 2 | ||
| 3 | import android.content.Intent; | 3 | import android.content.Intent; |
| 4 | import android.os.Bundle; | 4 | import android.os.Bundle; |
| 5 | import android.support.v7.app.AppCompatActivity; | 5 | import android.support.v7.app.AppCompatActivity; |
| 6 | import android.view.View; | 6 | import android.view.View; |
| 7 | import android.widget.ImageView; | 7 | import android.widget.ImageView; |
| 8 | import android.widget.TextView; | ||
| 8 | 9 | ||
| 9 | import com.hjx.personalcenter.R; | 10 | import com.hjx.personalcenter.R; |
| 10 | 11 | ||
| 11 | public class MainActivity extends AppCompatActivity implements View.OnClickListener { | 12 | public class MainActivity extends AppCompatActivity implements View.OnClickListener { |
| 12 | ImageView iv_imformatioan; | 13 | private ImageView iv_imformatioan,iv_look_card,iv_setting; |
| 14 | private TextView tv_edit_presoninfo; | ||
| 13 | @Override | 15 | @Override |
| 14 | protected void onCreate(Bundle savedInstanceState) { | 16 | protected void onCreate(Bundle savedInstanceState) { |
| 15 | super.onCreate(savedInstanceState); | 17 | super.onCreate(savedInstanceState); |
| 16 | setContentView(R.layout.activity_main); | 18 | setContentView(R.layout.activity_main); |
| 17 | initView(); | 19 | initView(); |
| 18 | initData(); | 20 | initData(); |
| 19 | initLister(); | 21 | initLister(); |
| 20 | } | 22 | } |
| 21 | 23 | ||
| 22 | private void initView() { | 24 | private void initView() { |
| 23 | iv_imformatioan = (ImageView) findViewById(R.id.iv_imformatioan); | 25 | iv_imformatioan = (ImageView) findViewById(R.id.iv_imformatioan); |
| 26 | iv_look_card = (ImageView) findViewById(R.id.iv_look_card); | ||
| 27 | tv_edit_presoninfo = (TextView) findViewById(R.id.tv_edit_presoninfo); | ||
| 28 | iv_setting = (ImageView) findViewById(R.id.iv_setting); | ||
| 24 | } | 29 | } |
| 25 | 30 | ||
| 26 | private void initData() { | 31 | private void initData() { |
| 27 | 32 | ||
| 28 | } | 33 | } |
| 29 | 34 | ||
| 30 | private void initLister() { | 35 | private void initLister() { |
| 31 | iv_imformatioan.setOnClickListener(this); | 36 | iv_imformatioan.setOnClickListener(this); |
| 37 | iv_look_card.setOnClickListener(this); | ||
| 38 | tv_edit_presoninfo.setOnClickListener(this); | ||
| 39 | iv_setting.setOnClickListener(this); | ||
| 40 | |||
| 32 | } | 41 | } |
| 33 | 42 | ||
| 34 | @Override | 43 | @Override |
| 35 | public void onClick(View v) { | 44 | public void onClick(View v) { |
| 36 | switch (v.getId()){ | 45 | switch (v.getId()){ |
| 37 | case R.id.iv_imformatioan: | 46 | case R.id.iv_imformatioan: |
| 38 | Intent intent = new Intent(); | 47 | Intent intent = new Intent(); |
| 39 | intent.setClass(MainActivity.this,LoginAndRegisterActivity.class); | 48 | intent.setClass(MainActivity.this,FeedBackActivity.class); |
| 40 | startActivity(intent); | 49 | startActivity(intent); |
| 41 | overridePendingTransition(R.anim.rightin, R.anim.rightout); | 50 | overridePendingTransition(R.anim.rightin, R.anim.rightout); |
| 42 | break; | 51 | break; |
| 52 | case R.id.iv_look_card: | ||
| 53 | Intent lookintent = new Intent(); | ||
| 54 | lookintent.setClass(MainActivity.this,ElectronicCardLookInfoActivity.class); | ||
| 55 | startActivity(lookintent); | ||
| 56 | overridePendingTransition(R.anim.rightin, R.anim.rightout); | ||
| 57 | break; | ||
| 58 | case R.id.tv_edit_presoninfo: | ||
| 59 | Intent editintent = new Intent(); | ||
| 60 | editintent.setClass(MainActivity.this,ChangePresonalInfoActivity.class); | ||
| 61 | startActivity(editintent); | ||
| 62 | overridePendingTransition(R.anim.rightin, R.anim.rightout); | ||
| 63 | break; | ||
| 64 | case R.id.iv_setting: | ||
| 65 | Intent settingintent = new Intent(); | ||
| 66 | settingintent.setClass(MainActivity.this,LoginAndRegisterActivity.class); | ||
| 67 | startActivity(settingintent); | ||
| 68 | overridePendingTransition(R.anim.rightin, R.anim.rightout); | ||
| 69 | break; | ||
| 43 | } | 70 | } |
| 44 | 71 | ||
| 45 | } | 72 | } |
| 46 | } | 73 | } |
| 47 | 74 |
PersonalCenter/app/src/main/java/com/hjx/personalcenter/fragment/VersionsInfoFragment.java
| 1 | package com.hjx.personalcenter.fragment; | 1 | package com.hjx.personalcenter.fragment; |
| 2 | 2 | ||
| 3 | import android.os.Bundle; | 3 | import android.os.Bundle; |
| 4 | import android.support.annotation.Nullable; | 4 | import android.support.annotation.Nullable; |
| 5 | import android.support.v4.app.Fragment; | 5 | import android.support.v4.app.Fragment; |
| 6 | import android.view.LayoutInflater; | 6 | import android.view.LayoutInflater; |
| 7 | import android.view.View; | 7 | import android.view.View; |
| 8 | import android.view.ViewGroup; | 8 | import android.view.ViewGroup; |
| 9 | import android.widget.GridView; | 9 | import android.widget.GridView; |
| 10 | import android.widget.SimpleAdapter; | 10 | import android.widget.SimpleAdapter; |
| 11 | 11 | ||
| 12 | import com.hjx.personalcenter.R; | 12 | import com.hjx.personalcenter.R; |
| 13 | 13 | ||
| 14 | import java.util.ArrayList; | 14 | import java.util.ArrayList; |
| 15 | import java.util.HashMap; | 15 | import java.util.HashMap; |
| 16 | import java.util.List; | 16 | import java.util.List; |
| 17 | import java.util.Map; | 17 | import java.util.Map; |
| 18 | 18 | ||
| 19 | /** | 19 | /** |
| 20 | * Created by h on 2017/8/12. | 20 | * Created by h on 2017/8/12. |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | public class VersionsInfoFragment extends Fragment { | 23 | public class VersionsInfoFragment extends Fragment { |
| 24 | private GridView gridView; | 24 | private GridView gridView; |
| 25 | private List<Map<String, Object>> data_list; | 25 | private List<Map<String, Object>> data_list; |
| 26 | private SimpleAdapter sim_adapter; | 26 | private SimpleAdapter sim_adapter; |
| 27 | private View mView; | 27 | private View mView; |
| 28 | private int type; | 28 | private int type; |
| 29 | public static String TABLAYOUT_FRAGMENT = "tab_fragment"; | 29 | public static String TABLAYOUT_FRAGMENT = "tab_fragment"; |
| 30 | 30 | ||
| 31 | public static VersionsInfoFragment newInstance(int type) { | 31 | public static VersionsInfoFragment newInstance(int type) { |
| 32 | VersionsInfoFragment fragment = new VersionsInfoFragment(); | 32 | VersionsInfoFragment fragment = new VersionsInfoFragment(); |
| 33 | Bundle bundle = new Bundle(); | 33 | Bundle bundle = new Bundle(); |
| 34 | bundle.putSerializable(TABLAYOUT_FRAGMENT, type); | 34 | bundle.putSerializable(TABLAYOUT_FRAGMENT, type); |
| 35 | fragment.setArguments(bundle); | 35 | fragment.setArguments(bundle); |
| 36 | return fragment; | 36 | return fragment; |
| 37 | 37 | ||
| 38 | } | 38 | } |
| 39 | // 图片封装为一个数组 | 39 | // 图片封装为一个数组 |
| 40 | private int[] icon = { R.mipmap.ic_launcher, R.mipmap.ic_launcher, | 40 | private int[] icon = { R.mipmap.ic_launcher, R.mipmap.ic_launcher, |
| 41 | R.mipmap.ic_launcher, R.mipmap.ic_launcher, R.mipmap.ic_launcher, | 41 | R.mipmap.ic_launcher, R.mipmap.ic_launcher, R.mipmap.ic_launcher, |
| 42 | R.mipmap.ic_launcher, R.mipmap.ic_launcher, R.mipmap.ic_launcher, | 42 | R.mipmap.ic_launcher, R.mipmap.ic_launcher, R.mipmap.ic_launcher, |
| 43 | R.mipmap.ic_launcher}; | 43 | R.mipmap.ic_launcher}; |
| 44 | private String[] subject = { "语文", "数学", "英语", "物理", "化学", "生物", "政治", | 44 | private String[] subject = { "语文", "数学", "英语", "物理", "化学", "生物", "政治", |
| 45 | "历史", "地理" }; | 45 | "历史", "地理" }; |
| 46 | private String[] publish = { "人民教育出版社", "人民教育出版社", "人民教育出版社", | 46 | private String[] publish = { "人民教育出版社", "人民教育出版社", "人民教育出版社", |
| 47 | "人民教育出版社", "人民教育出版社", "人民教育出版社", "人民教育出版社", | 47 | "人民教育出版社", "人民教育出版社", "人民教育出版社", "人民教育出版社", |
| 48 | "人民教育出版社", "人民教育出版社" }; | 48 | "人民教育出版社", "人民教育出版社" }; |
| 49 | @Override | 49 | @Override |
| 50 | public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { | 50 | public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { |
| 51 | if (mView == null) { | 51 | if (mView == null) { |
| 52 | mView = inflater.inflate(R.layout.activity_choisetextbook, container, false); | 52 | mView = inflater.inflate(R.layout.fragment_changge_version_info, container, false); |
| 53 | initView(mView); | 53 | initView(mView); |
| 54 | initData(); | 54 | initData(); |
| 55 | setLister(); | 55 | setLister(); |
| 56 | 56 | ||
| 57 | 57 | ||
| 58 | } | 58 | } |
| 59 | return mView; | 59 | return mView; |
| 60 | } | 60 | } |
| 61 | //初始化 | 61 | //初始化 |
| 62 | private void initView(View mView) { | 62 | private void initView(View mView) { |
| 63 | gridView =(GridView) mView.findViewById(R.id.grideview); | 63 | gridView =(GridView) mView.findViewById(R.id.grideview); |
| 64 | 64 | ||
| 65 | } | 65 | } |
| 66 | private void initData() { | 66 | private void initData() { |
| 67 | data_list = new ArrayList<Map<String, Object>>(); | 67 | data_list = new ArrayList<Map<String, Object>>(); |
| 68 | getData(); | 68 | getData(); |
| 69 | String [] from ={"image","text","text1"}; | 69 | String [] from ={"image","text","text1"}; |
| 70 | int [] to = {R.id.image,R.id.text}; | 70 | int [] to = {R.id.image,R.id.text}; |
| 71 | sim_adapter = new SimpleAdapter(getActivity(), data_list, R.layout.fragment_changge_version_info_itmes, from, to); | 71 | sim_adapter = new SimpleAdapter(getActivity(), data_list, R.layout.fragment_changge_version_info_itmes, from, to); |
| 72 | //配置适配器 | 72 | //配置适配器 |
| 73 | gridView.setAdapter(sim_adapter); | 73 | gridView.setAdapter(sim_adapter); |
| 74 | } | 74 | } |
| 75 | public List<Map<String, Object>> getData(){ | 75 | public List<Map<String, Object>> getData(){ |
| 76 | //cion和iconName的长度是相同的,这里任选其一都可以 | 76 | //cion和iconName的长度是相同的,这里任选其一都可以 |
| 77 | for(int i=0;i<icon.length;i++){ | 77 | for(int i=0;i<icon.length;i++){ |
| 78 | Map<String, Object> map = new HashMap<String, Object>(); | 78 | Map<String, Object> map = new HashMap<String, Object>(); |
| 79 | map.put("image", icon[i]); | 79 | map.put("image", icon[i]); |
| 80 | map.put("text", subject[i]); | 80 | map.put("text", subject[i]); |
| 81 | map.put("text1", publish[i]); | 81 | map.put("text1", publish[i]); |
| 82 | data_list.add(map); | 82 | data_list.add(map); |
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | return data_list; | 85 | return data_list; |
| 86 | } | 86 | } |
| 87 | private void setLister() { | 87 | private void setLister() { |
| 88 | } | 88 | } |
| 89 | } | 89 | } |
| 90 | 90 |
PersonalCenter/app/src/main/java/com/hjx/personalcenter/model/DeviceInfo.java
| File was created | 1 | package com.hjx.personalcenter.model; | |
| 2 | |||
| 3 | /** | ||
| 4 | * Created by h on 2017/8/14. | ||
| 5 | */ | ||
| 6 | |||
| 7 | public class DeviceInfo { | ||
| 8 | private String mac = null; //:"D0-DF-9A-5F-A2-0A"网卡地址 | ||
| 9 | private String deviceNumber = null;//":"43234-51518888-2557", | ||
| 10 | private String deviceModel = null;//:"M18", | ||
| 11 | |||
| 12 | |||
| 13 | public String getDeviceNumber() { | ||
| 14 | return deviceNumber; | ||
| 15 | } | ||
| 16 | |||
| 17 | public void setDeviceNumber(String deviceNumber) { | ||
| 18 | this.deviceNumber = deviceNumber; | ||
| 19 | } | ||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | public String getDeviceModel() { | ||
| 24 | return deviceModel; | ||
| 25 | } | ||
| 26 | |||
| 27 | public void setDeviceModel(String deviceModel) { | ||
| 28 | this.deviceModel = deviceModel; | ||
| 29 | } | ||
| 30 | |||
| 31 | |||
| 32 | |||
| 33 | public String getMac() { | ||
| 34 | return mac; | ||
| 35 | } | ||
| 36 | |||
| 37 | public void setMac(String mac) { | ||
| 38 | this.mac = mac; | ||
| 39 | } | ||
| 40 | |||
| 41 | |||
| 42 | |||
| 43 | } | ||
| 44 |
PersonalCenter/app/src/main/java/com/hjx/personalcenter/util/GetDevicesUtil.java
| File was created | 1 | package com.hjx.personalcenter.util; | |
| 2 | |||
| 3 | import android.content.Context; | ||
| 4 | import android.net.wifi.WifiInfo; | ||
| 5 | import android.net.wifi.WifiManager; | ||
| 6 | import android.util.Log; | ||
| 7 | |||
| 8 | import com.hjx.personalcenter.model.DeviceInfo; | ||
| 9 | |||
| 10 | |||
| 11 | public class GetDevicesUtil { | ||
| 12 | private final static String LOG_TAG = "GetDevicesUtil"; | ||
| 13 | |||
| 14 | public static String getDevicesJson(Context context){ | ||
| 15 | DeviceInfo mDeviceInfo = new DeviceInfo(); | ||
| 16 | initDevicesInfo(mDeviceInfo,context); | ||
| 17 | |||
| 18 | StringBuilder sb = new StringBuilder(); | ||
| 19 | sb.append("\"devices\":[{"); | ||
| 20 | sb.append("\"deviceNumber\":").append("\"").append( mDeviceInfo.getDeviceNumber()).append("\","); | ||
| 21 | sb.append("\"deviceModel\":").append("\"").append(mDeviceInfo.getDeviceModel()).append("\","); | ||
| 22 | sb.append("\"mac\":").append("\"").append(mDeviceInfo.getMac()).append("\","); | ||
| 23 | sb.append("}]"); | ||
| 24 | Log.i(LOG_TAG, sb.toString()); | ||
| 25 | return sb.toString(); | ||
| 26 | } | ||
| 27 | |||
| 28 | public static DeviceInfo getDevicesInfo(Context context){ | ||
| 29 | DeviceInfo mDeviceInfo = new DeviceInfo(); | ||
| 30 | initDevicesInfo(mDeviceInfo,context); | ||
| 31 | |||
| 32 | return mDeviceInfo; | ||
| 33 | } | ||
| 34 | |||
| 35 | public static void initDevicesInfo(DeviceInfo mDeviceInfo,Context context){ | ||
| 36 | mDeviceInfo.setDeviceModel(android.os.Build.MODEL); | ||
| 37 | Log.e(LOG_TAG,"" + mDeviceInfo.getDeviceModel()); | ||
| 38 | mDeviceInfo.setMac(getMacAddress(context)); | ||
| 39 | Log.e(LOG_TAG,"" + mDeviceInfo.getMac()); | ||
| 40 | |||
| 41 | mDeviceInfo.setDeviceNumber(getCPUSerial(context)); | ||
| 42 | Log.e(LOG_TAG,"" + mDeviceInfo.getDeviceModel()); | ||
| 43 | } | ||
| 44 | |||
| 45 | private static String getCPUSerial(Context context) { | ||
| 46 | return MachineUtil.getMachineCode(context); | ||
| 47 | } | ||
| 48 | |||
| 49 | private static String getMacAddress(Context mContext){ | ||
| 50 | |||
| 51 | String ret = null; | ||
| 52 | try { | ||
| 53 | WifiManager manager = (WifiManager)mContext.getSystemService(Context.WIFI_SERVICE); | ||
| 54 | WifiInfo info = manager.getConnectionInfo(); | ||
| 55 | ret = info.getMacAddress(); | ||
| 56 | } catch (Exception e) { | ||
| 57 | Log.e(LOG_TAG, "get wifi address wrong", e); | ||
| 58 | } | ||
| 59 | Log.i(LOG_TAG, "wifi address is" + ret); | ||
| 60 | return ret; | ||
| 61 | } | ||
| 62 | } | ||
| 63 |
PersonalCenter/app/src/main/java/com/hjx/personalcenter/util/LogUtil.java
| File was created | 1 | package com.hjx.personalcenter.util; | |
| 2 | |||
| 3 | import java.io.File; | ||
| 4 | import java.io.FileNotFoundException; | ||
| 5 | import java.io.FileOutputStream; | ||
| 6 | import java.io.IOException; | ||
| 7 | import java.text.SimpleDateFormat; | ||
| 8 | import java.util.Date; | ||
| 9 | |||
| 10 | public class LogUtil | ||
| 11 | { | ||
| 12 | private static com.hjx.personalcenter.util.LogUtil _lg; | ||
| 13 | //single | ||
| 14 | public static com.hjx.personalcenter.util.LogUtil Instance(){ | ||
| 15 | if(_lg == null){ | ||
| 16 | _lg = new com.hjx.personalcenter.util.LogUtil(); | ||
| 17 | } | ||
| 18 | return _lg; | ||
| 19 | } | ||
| 20 | |||
| 21 | //日志保存的数量 ,默认保存最近10天的日志 | ||
| 22 | public int logSaveNum=10; | ||
| 23 | |||
| 24 | /**插入日志*/ | ||
| 25 | public void WriteLog(String msg){ | ||
| 26 | if(LOG_SWITCH){ | ||
| 27 | System.out.println("插入日子的信息:" + msg); | ||
| 28 | File file = checkLogFileIsExist(); | ||
| 29 | if(file == null) | ||
| 30 | return; | ||
| 31 | FileOutputStream fos = null; | ||
| 32 | try | ||
| 33 | { | ||
| 34 | fos = new FileOutputStream(file, true); | ||
| 35 | fos.write((new Date().toLocaleString() + " " + msg).getBytes("gbk")); | ||
| 36 | fos.write("\r\n".getBytes("gbk")); | ||
| 37 | } | ||
| 38 | catch (FileNotFoundException e) | ||
| 39 | { | ||
| 40 | e.printStackTrace(); | ||
| 41 | } | ||
| 42 | catch (IOException e) | ||
| 43 | { | ||
| 44 | e.printStackTrace(); | ||
| 45 | } | ||
| 46 | finally{ | ||
| 47 | try | ||
| 48 | { | ||
| 49 | if(fos != null){ | ||
| 50 | fos.close(); | ||
| 51 | fos = null; | ||
| 52 | } | ||
| 53 | } | ||
| 54 | catch (IOException e) | ||
| 55 | { | ||
| 56 | e.printStackTrace(); | ||
| 57 | } | ||
| 58 | fos = null; | ||
| 59 | file = null; | ||
| 60 | } | ||
| 61 | } | ||
| 62 | } | ||
| 63 | /** | ||
| 64 | * 打印异常堆栈信息 | ||
| 65 | * @param e | ||
| 66 | * @return | ||
| 67 | */ | ||
| 68 | public void WriteStackTrace(Throwable e){ | ||
| 69 | if(e != null){ | ||
| 70 | //StringWriter sw = new StringWriter(); | ||
| 71 | //PrintWriter pw = new PrintWriter(sw); | ||
| 72 | //e.printStackTrace(pw); | ||
| 73 | //return sw.toString(); | ||
| 74 | WriteLog(e.getStackTrace().toString()); | ||
| 75 | } | ||
| 76 | //return ""; | ||
| 77 | } | ||
| 78 | |||
| 79 | |||
| 80 | |||
| 81 | |||
| 82 | private LogUtil() | ||
| 83 | { | ||
| 84 | CheckLogDele(); | ||
| 85 | |||
| 86 | } | ||
| 87 | |||
| 88 | private void CheckLogDele() | ||
| 89 | { | ||
| 90 | //todo 扫描sd卡下面的日志文件,删除超过logSaveNum的日志 | ||
| 91 | |||
| 92 | } | ||
| 93 | |||
| 94 | /**日志保存路径*/ | ||
| 95 | private static final String LOG_SAVE_PATH = "/sdcard/Log/"; //sd卡上的日志文件目录 | ||
| 96 | /**日志开关*/ | ||
| 97 | private static final boolean LOG_SWITCH = true; | ||
| 98 | |||
| 99 | /**检查日志文件是否存在*/ | ||
| 100 | private File checkLogFileIsExist(){ | ||
| 101 | //if(!MemorySpaceManager.isSDExist()){ //sd 卡是否存在 | ||
| 102 | // return null; | ||
| 103 | //} | ||
| 104 | File file = new File(LOG_SAVE_PATH); | ||
| 105 | if(!file.exists()){ | ||
| 106 | file.mkdirs(); | ||
| 107 | } | ||
| 108 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); | ||
| 109 | String dateStr = sdf.format(new Date()); | ||
| 110 | file = new File(LOG_SAVE_PATH + dateStr + ".txt"); | ||
| 111 | if(!isLogExist(file)){ | ||
| 112 | try | ||
| 113 | { | ||
| 114 | file.createNewFile(); | ||
| 115 | } | ||
| 116 | catch (IOException e) | ||
| 117 | { | ||
| 118 | e.printStackTrace(); | ||
| 119 | } | ||
| 120 | } | ||
| 121 | sdf = null; | ||
| 122 | return file; | ||
| 123 | } | ||
| 124 | |||
| 125 | /** | ||
| 126 | * 检查当天日志文件是否存在 | ||
| 127 | * @param file | ||
| 128 | * @return | ||
| 129 | */ | ||
| 130 | private boolean isLogExist(File file){ | ||
| 131 | File tempFile = new File(LOG_SAVE_PATH); | ||
| 132 | File[] files = tempFile.listFiles(); | ||
| 133 | if(files!=null){ | ||
| 134 | for(int i = 0; i < files.length; i++){ | ||
| 135 | if(files[0].getName().trim().equalsIgnoreCase(file.getName())){ | ||
| 136 | return true; | ||
| 137 | } | ||
| 138 | } | ||
| 139 | } | ||
| 140 | return false; | ||
| 141 | } | ||
| 142 | |||
| 143 | } |
PersonalCenter/app/src/main/java/com/hjx/personalcenter/util/MachineUtil.java
| File was created | 1 | package com.hjx.personalcenter.util; | |
| 2 | |||
| 3 | import android.content.Context; | ||
| 4 | import android.os.Build; | ||
| 5 | import android.telephony.TelephonyManager; | ||
| 6 | import android.text.TextUtils; | ||
| 7 | |||
| 8 | import java.io.InputStreamReader; | ||
| 9 | import java.io.LineNumberReader; | ||
| 10 | |||
| 11 | public class MachineUtil { | ||
| 12 | |||
| 13 | public static String getMachineCode(Context context) { | ||
| 14 | String cpuAddress = null; | ||
| 15 | try{ | ||
| 16 | // PmpsManager pmps = new PmpsManager(); | ||
| 17 | // cpuAddress = pmps.getDeviceId(context); | ||
| 18 | }catch(Exception e){ | ||
| 19 | com.hjx.personalcenter.util.LogUtil.Instance().WriteLog("mac地址获取失败"); | ||
| 20 | }catch(NoClassDefFoundError e){ | ||
| 21 | com.hjx.personalcenter.util.LogUtil.Instance().WriteLog("设备不是好记星"); | ||
| 22 | } | ||
| 23 | if(!TextUtils.isEmpty(cpuAddress) && !"A818A81800".equals(cpuAddress)){ | ||
| 24 | //Log.e("=========.MACHINE.=========", "function 1 get device id:"+cpuAddress); | ||
| 25 | return cpuAddress; | ||
| 26 | } | ||
| 27 | |||
| 28 | try{ | ||
| 29 | cpuAddress = android.provider.Settings.System.getString(context.getContentResolver(), "serial_number").trim(); | ||
| 30 | }catch(Exception e){ | ||
| 31 | com.hjx.personalcenter.util.LogUtil.Instance().WriteLog("=========.MACHINE.=========function 2 get device id error"); | ||
| 32 | } | ||
| 33 | if(!TextUtils.isEmpty(cpuAddress)){ | ||
| 34 | //Log.e("=========.MACHINE.=========", "function 2 get device id:"+cpuAddress); | ||
| 35 | return cpuAddress; | ||
| 36 | } | ||
| 37 | |||
| 38 | try { | ||
| 39 | if("Top".equals(Build.MODEL)){ | ||
| 40 | String str = "", strCPU = ""; | ||
| 41 | // 读取CPU信息 | ||
| 42 | Process pp = Runtime.getRuntime().exec("cat/proc/cpuinfo"); | ||
| 43 | InputStreamReader ir = new InputStreamReader(pp.getInputStream()); | ||
| 44 | LineNumberReader input = new LineNumberReader(ir); | ||
| 45 | // 查找CPU序列号 | ||
| 46 | for (int i = 1; i < 100; i++) { | ||
| 47 | str = input.readLine(); | ||
| 48 | if (str != null) { | ||
| 49 | // 查找到序列号所在行 | ||
| 50 | if (str.indexOf("Serial") > -1) { | ||
| 51 | // 提取序列号 | ||
| 52 | strCPU = str.substring(str.indexOf(":") + 1, str.length()); | ||
| 53 | cpuAddress = strCPU.trim(); | ||
| 54 | break; | ||
| 55 | } | ||
| 56 | } else { | ||
| 57 | break; | ||
| 58 | } | ||
| 59 | } | ||
| 60 | } | ||
| 61 | } catch (Exception e) { | ||
| 62 | com.hjx.personalcenter.util.LogUtil.Instance().WriteLog("=========.MACHINE.=========function 3 get device id error"); | ||
| 63 | } | ||
| 64 | if(!TextUtils.isEmpty(cpuAddress)){ | ||
| 65 | //Log.e("=========.MACHINE.=========", "function 3 get device id:"+cpuAddress); | ||
| 66 | return cpuAddress; | ||
| 67 | } | ||
| 68 | |||
| 69 | try{ | ||
| 70 | cpuAddress = ((TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); | ||
| 71 | }catch(Exception e){ | ||
| 72 | com.hjx.personalcenter.util.LogUtil.Instance().WriteLog("=========.MACHINE.=========function 4 get device id error"); | ||
| 73 | } | ||
| 74 | if(!TextUtils.isEmpty(cpuAddress)){ | ||
| 75 | //Log.e("=========.MACHINE.=========", "function 4 get device id:"+cpuAddress); | ||
| 76 | return cpuAddress; | ||
| 77 | } | ||
| 78 | |||
| 79 | cpuAddress = "unknown"; | ||
| 80 | return cpuAddress; | ||
| 81 | } | ||
| 82 | } | ||
| 83 |
PersonalCenter/app/src/main/java/com/hjx/personalcenter/util/SaveParam.java
| File was created | 1 | package com.hjx.personalcenter.util; | |
| 2 | |||
| 3 | import android.app.Activity; | ||
| 4 | import android.content.Context; | ||
| 5 | import android.content.SharedPreferences; | ||
| 6 | |||
| 7 | public class SaveParam { | ||
| 8 | |||
| 9 | private static SaveParam instance; | ||
| 10 | public static SaveParam getInstance(){ | ||
| 11 | if (instance==null){ | ||
| 12 | instance = new SaveParam(); | ||
| 13 | } | ||
| 14 | return instance; | ||
| 15 | } | ||
| 16 | |||
| 17 | |||
| 18 | public void saveLoginParam(Context context,String spname, String spstr) { | ||
| 19 | SharedPreferences sp = context.getSharedPreferences("loginparam", | ||
| 20 | Activity.MODE_PRIVATE); | ||
| 21 | |||
| 22 | sp.edit().putString(spname, spstr).commit(); | ||
| 23 | } | ||
| 24 | |||
| 25 | public String getLoginParam(Context context,String spname) { | ||
| 26 | SharedPreferences sp = context.getSharedPreferences("loginparam", | ||
| 27 | Activity.MODE_PRIVATE); | ||
| 28 | String param = sp.getString(spname, null); | ||
| 29 | return param; | ||
| 30 | } | ||
| 31 | public void clearData(Context context) { | ||
| 32 | SharedPreferences sp = context.getSharedPreferences("loginparam", | ||
| 33 | Activity.MODE_PRIVATE); | ||
| 34 | sp.edit().clear().commit(); | ||
| 35 | } | ||
| 36 | |||
| 37 | public void saveCustomizeParam(Context context,String spname, String spstr) { | ||
| 38 | SharedPreferences sp = context.getSharedPreferences("presoninfo", | ||
| 39 | Activity.MODE_PRIVATE); | ||
| 40 | |||
| 41 | sp.edit().putString(spname, spstr).commit(); | ||
| 42 | |||
| 43 | } | ||
| 44 | |||
| 45 | public String getCustomizeParam(Context context,String spname) { | ||
| 46 | SharedPreferences sp = context.getSharedPreferences("presoninfo", | ||
| 47 | Activity.MODE_PRIVATE); | ||
| 48 | String param = sp.getString(spname, null); | ||
| 49 | return param; | ||
| 50 | } | ||
| 51 | |||
| 52 | public void clearCustomizeParam(Context context ){ | ||
| 53 | SharedPreferences sp = context.getSharedPreferences("presoninfo", | ||
| 54 | Activity.MODE_PRIVATE); | ||
| 55 | sp.edit().clear().commit(); | ||
| 56 | } | ||
| 57 | } | ||
| 58 |
PersonalCenter/app/src/main/res/layout/activity_electronic_look_cardinfo.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 | android:orientation="vertical"> | 5 | android:orientation="vertical"> |
| 6 | 6 | ||
| 7 | <RelativeLayout | 7 | <RelativeLayout |
| 8 | android:id="@+id/title" | 8 | android:id="@+id/title" |
| 9 | android:layout_width="match_parent" | 9 | android:layout_width="match_parent" |
| 10 | android:layout_height="wrap_content" | 10 | android:layout_height="wrap_content" |
| 11 | android:background="@color/login_text_blue" | 11 | android:background="@color/login_text_blue" |
| 12 | android:minHeight="50dp"> | 12 | android:minHeight="50dp"> |
| 13 | 13 | ||
| 14 | <ImageView | 14 | <ImageView |
| 15 | android:id="@+id/cancel" | 15 | android:id="@+id/cancel" |
| 16 | android:layout_width="wrap_content" | 16 | android:layout_width="wrap_content" |
| 17 | android:layout_height="wrap_content" | 17 | android:layout_height="wrap_content" |
| 18 | android:layout_centerVertical="true" | 18 | android:layout_centerVertical="true" |
| 19 | android:paddingLeft="20dp" | 19 | android:paddingLeft="20dp" |
| 20 | android:paddingRight="20dp" | 20 | android:paddingRight="20dp" |
| 21 | android:src="@mipmap/title_back" /> | 21 | android:src="@mipmap/title_back" /> |
| 22 | 22 | ||
| 23 | <TextView | 23 | <TextView |
| 24 | android:id="@+id/menu_title" | 24 | android:id="@+id/menu_title" |
| 25 | android:layout_width="wrap_content" | 25 | android:layout_width="wrap_content" |
| 26 | android:layout_height="wrap_content" | 26 | android:layout_height="wrap_content" |
| 27 | android:layout_centerInParent="true" | 27 | android:layout_centerInParent="true" |
| 28 | android:text="@string/string_electroniccard_info_look" | 28 | android:text="@string/string_electroniccard_info_look" |
| 29 | android:textColor="@android:color/white" | 29 | android:textColor="@android:color/white" |
| 30 | android:textSize="22sp" /> | 30 | android:textSize="22sp" /> |
| 31 | </RelativeLayout> | 31 | </RelativeLayout> |
| 32 | 32 | ||
| 33 | <LinearLayout | 33 | <LinearLayout |
| 34 | android:layout_width="match_parent" | 34 | android:layout_width="match_parent" |
| 35 | android:layout_height="wrap_content" | 35 | android:layout_height="wrap_content" |
| 36 | android:layout_margin="20dp" | 36 | android:layout_margin="20dp" |
| 37 | android:background="@mipmap/cardbackgrangd" | 37 | android:background="@mipmap/cardbackgrangd" |
| 38 | android:gravity="center" | 38 | android:gravity="center" |
| 39 | android:orientation="vertical"> | 39 | android:orientation="vertical"> |
| 40 | 40 | ||
| 41 | <LinearLayout | 41 | <LinearLayout |
| 42 | android:layout_width="match_parent" | 42 | android:layout_width="match_parent" |
| 43 | android:layout_height="wrap_content" | 43 | android:layout_height="wrap_content" |
| 44 | android:layout_marginTop="70dp" | 44 | android:layout_marginTop="70dp" |
| 45 | android:gravity="center_vertical" | 45 | android:gravity="center_vertical" |
| 46 | android:orientation="horizontal"> | 46 | android:orientation="horizontal"> |
| 47 | 47 | ||
| 48 | <LinearLayout | 48 | <LinearLayout |
| 49 | android:layout_width="0dp" | 49 | android:layout_width="0dp" |
| 50 | android:layout_height="wrap_content" | 50 | android:layout_height="wrap_content" |
| 51 | android:layout_marginLeft="200dp" | 51 | android:layout_marginLeft="200dp" |
| 52 | android:layout_weight="1" | 52 | android:layout_weight="1" |
| 53 | android:gravity="center_vertical"> | 53 | android:gravity="center_vertical"> |
| 54 | 54 | ||
| 55 | <ImageView | 55 | <ImageView |
| 56 | android:layout_width="wrap_content" | 56 | android:layout_width="wrap_content" |
| 57 | android:layout_height="wrap_content" | 57 | android:layout_height="wrap_content" |
| 58 | android:src="@mipmap/logo_info" /> | 58 | android:src="@mipmap/logo_info" /> |
| 59 | 59 | ||
| 60 | <TextView | 60 | <TextView |
| 61 | android:layout_width="wrap_content" | 61 | android:layout_width="wrap_content" |
| 62 | android:layout_height="wrap_content" | 62 | android:layout_height="wrap_content" |
| 63 | android:layout_marginLeft="50dp" | 63 | android:layout_marginLeft="50dp" |
| 64 | android:background="@null" | 64 | android:background="@null" |
| 65 | android:text="电子保卡" | 65 | android:text="电子保卡" |
| 66 | android:textColor="@color/electronic_card" | 66 | android:textColor="@color/electronic_card" |
| 67 | android:textSize="22sp" /> | 67 | android:textSize="22sp" /> |
| 68 | 68 | ||
| 69 | </LinearLayout> | 69 | </LinearLayout> |
| 70 | 70 | ||
| 71 | <LinearLayout | 71 | <LinearLayout |
| 72 | android:layout_width="0dp" | 72 | android:layout_width="0dp" |
| 73 | android:layout_height="80dp" | 73 | android:layout_height="80dp" |
| 74 | android:layout_weight="1" | 74 | android:layout_weight="1" |
| 75 | android:layout_marginLeft="80dp" | 75 | android:layout_marginLeft="80dp" |
| 76 | android:gravity="center_vertical"> | 76 | android:gravity="center_vertical"> |
| 77 | 77 | ||
| 78 | <TextView | 78 | <TextView |
| 79 | android:layout_width="wrap_content" | 79 | android:layout_width="wrap_content" |
| 80 | android:layout_height="wrap_content" | 80 | android:layout_height="wrap_content" |
| 81 | android:text="客户姓名" | 81 | android:text="客户姓名" |
| 82 | android:textColor="@color/btn_text_color" | 82 | android:textColor="@color/btn_text_color" |
| 83 | android:textSize="22sp" /> | 83 | android:textSize="22sp" /> |
| 84 | 84 | ||
| 85 | <TextView | 85 | <TextView |
| 86 | android:layout_width="wrap_content" | 86 | android:layout_width="wrap_content" |
| 87 | android:layout_height="wrap_content" | 87 | android:layout_height="wrap_content" |
| 88 | android:layout_marginLeft="60dp" | 88 | android:layout_marginLeft="60dp" |
| 89 | android:text="王小明" | 89 | android:text="王小明" |
| 90 | android:textColor="@color/btn_text_color" | 90 | android:textColor="@color/btn_text_color" |
| 91 | android:textSize="22sp" /> | 91 | android:textSize="22sp" /> |
| 92 | 92 | ||
| 93 | </LinearLayout> | 93 | </LinearLayout> |
| 94 | 94 | ||
| 95 | </LinearLayout> | 95 | </LinearLayout> |
| 96 | 96 | ||
| 97 | <LinearLayout | 97 | <LinearLayout |
| 98 | android:layout_width="match_parent" | 98 | android:layout_width="match_parent" |
| 99 | android:layout_height="wrap_content" | 99 | android:layout_height="wrap_content" |
| 100 | android:gravity="center_vertical" | 100 | android:gravity="center_vertical" |
| 101 | android:orientation="horizontal"> | 101 | android:orientation="horizontal"> |
| 102 | 102 | ||
| 103 | <LinearLayout | 103 | <LinearLayout |
| 104 | android:layout_width="0dp" | 104 | android:layout_width="0dp" |
| 105 | android:layout_height="60dp" | 105 | android:layout_height="60dp" |
| 106 | android:layout_weight="1" | 106 | android:layout_weight="1" |
| 107 | android:layout_marginLeft="200dp" | 107 | android:layout_marginLeft="200dp" |
| 108 | android:gravity="center_vertical"> | 108 | android:gravity="center_vertical"> |
| 109 | 109 | ||
| 110 | <TextView | 110 | <TextView |
| 111 | android:layout_width="wrap_content" | 111 | android:layout_width="wrap_content" |
| 112 | android:layout_height="wrap_content" | 112 | android:layout_height="wrap_content" |
| 113 | android:text="产品型号" | 113 | android:text="产品型号" |
| 114 | android:textColor="@color/btn_text_color" | 114 | android:textColor="@color/btn_text_color" |
| 115 | android:textSize="22sp" /> | 115 | android:textSize="22sp" /> |
| 116 | 116 | ||
| 117 | <TextView | 117 | <TextView |
| 118 | android:layout_width="wrap_content" | 118 | android:layout_width="wrap_content" |
| 119 | android:layout_height="wrap_content" | 119 | android:layout_height="wrap_content" |
| 120 | android:layout_marginLeft="50dp" | 120 | android:layout_marginLeft="50dp" |
| 121 | android:text="IPone888" | 121 | android:text="IPone888" |
| 122 | android:textSize="22sp" /> | 122 | android:textSize="22sp" /> |
| 123 | 123 | ||
| 124 | 124 | ||
| 125 | </LinearLayout> | 125 | </LinearLayout> |
| 126 | 126 | ||
| 127 | <LinearLayout | 127 | <LinearLayout |
| 128 | android:layout_width="0dp" | 128 | android:layout_width="0dp" |
| 129 | android:layout_height="60dp" | 129 | android:layout_height="60dp" |
| 130 | android:layout_weight="1" | 130 | android:layout_weight="1" |
| 131 | android:layout_marginLeft="80dp" | 131 | android:layout_marginLeft="80dp" |
| 132 | android:gravity="center_vertical"> | 132 | android:gravity="center_vertical"> |
| 133 | 133 | ||
| 134 | <TextView | 134 | <TextView |
| 135 | android:layout_width="wrap_content" | 135 | android:layout_width="wrap_content" |
| 136 | android:layout_height="wrap_content" | 136 | android:layout_height="wrap_content" |
| 137 | android:text="客户地址" | 137 | android:text="客户地址" |
| 138 | android:textSize="22sp" /> | 138 | android:textSize="22sp" /> |
| 139 | 139 | ||
| 140 | <TextView | 140 | <TextView |
| 141 | android:layout_width="wrap_content" | 141 | android:layout_width="wrap_content" |
| 142 | android:layout_height="wrap_content" | 142 | android:layout_height="wrap_content" |
| 143 | android:layout_marginLeft="60dp" | 143 | android:layout_marginLeft="60dp" |
| 144 | android:background="@null" | 144 | android:background="@null" |
| 145 | android:text="北京市昭阳区三里屯" | 145 | android:text="北京市昭阳区三里屯" |
| 146 | android:textSize="22sp" /> | 146 | android:textSize="22sp" /> |
| 147 | <TextView | 147 | <TextView |
| 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_marginLeft="18dp" | 150 | android:layout_marginLeft="18dp" |
| 151 | android:background="@drawable/corcle_black_bg" | 151 | android:background="@drawable/corcle_black_bg" |
| 152 | android:text="修改" | 152 | android:text="修改" |
| 153 | android:paddingLeft="5dp" | 153 | android:paddingLeft="5dp" |
| 154 | android:paddingRight="5dp" | 154 | android:paddingRight="5dp" |
| 155 | android:textColor="@color/login_text_blue" | 155 | android:textColor="@color/login_text_blue" |
| 156 | android:textSize="18sp" /> | 156 | android:textSize="18sp" /> |
| 157 | 157 | ||
| 158 | 158 | ||
| 159 | </LinearLayout> | 159 | </LinearLayout> |
| 160 | 160 | ||
| 161 | </LinearLayout> | 161 | </LinearLayout> |
| 162 | 162 | ||
| 163 | <LinearLayout | 163 | <LinearLayout |
| 164 | android:layout_width="match_parent" | 164 | android:layout_width="match_parent" |
| 165 | android:layout_height="wrap_content" | 165 | android:layout_height="wrap_content" |
| 166 | android:gravity="center_vertical" | 166 | android:gravity="center_vertical" |
| 167 | android:orientation="horizontal"> | 167 | android:orientation="horizontal"> |
| 168 | 168 | ||
| 169 | <LinearLayout | 169 | <LinearLayout |
| 170 | android:layout_width="0dp" | 170 | android:layout_width="0dp" |
| 171 | android:layout_height="60dp" | 171 | android:layout_height="60dp" |
| 172 | android:layout_weight="1" | 172 | android:layout_weight="1" |
| 173 | android:layout_marginLeft="200dp" | 173 | android:layout_marginLeft="200dp" |
| 174 | android:gravity="center_vertical"> | 174 | android:gravity="center_vertical"> |
| 175 | 175 | ||
| 176 | <TextView | 176 | <TextView |
| 177 | android:layout_width="wrap_content" | 177 | android:layout_width="wrap_content" |
| 178 | android:layout_height="wrap_content" | 178 | android:layout_height="wrap_content" |
| 179 | android:text="MAC地址" | 179 | android:text="MAC地址" |
| 180 | android:textSize="22sp" /> | 180 | android:textSize="22sp" /> |
| 181 | 181 | ||
| 182 | <TextView | 182 | <TextView |
| 183 | android:layout_width="wrap_content" | 183 | android:layout_width="wrap_content" |
| 184 | android:layout_height="wrap_content" | 184 | android:layout_height="wrap_content" |
| 185 | android:layout_marginLeft="50dp" | 185 | android:layout_marginLeft="50dp" |
| 186 | android:background="@null" | 186 | android:background="@null" |
| 187 | android:text="237462873463278" | 187 | android:text="237462873463278" |
| 188 | android:textSize="22sp" /> | 188 | android:textSize="22sp" /> |
| 189 | 189 | ||
| 190 | </LinearLayout> | 190 | </LinearLayout> |
| 191 | 191 | ||
| 192 | <LinearLayout | 192 | <LinearLayout |
| 193 | android:layout_width="0dp" | 193 | android:layout_width="0dp" |
| 194 | android:layout_height="60dp" | 194 | android:layout_height="60dp" |
| 195 | android:layout_weight="1" | 195 | android:layout_weight="1" |
| 196 | android:layout_marginLeft="80dp" | 196 | android:layout_marginLeft="80dp" |
| 197 | android:gravity="center_vertical"> | 197 | android:gravity="center_vertical"> |
| 198 | 198 | ||
| 199 | <TextView | 199 | <TextView |
| 200 | android:layout_width="wrap_content" | 200 | android:layout_width="wrap_content" |
| 201 | android:layout_height="wrap_content" | 201 | android:layout_height="wrap_content" |
| 202 | android:text="购买时间" | 202 | android:text="购买时间" |
| 203 | android:textColor="@color/btn_text_color" | 203 | android:textColor="@color/btn_text_color" |
| 204 | android:textSize="22sp" /> | 204 | android:textSize="22sp" /> |
| 205 | 205 | ||
| 206 | <TextView | 206 | <TextView |
| 207 | android:layout_width="wrap_content" | 207 | android:layout_width="wrap_content" |
| 208 | android:layout_height="wrap_content" | 208 | android:layout_height="wrap_content" |
| 209 | android:layout_marginLeft="60dp" | 209 | android:layout_marginLeft="60dp" |
| 210 | android:background="@null" | 210 | android:background="@null" |
| 211 | android:text="4433322-334--34" | 211 | android:text="4433322-334--34" |
| 212 | android:textColor="@color/btn_text_color" | 212 | android:textColor="@color/btn_text_color" |
| 213 | android:textSize="22sp" /> | 213 | android:textSize="22sp" /> |
| 214 | </LinearLayout> | 214 | </LinearLayout> |
| 215 | 215 | ||
| 216 | </LinearLayout> | 216 | </LinearLayout> |
| 217 | 217 | ||
| 218 | <LinearLayout | 218 | <LinearLayout |
| 219 | android:layout_width="match_parent" | 219 | android:layout_width="match_parent" |
| 220 | android:layout_height="wrap_content" | 220 | android:layout_height="wrap_content" |
| 221 | android:gravity="center_vertical" | 221 | android:gravity="center_vertical" |
| 222 | android:orientation="horizontal"> | 222 | android:orientation="horizontal"> |
| 223 | 223 | ||
| 224 | <LinearLayout | 224 | <LinearLayout |
| 225 | android:layout_width="0dp" | 225 | android:layout_width="0dp" |
| 226 | android:layout_height="60dp" | 226 | android:layout_height="60dp" |
| 227 | android:layout_weight="1" | 227 | android:layout_weight="1" |
| 228 | android:layout_marginLeft="200dp" | 228 | android:layout_marginLeft="200dp" |
| 229 | android:gravity="center_vertical"> | 229 | android:gravity="center_vertical"> |
| 230 | 230 | ||
| 231 | <TextView | 231 | <TextView |
| 232 | android:layout_width="wrap_content" | 232 | android:layout_width="wrap_content" |
| 233 | android:layout_height="wrap_content" | 233 | android:layout_height="wrap_content" |
| 234 | android:text="机身编码" | 234 | android:text="机身编码" |
| 235 | android:textColor="@color/btn_text_color" | 235 | android:textColor="@color/btn_text_color" |
| 236 | android:textSize="22sp" /> | 236 | android:textSize="22sp" /> |
| 237 | 237 | ||
| 238 | <TextView | 238 | <TextView |
| 239 | android:layout_width="wrap_content" | 239 | android:layout_width="wrap_content" |
| 240 | android:layout_height="wrap_content" | 240 | android:layout_height="wrap_content" |
| 241 | android:layout_marginLeft="50dp" | 241 | android:layout_marginLeft="50dp" |
| 242 | android:hint="473463746343" | 242 | android:hint="473463746343" |
| 243 | android:textSize="22sp" /> | 243 | android:textSize="22sp" /> |
| 244 | 244 | ||
| 245 | </LinearLayout> | 245 | </LinearLayout> |
| 246 | 246 | ||
| 247 | <LinearLayout | 247 | <LinearLayout |
| 248 | android:layout_width="0dp" | 248 | android:layout_width="0dp" |
| 249 | android:layout_height="60dp" | 249 | android:layout_height="60dp" |
| 250 | android:layout_weight="1" | 250 | android:layout_weight="1" |
| 251 | android:layout_marginLeft="80dp" | 251 | android:layout_marginLeft="80dp" |
| 252 | android:gravity="center_vertical"> | 252 | android:gravity="center_vertical"> |
| 253 | 253 | ||
| 254 | <TextView | 254 | <TextView |
| 255 | android:layout_width="wrap_content" | 255 | android:layout_width="wrap_content" |
| 256 | android:layout_height="wrap_content" | 256 | android:layout_height="wrap_content" |
| 257 | android:text="购买地址" | 257 | android:text="购买地址" |
| 258 | android:textColor="@color/btn_text_color" | 258 | android:textColor="@color/btn_text_color" |
| 259 | android:textSize="22sp" /> | 259 | android:textSize="22sp" /> |
| 260 | 260 | ||
| 261 | <TextView | 261 | <TextView |
| 262 | android:layout_width="wrap_content" | 262 | android:layout_width="wrap_content" |
| 263 | android:layout_height="wrap_content" | 263 | android:layout_height="wrap_content" |
| 264 | android:layout_marginLeft="60dp" | 264 | android:layout_marginLeft="60dp" |
| 265 | android:text="啥啥啥 专卖店" | 265 | android:text="啥啥啥 专卖店" |
| 266 | android:textColor="@color/btn_text_color" | 266 | android:textColor="@color/btn_text_color" |
| 267 | android:textSize="22sp" /> | 267 | android:textSize="22sp" /> |
| 268 | </LinearLayout> | 268 | </LinearLayout> |
| 269 | 269 | ||
| 270 | </LinearLayout> | 270 | </LinearLayout> |
| 271 | 271 | ||
| 272 | <LinearLayout | 272 | <LinearLayout |
| 273 | android:layout_width="match_parent" | 273 | android:layout_width="match_parent" |
| 274 | android:layout_height="wrap_content" | 274 | android:layout_height="wrap_content" |
| 275 | android:gravity="center_vertical" | 275 | android:gravity="center_vertical" |
| 276 | android:layout_marginBottom="30dp" | ||
| 276 | android:orientation="horizontal"> | 277 | android:orientation="horizontal"> |
| 277 | 278 | ||
| 278 | <LinearLayout | 279 | <LinearLayout |
| 279 | android:layout_width="0dp" | 280 | android:layout_width="0dp" |
| 280 | android:layout_height="60dp" | 281 | android:layout_height="60dp" |
| 281 | android:layout_weight="1" | 282 | android:layout_weight="1" |
| 282 | android:layout_marginLeft="200dp" | 283 | android:layout_marginLeft="200dp" |
| 283 | android:gravity="center_vertical"> | 284 | android:gravity="center_vertical"> |
| 284 | 285 | ||
| 285 | <TextView | 286 | <TextView |
| 286 | android:layout_width="wrap_content" | 287 | android:layout_width="wrap_content" |
| 287 | android:layout_height="wrap_content" | 288 | android:layout_height="wrap_content" |
| 288 | android:text="手机号码" | 289 | android:text="手机号码" |
| 289 | android:textColor="@color/btn_text_color" | 290 | android:textColor="@color/btn_text_color" |
| 290 | android:textSize="22sp" /> | 291 | android:textSize="22sp" /> |
| 291 | 292 | ||
| 292 | <TextView | 293 | <TextView |
| 293 | android:layout_width="wrap_content" | 294 | android:layout_width="wrap_content" |
| 294 | android:layout_height="wrap_content" | 295 | android:layout_height="wrap_content" |
| 295 | android:layout_marginLeft="50dp" | 296 | android:layout_marginLeft="50dp" |
| 296 | android:text="IPone888" | 297 | android:text="IPone888" |
| 297 | android:textSize="22sp" /> | 298 | android:textSize="22sp" /> |
| 298 | <TextView | 299 | <TextView |
| 299 | android:layout_width="wrap_content" | 300 | android:layout_width="wrap_content" |
| 300 | android:layout_height="wrap_content" | 301 | android:layout_height="wrap_content" |
| 301 | android:layout_marginLeft="18dp" | 302 | android:layout_marginLeft="18dp" |
| 302 | android:background="@drawable/corcle_black_bg" | 303 | android:background="@drawable/corcle_black_bg" |
| 303 | android:text="修改" | 304 | android:text="修改" |
| 304 | android:paddingLeft="5dp" | 305 | android:paddingLeft="5dp" |
| 305 | android:paddingRight="5dp" | 306 | android:paddingRight="5dp" |
| 306 | android:textColor="@color/login_text_blue" | 307 | android:textColor="@color/login_text_blue" |
| 307 | android:textSize="18sp" /> | 308 | android:textSize="18sp" /> |
| 308 | 309 | ||
| 309 | 310 | ||
| 310 | </LinearLayout> | 311 | </LinearLayout> |
| 311 | 312 | ||
| 312 | <LinearLayout | 313 | <LinearLayout |
| 313 | android:layout_width="0dp" | 314 | android:layout_width="0dp" |
| 314 | android:layout_height="60dp" | 315 | android:layout_height="60dp" |
| 315 | android:layout_weight="1" | 316 | android:layout_weight="1" |
| 316 | android:layout_marginLeft="80dp" | 317 | android:layout_marginLeft="80dp" |
| 317 | android:gravity="center_vertical"> | 318 | android:gravity="center_vertical"> |
| 318 | 319 | ||
| 319 | <TextView | 320 | <TextView |
| 320 | android:layout_width="wrap_content" | 321 | android:layout_width="wrap_content" |
| 321 | android:layout_height="wrap_content" | 322 | android:layout_height="wrap_content" |
| 322 | android:text="本地售后电话" | 323 | android:text="本地售后电话" |
| 323 | android:textSize="22sp" /> | 324 | android:textSize="22sp" /> |
| 324 | 325 | ||
| 325 | <TextView | 326 | <TextView |
| 326 | android:layout_width="wrap_content" | 327 | android:layout_width="wrap_content" |
| 327 | android:layout_height="wrap_content" | 328 | android:layout_height="wrap_content" |
| 328 | android:layout_marginLeft="60dp" | 329 | android:layout_marginLeft="60dp" |
| 329 | android:background="@null" | 330 | android:background="@null" |
| 330 | android:text="1111111" | 331 | android:text="1111111" |
| 331 | android:textSize="22sp" /> | 332 | android:textSize="22sp" /> |
| 332 | 333 | ||
| 333 | </LinearLayout> | 334 | </LinearLayout> |
| 334 | 335 | ||
| 335 | </LinearLayout> | 336 | </LinearLayout> |
| 336 | </LinearLayout> | 337 | </LinearLayout> |
| 337 | 338 | ||
| 338 | <LinearLayout | 339 | <LinearLayout |
| 339 | android:layout_width="match_parent" | 340 | android:layout_width="match_parent" |
| 340 | android:layout_height="wrap_content" | 341 | android:layout_height="wrap_content" |
| 341 | android:layout_marginTop="5dp" | 342 | android:layout_marginTop="5dp" |
| 342 | android:gravity="center" | 343 | android:gravity="center" |
| 343 | android:orientation="vertical"> | 344 | android:orientation="vertical"> |
| 344 | 345 | ||
| 345 | <TextView | 346 | <TextView |
| 346 | android:layout_width="wrap_content" | 347 | android:layout_width="wrap_content" |
| 347 | android:layout_height="wrap_content" | 348 | android:layout_height="wrap_content" |
| 348 | android:layout_marginTop="5dp" | 349 | android:layout_marginTop="5dp" |
| 349 | android:text="@string/electronic_card" | 350 | android:text="@string/electronic_card" |
| 350 | android:textColor="@color/electronic_text" | 351 | android:textColor="@color/electronic_text" |
| 351 | android:textSize="18sp" /> | 352 | android:textSize="18sp" /> |
| 352 | 353 | ||
| 353 | 354 | ||
| 354 | 355 | ||
| 355 | </LinearLayout> | 356 | </LinearLayout> |
| 356 | <LinearLayout | 357 | <LinearLayout |
| 357 | android:layout_width="match_parent" | 358 | android:layout_width="match_parent" |
| 358 | android:layout_height="wrap_content" | 359 | android:layout_height="wrap_content" |
| 359 | android:layout_marginTop="30dp" | 360 | android:layout_marginTop="30dp" |
| 360 | android:gravity="center" | 361 | android:gravity="center" |
| 361 | android:orientation="horizontal"> | 362 | android:orientation="horizontal"> |
| 362 | 363 | ||
| 363 | <ImageView | 364 | <ImageView |
| 364 | android:layout_width="wrap_content" | 365 | android:layout_width="wrap_content" |
| 365 | android:layout_height="wrap_content" | 366 | android:layout_height="wrap_content" |
| 366 | android:src="@mipmap/phone"/> | 367 | android:src="@mipmap/phone"/> |
| 367 | <TextView | 368 | <TextView |
| 368 | android:layout_width="wrap_content" | 369 | android:layout_width="wrap_content" |
| 369 | android:layout_height="wrap_content" | 370 | android:layout_height="wrap_content" |
| 370 | android:textSize="30sp" | 371 | android:textSize="30sp" |
| 371 | android:layout_marginLeft="5dp" | 372 | android:layout_marginLeft="5dp" |
| 372 | android:textColor="@color/login_text_blue" | 373 | android:textColor="@color/login_text_blue" |
| 373 | android:text="400-400-000"/> | 374 | android:text="400-400-000"/> |
| 374 | 375 | ||
| 375 | 376 | ||
| 376 | </LinearLayout> | 377 | </LinearLayout> |
| 377 | 378 | ||
| 378 | 379 | ||
| 379 | 380 | ||
| 380 | </LinearLayout> | 381 | </LinearLayout> |
PersonalCenter/app/src/main/res/layout/activity_electroniccard_info.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:id="@+id/card_view" | 3 | android:id="@+id/card_view" |
| 4 | android:layout_width="match_parent" | 4 | android:layout_width="match_parent" |
| 5 | android:layout_height="match_parent" | 5 | android:layout_height="match_parent" |
| 6 | android:orientation="vertical"> | 6 | android:orientation="vertical"> |
| 7 | 7 | ||
| 8 | <RelativeLayout | 8 | <RelativeLayout |
| 9 | android:id="@+id/title" | 9 | android:id="@+id/title" |
| 10 | android:layout_width="match_parent" | 10 | android:layout_width="match_parent" |
| 11 | android:layout_height="wrap_content" | 11 | android:layout_height="wrap_content" |
| 12 | android:background="@color/login_text_blue" | 12 | android:background="@color/login_text_blue" |
| 13 | android:minHeight="50dp"> | 13 | android:minHeight="50dp"> |
| 14 | 14 | ||
| 15 | <ImageView | 15 | <ImageView |
| 16 | android:id="@+id/cancel" | 16 | android:id="@+id/iv_card_back" |
| 17 | android:layout_width="wrap_content" | 17 | android:layout_width="wrap_content" |
| 18 | android:layout_height="wrap_content" | 18 | android:layout_height="wrap_content" |
| 19 | android:layout_centerVertical="true" | 19 | android:layout_centerVertical="true" |
| 20 | android:paddingLeft="20dp" | 20 | android:paddingLeft="20dp" |
| 21 | android:paddingRight="20dp" | 21 | android:paddingRight="20dp" |
| 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="wrap_content" | 27 | android:layout_height="wrap_content" |
| 28 | android:layout_centerInParent="true" | 28 | android:layout_centerInParent="true" |
| 29 | android:text="@string/change_electroniccard_info_fill" | 29 | android:text="@string/change_electroniccard_info_fill" |
| 30 | android:textColor="@android:color/white" | 30 | android:textColor="@android:color/white" |
| 31 | android:textSize="22sp" /> | 31 | android:textSize="22sp" /> |
| 32 | </RelativeLayout> | 32 | </RelativeLayout> |
| 33 | 33 | ||
| 34 | <ImageView | 34 | <ImageView |
| 35 | android:layout_width="wrap_content" | 35 | android:layout_width="wrap_content" |
| 36 | android:layout_height="wrap_content" | 36 | android:layout_height="wrap_content" |
| 37 | android:layout_gravity="center" | 37 | android:layout_gravity="center" |
| 38 | android:layout_marginTop="20dp" | 38 | android:layout_marginTop="20dp" |
| 39 | android:src="@mipmap/change_info_icon" /> | 39 | android:src="@mipmap/change_info_icon" /> |
| 40 | 40 | ||
| 41 | <LinearLayout | 41 | <LinearLayout |
| 42 | android:layout_width="wrap_content" | 42 | android:layout_width="wrap_content" |
| 43 | android:layout_height="wrap_content" | 43 | android:layout_height="wrap_content" |
| 44 | android:layout_marginTop="60dp" | 44 | android:layout_marginTop="60dp" |
| 45 | android:orientation="horizontal"> | 45 | android:orientation="horizontal"> |
| 46 | 46 | ||
| 47 | <View | 47 | <View |
| 48 | android:layout_width="450dp" | 48 | android:layout_width="450dp" |
| 49 | android:layout_height="0.7dp" | 49 | android:layout_height="0.7dp" |
| 50 | android:layout_marginLeft="150dp" | 50 | android:layout_marginLeft="150dp" |
| 51 | android:background="@color/electronic_text"> | 51 | android:background="@color/electronic_text"> |
| 52 | 52 | ||
| 53 | </View> | 53 | </View> |
| 54 | 54 | ||
| 55 | <View | 55 | <View |
| 56 | android:layout_width="450dp" | 56 | android:layout_width="450dp" |
| 57 | android:layout_height="0.7dp" | 57 | android:layout_height="0.7dp" |
| 58 | android:layout_marginLeft="80dp" | 58 | android:layout_marginLeft="80dp" |
| 59 | android:background="@color/electronic_text"> | 59 | android:background="@color/electronic_text"> |
| 60 | 60 | ||
| 61 | </View> | 61 | </View> |
| 62 | 62 | ||
| 63 | 63 | ||
| 64 | </LinearLayout> | 64 | </LinearLayout> |
| 65 | 65 | ||
| 66 | <LinearLayout | 66 | <LinearLayout |
| 67 | android:layout_width="match_parent" | 67 | android:layout_width="match_parent" |
| 68 | android:layout_height="wrap_content" | 68 | android:layout_height="wrap_content" |
| 69 | android:layout_marginLeft="200dp" | 69 | android:layout_marginLeft="200dp" |
| 70 | android:gravity="center_vertical" | 70 | android:gravity="center_vertical" |
| 71 | android:orientation="horizontal"> | 71 | android:orientation="horizontal"> |
| 72 | 72 | ||
| 73 | <LinearLayout | 73 | <LinearLayout |
| 74 | android:layout_width="0dp" | 74 | android:layout_width="0dp" |
| 75 | android:layout_height="80dp" | 75 | android:layout_height="80dp" |
| 76 | android:layout_weight="1" | 76 | android:layout_weight="1" |
| 77 | android:gravity="center_vertical"> | 77 | android:gravity="center_vertical"> |
| 78 | 78 | ||
| 79 | <TextView | 79 | <TextView |
| 80 | android:layout_width="wrap_content" | 80 | android:layout_width="wrap_content" |
| 81 | android:layout_height="wrap_content" | 81 | android:layout_height="wrap_content" |
| 82 | android:text="客户姓名" | 82 | android:text="客户姓名" |
| 83 | android:textColor="@color/pickerview_wheelview_textcolor_center" | 83 | android:textColor="@color/electronic_text" |
| 84 | android:textSize="22sp" /> | 84 | android:textSize="22sp" /> |
| 85 | 85 | ||
| 86 | <EditText | 86 | <EditText |
| 87 | android:id="@+id/et_edit_username" | ||
| 87 | android:layout_width="wrap_content" | 88 | android:layout_width="wrap_content" |
| 88 | android:layout_height="wrap_content" | 89 | android:layout_height="wrap_content" |
| 89 | android:layout_marginLeft="50dp" | 90 | android:layout_marginLeft="50dp" |
| 90 | android:background="@null" | 91 | android:background="@null" |
| 91 | android:hint="请输入" | 92 | android:hint="请输入" |
| 92 | android:textColor="@color/electronic_text" | 93 | android:textColor="@color/electronic_text" |
| 93 | android:textSize="22sp" /> | 94 | android:textSize="22sp" /> |
| 94 | 95 | ||
| 95 | </LinearLayout> | 96 | </LinearLayout> |
| 96 | 97 | ||
| 97 | <LinearLayout | 98 | <LinearLayout |
| 98 | android:layout_width="0dp" | 99 | android:layout_width="0dp" |
| 99 | android:layout_height="80dp" | 100 | android:layout_height="80dp" |
| 100 | android:layout_weight="1" | 101 | android:layout_weight="1" |
| 101 | android:gravity="center_vertical"> | 102 | android:gravity="center_vertical"> |
| 102 | 103 | ||
| 103 | <TextView | 104 | <TextView |
| 104 | android:layout_width="150dp" | 105 | android:layout_width="150dp" |
| 105 | android:layout_height="wrap_content" | 106 | android:layout_height="wrap_content" |
| 106 | android:text="购买地址" | 107 | android:text="购买地址" |
| 107 | android:textColor="@color/pickerview_wheelview_textcolor_center" | 108 | android:textColor="@color/electronic_text" |
| 108 | android:textSize="22sp" /> | 109 | android:textSize="22sp" /> |
| 109 | 110 | ||
| 110 | <TextView | 111 | <TextView |
| 112 | android:id="@+id/tv_edit_adress_shop" | ||
| 111 | android:layout_width="wrap_content" | 113 | android:layout_width="wrap_content" |
| 112 | android:layout_height="wrap_content" | 114 | android:layout_height="wrap_content" |
| 113 | android:layout_marginLeft="20dp" | 115 | android:layout_marginLeft="20dp" |
| 114 | android:text="请选择地区" | 116 | android:text="请选择地区" |
| 115 | android:textColor="@color/btn_text_color" | 117 | android:textColor="@color/btn_text_color" |
| 116 | android:textSize="22sp" /> | 118 | android:textSize="22sp" /> |
| 117 | 119 | ||
| 118 | <ImageView | 120 | <ImageView |
| 119 | android:layout_width="wrap_content" | 121 | android:layout_width="wrap_content" |
| 120 | android:layout_height="wrap_content" | 122 | android:layout_height="wrap_content" |
| 121 | android:layout_marginLeft="60dp" | 123 | android:layout_marginLeft="60dp" |
| 122 | android:src="@mipmap/xiajiantou"> | 124 | android:src="@mipmap/xiajiantou"> |
| 123 | 125 | ||
| 124 | </ImageView> | 126 | </ImageView> |
| 125 | </LinearLayout> | 127 | </LinearLayout> |
| 126 | 128 | ||
| 127 | </LinearLayout> | 129 | </LinearLayout> |
| 128 | 130 | ||
| 129 | <LinearLayout | 131 | <LinearLayout |
| 130 | android:layout_width="wrap_content" | 132 | android:layout_width="wrap_content" |
| 131 | android:layout_height="wrap_content" | 133 | android:layout_height="wrap_content" |
| 132 | android:orientation="horizontal"> | 134 | android:orientation="horizontal"> |
| 133 | 135 | ||
| 134 | <View | 136 | <View |
| 135 | android:layout_width="450dp" | 137 | android:layout_width="450dp" |
| 136 | android:layout_height="0.7dp" | 138 | android:layout_height="0.7dp" |
| 137 | android:layout_marginLeft="150dp" | 139 | android:layout_marginLeft="150dp" |
| 138 | android:background="@color/electronic_text"> | 140 | android:background="@color/electronic_text"> |
| 139 | 141 | ||
| 140 | </View> | 142 | </View> |
| 141 | 143 | ||
| 142 | <View | 144 | <View |
| 143 | android:layout_width="450dp" | 145 | android:layout_width="450dp" |
| 144 | android:layout_height="0.7dp" | 146 | android:layout_height="0.7dp" |
| 145 | android:layout_marginLeft="80dp" | 147 | android:layout_marginLeft="80dp" |
| 146 | android:background="@color/electronic_text"> | 148 | android:background="@color/electronic_text"> |
| 147 | 149 | ||
| 148 | </View> | 150 | </View> |
| 149 | 151 | ||
| 150 | 152 | ||
| 151 | </LinearLayout> | 153 | </LinearLayout> |
| 152 | 154 | ||
| 153 | <LinearLayout | 155 | <LinearLayout |
| 154 | android:layout_width="match_parent" | 156 | android:layout_width="match_parent" |
| 155 | android:layout_height="wrap_content" | 157 | android:layout_height="wrap_content" |
| 156 | android:layout_marginLeft="200dp" | 158 | android:layout_marginLeft="200dp" |
| 157 | android:gravity="center_vertical" | 159 | android:gravity="center_vertical" |
| 158 | android:orientation="horizontal"> | 160 | android:orientation="horizontal"> |
| 159 | 161 | ||
| 160 | <LinearLayout | 162 | <LinearLayout |
| 161 | android:layout_width="0dp" | 163 | android:layout_width="0dp" |
| 162 | android:layout_height="80dp" | 164 | android:layout_height="80dp" |
| 163 | android:layout_weight="1" | 165 | android:layout_weight="1" |
| 164 | android:gravity="center_vertical"> | 166 | android:gravity="center_vertical"> |
| 165 | 167 | ||
| 166 | <TextView | 168 | <TextView |
| 167 | android:layout_width="wrap_content" | 169 | android:layout_width="wrap_content" |
| 168 | android:layout_height="wrap_content" | 170 | android:layout_height="wrap_content" |
| 169 | android:text="客户地址" | 171 | android:text="客户地址" |
| 170 | android:textColor="@color/pickerview_wheelview_textcolor_center" | 172 | android:textColor="@color/electronic_text" |
| 171 | android:textSize="22sp" /> | 173 | android:textSize="22sp" /> |
| 172 | 174 | ||
| 173 | <TextView | 175 | <TextView |
| 176 | android:id="@+id/tv_edit_adress_custem" | ||
| 174 | android:layout_width="wrap_content" | 177 | android:layout_width="wrap_content" |
| 175 | android:layout_height="wrap_content" | 178 | android:layout_height="wrap_content" |
| 176 | android:layout_marginLeft="50dp" | 179 | android:layout_marginLeft="50dp" |
| 177 | android:text="请选择地区" | 180 | android:text="请选择地区" |
| 178 | android:textSize="22sp" /> | 181 | android:textSize="22sp" /> |
| 179 | 182 | ||
| 180 | <ImageView | 183 | <ImageView |
| 181 | android:layout_width="wrap_content" | 184 | android:layout_width="wrap_content" |
| 182 | android:layout_height="wrap_content" | 185 | android:layout_height="wrap_content" |
| 183 | android:layout_marginLeft="60dp" | 186 | android:layout_marginLeft="60dp" |
| 184 | android:src="@mipmap/xiajiantou"> | 187 | android:src="@mipmap/xiajiantou"> |
| 185 | 188 | ||
| 186 | </ImageView> | 189 | </ImageView> |
| 187 | 190 | ||
| 188 | 191 | ||
| 189 | </LinearLayout> | 192 | </LinearLayout> |
| 190 | 193 | ||
| 191 | <LinearLayout | 194 | <LinearLayout |
| 192 | android:layout_width="0dp" | 195 | android:layout_width="0dp" |
| 193 | android:layout_height="80dp" | 196 | android:layout_height="80dp" |
| 194 | android:layout_weight="1" | 197 | android:layout_weight="1" |
| 195 | android:gravity="center_vertical"> | 198 | android:gravity="center_vertical"> |
| 196 | 199 | ||
| 197 | <TextView | 200 | <TextView |
| 198 | android:layout_width="150dp" | 201 | android:layout_width="150dp" |
| 199 | android:layout_height="wrap_content" | 202 | android:layout_height="wrap_content" |
| 200 | android:text=" " | 203 | android:text=" " |
| 201 | android:textColor="@color/white" | 204 | android:textColor="@color/white" |
| 202 | android:textSize="22sp" /> | 205 | android:textSize="22sp" /> |
| 203 | 206 | ||
| 204 | <EditText | 207 | <EditText |
| 208 | android:id="@+id/et_edit_store" | ||
| 205 | android:layout_width="wrap_content" | 209 | android:layout_width="wrap_content" |
| 206 | android:layout_height="wrap_content" | 210 | android:layout_height="wrap_content" |
| 207 | android:layout_marginLeft="20dp" | 211 | android:layout_marginLeft="20dp" |
| 208 | android:background="@null" | 212 | android:background="@null" |
| 209 | android:hint="请输入商店名称" | 213 | android:hint="请输入商店名称" |
| 210 | android:textSize="22sp" /> | 214 | android:textSize="22sp" /> |
| 211 | 215 | ||
| 212 | </LinearLayout> | 216 | </LinearLayout> |
| 213 | 217 | ||
| 214 | </LinearLayout> | 218 | </LinearLayout> |
| 215 | 219 | ||
| 216 | <LinearLayout | 220 | <LinearLayout |
| 217 | android:layout_width="wrap_content" | 221 | android:layout_width="wrap_content" |
| 218 | android:layout_height="wrap_content" | 222 | android:layout_height="wrap_content" |
| 219 | 223 | ||
| 220 | android:orientation="horizontal"> | 224 | android:orientation="horizontal"> |
| 221 | 225 | ||
| 222 | <View | 226 | <View |
| 223 | android:layout_width="450dp" | 227 | android:layout_width="450dp" |
| 224 | android:layout_height="0.7dp" | 228 | android:layout_height="0.7dp" |
| 225 | android:layout_marginLeft="150dp" | 229 | android:layout_marginLeft="150dp" |
| 226 | android:background="@color/electronic_text"> | 230 | android:background="@color/electronic_text"> |
| 227 | 231 | ||
| 228 | </View> | 232 | </View> |
| 229 | 233 | ||
| 230 | <View | 234 | <View |
| 231 | android:layout_width="450dp" | 235 | android:layout_width="450dp" |
| 232 | android:layout_height="0.7dp" | 236 | android:layout_height="0.7dp" |
| 233 | android:layout_marginLeft="80dp" | 237 | android:layout_marginLeft="80dp" |
| 234 | android:background="@color/electronic_text"> | 238 | android:background="@color/electronic_text"> |
| 235 | 239 | ||
| 236 | </View> | 240 | </View> |
| 237 | 241 | ||
| 238 | 242 | ||
| 239 | </LinearLayout> | 243 | </LinearLayout> |
| 240 | 244 | ||
| 241 | <LinearLayout | 245 | <LinearLayout |
| 242 | android:layout_width="match_parent" | 246 | android:layout_width="match_parent" |
| 243 | android:layout_height="wrap_content" | 247 | android:layout_height="wrap_content" |
| 244 | android:layout_marginLeft="200dp" | 248 | android:layout_marginLeft="200dp" |
| 245 | android:gravity="center_vertical" | 249 | android:gravity="center_vertical" |
| 246 | android:orientation="horizontal"> | 250 | android:orientation="horizontal"> |
| 247 | 251 | ||
| 248 | <LinearLayout | 252 | <LinearLayout |
| 249 | android:layout_width="0dp" | 253 | android:layout_width="0dp" |
| 250 | android:layout_height="80dp" | 254 | android:layout_height="80dp" |
| 251 | android:layout_weight="1" | 255 | android:layout_weight="1" |
| 252 | android:gravity="center_vertical"> | 256 | android:gravity="center_vertical"> |
| 253 | 257 | ||
| 254 | <TextView | 258 | <TextView |
| 255 | android:layout_width="wrap_content" | 259 | android:layout_width="wrap_content" |
| 256 | android:layout_height="wrap_content" | 260 | android:layout_height="wrap_content" |
| 257 | android:text=" " | 261 | android:text=" " |
| 258 | android:textColor="@color/white" | 262 | android:textColor="@color/white" |
| 259 | android:textSize="22sp" /> | 263 | android:textSize="22sp" /> |
| 260 | 264 | ||
| 261 | <EditText | 265 | <EditText |
| 266 | android:id="@+id/et_edit_adress_detail" | ||
| 262 | android:layout_width="wrap_content" | 267 | android:layout_width="wrap_content" |
| 263 | android:layout_height="wrap_content" | 268 | android:layout_height="wrap_content" |
| 264 | android:layout_marginLeft="100dp" | 269 | android:layout_marginLeft="100dp" |
| 265 | android:background="@null" | 270 | android:background="@null" |
| 266 | android:hint="请输入详细地址" | 271 | android:hint="请输入详细地址" |
| 267 | android:textSize="22sp" /> | 272 | android:textSize="22sp" /> |
| 268 | 273 | ||
| 269 | </LinearLayout> | 274 | </LinearLayout> |
| 270 | 275 | ||
| 271 | <LinearLayout | 276 | <LinearLayout |
| 272 | android:layout_width="0dp" | 277 | android:layout_width="0dp" |
| 273 | android:layout_height="80dp" | 278 | android:layout_height="80dp" |
| 274 | android:layout_weight="1" | 279 | android:layout_weight="1" |
| 275 | android:gravity="center_vertical"> | 280 | android:gravity="center_vertical"> |
| 276 | 281 | ||
| 277 | <TextView | 282 | <TextView |
| 278 | android:layout_width="150dp" | 283 | android:layout_width="150dp" |
| 279 | android:layout_height="wrap_content" | 284 | android:layout_height="wrap_content" |
| 280 | android:text="本地售后电话" | 285 | android:text="本地售后电话" |
| 281 | android:textColor="@color/pickerview_wheelview_textcolor_center" | 286 | android:textColor="@color/electronic_text" |
| 282 | android:textSize="22sp" /> | 287 | android:textSize="22sp" /> |
| 283 | 288 | ||
| 284 | <EditText | 289 | <EditText |
| 290 | android:id="@+id/et_edit_telphone" | ||
| 285 | android:layout_width="wrap_content" | 291 | android:layout_width="wrap_content" |
| 286 | android:layout_height="wrap_content" | 292 | android:layout_height="wrap_content" |
| 287 | android:layout_marginLeft="20dp" | 293 | android:layout_marginLeft="20dp" |
| 288 | android:background="@null" | 294 | android:background="@null" |
| 289 | android:hint="请输入" | 295 | android:hint="请输入" |
| 290 | android:textColor="@color/pickerview_wheelview_textcolor_center" | 296 | android:textColor="@color/electronic_text" |
| 291 | android:textSize="22sp" /> | 297 | android:textSize="22sp" /> |
| 292 | </LinearLayout> | 298 | </LinearLayout> |
| 293 | 299 | ||
| 294 | </LinearLayout> | 300 | </LinearLayout> |
| 295 | 301 | ||
| 296 | <LinearLayout | 302 | <LinearLayout |
| 297 | android:layout_width="wrap_content" | 303 | android:layout_width="wrap_content" |
| 298 | android:layout_height="wrap_content" | 304 | android:layout_height="wrap_content" |
| 299 | 305 | ||
| 300 | android:orientation="horizontal"> | 306 | android:orientation="horizontal"> |
| 301 | 307 | ||
| 302 | <View | 308 | <View |
| 303 | android:layout_width="450dp" | 309 | android:layout_width="450dp" |
| 304 | android:layout_height="0.7dp" | 310 | android:layout_height="0.7dp" |
| 305 | android:layout_marginLeft="150dp" | 311 | android:layout_marginLeft="150dp" |
| 306 | android:background="@color/electronic_text"> | 312 | android:background="@color/electronic_text"> |
| 307 | 313 | ||
| 308 | </View> | 314 | </View> |
| 309 | 315 | ||
| 310 | <View | 316 | <View |
| 311 | android:layout_width="450dp" | 317 | android:layout_width="450dp" |
| 312 | android:layout_height="0.7dp" | 318 | android:layout_height="0.7dp" |
| 313 | android:layout_marginLeft="80dp" | 319 | android:layout_marginLeft="80dp" |
| 314 | android:background="@color/electronic_text"> | 320 | android:background="@color/electronic_text"> |
| 315 | 321 | ||
| 316 | </View> | 322 | </View> |
| 317 | 323 | ||
| 318 | 324 | ||
| 319 | </LinearLayout> | 325 | </LinearLayout> |
| 320 | 326 | ||
| 321 | <LinearLayout | 327 | <LinearLayout |
| 322 | android:layout_width="match_parent" | 328 | android:layout_width="match_parent" |
| 323 | android:layout_height="wrap_content" | 329 | android:layout_height="wrap_content" |
| 324 | android:layout_marginLeft="200dp" | 330 | android:layout_marginLeft="200dp" |
| 325 | android:gravity="center_vertical" | 331 | android:gravity="center_vertical" |
| 326 | android:orientation="horizontal"> | 332 | android:orientation="horizontal"> |
| 327 | 333 | ||
| 328 | <LinearLayout | 334 | <LinearLayout |
| 329 | android:id="@+id/lineL_buy_time" | 335 | android:id="@+id/lineL_buy_time" |
| 330 | android:layout_width="0dp" | 336 | android:layout_width="0dp" |
| 331 | android:layout_height="80dp" | 337 | android:layout_height="80dp" |
| 332 | android:layout_weight="1" | 338 | android:layout_weight="1" |
| 333 | android:gravity="center_vertical"> | 339 | android:gravity="center_vertical"> |
| 334 | 340 | ||
| 335 | <TextView | 341 | <TextView |
| 336 | android:layout_width="wrap_content" | 342 | android:layout_width="wrap_content" |
| 337 | android:layout_height="wrap_content" | 343 | android:layout_height="wrap_content" |
| 338 | android:text="购买时间" | 344 | android:text="购买时间" |
| 339 | android:textColor="@color/pickerview_wheelview_textcolor_center" | 345 | android:textColor="@color/pickerview_wheelview_textcolor_center" |
| 340 | android:textSize="22sp" /> | 346 | android:textSize="22sp" /> |
| 341 | 347 | ||
| 342 | <TextView | 348 | <TextView |
| 343 | android:id="@+id/tv_buy_time" | 349 | android:id="@+id/tv_buy_time" |
| 344 | android:layout_width="wrap_content" | 350 | android:layout_width="wrap_content" |
| 345 | android:layout_height="wrap_content" | 351 | android:layout_height="wrap_content" |
| 346 | android:layout_marginLeft="50dp" | 352 | android:layout_marginLeft="50dp" |
| 347 | android:hint="请选择时间" | 353 | android:hint="请选择时间" |
| 348 | android:textSize="22sp" /> | 354 | android:textSize="22sp" /> |
| 349 | 355 | ||
| 350 | <ImageView | 356 | <ImageView |
| 351 | android:layout_width="wrap_content" | 357 | android:layout_width="wrap_content" |
| 352 | android:layout_height="wrap_content" | 358 | android:layout_height="wrap_content" |
| 353 | android:layout_marginLeft="60dp" | 359 | android:layout_marginLeft="60dp" |
| 354 | android:src="@mipmap/xiajiantou"> | 360 | android:src="@mipmap/xiajiantou"> |
| 355 | 361 | ||
| 356 | </ImageView> | 362 | </ImageView> |
| 357 | 363 | ||
| 358 | </LinearLayout> | 364 | </LinearLayout> |
| 359 | 365 | ||
| 360 | </LinearLayout> | 366 | </LinearLayout> |
| 361 | 367 | ||
| 362 | <LinearLayout | 368 | <LinearLayout |
| 363 | android:layout_width="wrap_content" | 369 | android:layout_width="wrap_content" |
| 364 | android:layout_height="wrap_content" | 370 | android:layout_height="wrap_content" |
| 365 | android:orientation="horizontal"> | 371 | android:orientation="horizontal"> |
| 366 | 372 | ||
| 367 | <View | 373 | <View |
| 368 | android:layout_width="450dp" | 374 | android:layout_width="450dp" |
| 369 | android:layout_height="0.7dp" | 375 | android:layout_height="0.7dp" |
| 370 | android:layout_marginLeft="150dp" | 376 | android:layout_marginLeft="150dp" |
| 371 | android:background="@color/electronic_text"> | 377 | android:background="@color/electronic_text"> |
| 372 | 378 | ||
| 373 | </View> | 379 | </View> |
| 374 | 380 | ||
| 375 | 381 | ||
| 376 | |||
| 377 | </LinearLayout> | 382 | </LinearLayout> |
| 378 | 383 | ||
| 379 | <Button | 384 | <Button |
| 380 | android:id="@+id/btn_change_info" | 385 | android:id="@+id/btn_change_info" |
| 381 | style="@style/button_login_register_style" | 386 | style="@style/button_login_register_style" |
| 382 | android:layout_marginLeft="200dp" | 387 | android:layout_marginLeft="200dp" |
| 383 | android:layout_marginRight="200dp" | 388 | android:layout_marginRight="200dp" |
| 384 | android:layout_marginTop="80dp" | 389 | android:layout_marginTop="80dp" |
| 385 | android:text="@string/string_regist_next" /> | 390 | android:text="@string/string_regist_next" /> |
| 386 | 391 | ||
| 387 | 392 |
PersonalCenter/app/src/main/res/layout/activity_feedback.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:orientation="vertical" android:layout_width="match_parent" | 3 | android:orientation="vertical" android:layout_width="match_parent" |
| 4 | android:layout_height="match_parent" | 4 | android:layout_height="match_parent" |
| 5 | android:background="@color/backgerangde_laout"> | 5 | android:background="@color/backgerangde_laout"> |
| 6 | <RelativeLayout | 6 | <RelativeLayout |
| 7 | android:id="@+id/title" | 7 | android:id="@+id/title" |
| 8 | android:layout_width="match_parent" | 8 | android:layout_width="match_parent" |
| 9 | android:layout_height="50dp" | 9 | android:layout_height="50dp" |
| 10 | android:background="@color/login_text_blue"> | 10 | android:background="@color/login_text_blue"> |
| 11 | 11 | ||
| 12 | <ImageView | 12 | <ImageView |
| 13 | android:id="@+id/cancel" | 13 | android:id="@+id/cancel" |
| 14 | android:layout_width="wrap_content" | 14 | android:layout_width="wrap_content" |
| 15 | android:layout_height="match_parent" | 15 | android:layout_height="match_parent" |
| 16 | android:paddingLeft="20dp" | 16 | android:paddingLeft="20dp" |
| 17 | android:paddingRight="20dp" | 17 | android:paddingRight="20dp" |
| 18 | android:src="@mipmap/title_back" /> | 18 | android:src="@mipmap/title_back" /> |
| 19 | 19 | ||
| 20 | <TextView | 20 | <TextView |
| 21 | android:id="@+id/menu_title" | 21 | android:id="@+id/menu_title" |
| 22 | android:layout_width="wrap_content" | 22 | android:layout_width="wrap_content" |
| 23 | android:layout_height="match_parent" | 23 | android:layout_height="match_parent" |
| 24 | android:layout_centerInParent="true" | 24 | android:layout_centerInParent="true" |
| 25 | android:gravity="center_vertical" | 25 | android:gravity="center_vertical" |
| 26 | android:text="意见反馈" | 26 | android:text="意见反馈" |
| 27 | android:textColor="@android:color/white" | 27 | android:textColor="@android:color/white" |
| 28 | android:textSize="22sp" /> | 28 | android:textSize="22sp" /> |
| 29 | <TextView | 29 | <TextView |
| 30 | android:id="@+id/feedback_sub" | 30 | android:id="@+id/feedback_sub" |
| 31 | android:layout_width="wrap_content" | 31 | android:layout_width="wrap_content" |
| 32 | android:layout_height="match_parent" | 32 | android:layout_height="match_parent" |
| 33 | android:paddingLeft="20dp" | 33 | android:paddingLeft="20dp" |
| 34 | android:paddingRight="20dp" | 34 | android:paddingRight="20dp" |
| 35 | android:gravity="center_vertical" | 35 | android:gravity="center_vertical" |
| 36 | android:layout_alignParentRight="true" | 36 | android:layout_alignParentRight="true" |
| 37 | android:text="提交" | 37 | android:text="提交" |
| 38 | android:textColor="@android:color/white" | 38 | android:textColor="@android:color/white" |
| 39 | android:textSize="22sp" /> | 39 | android:textSize="22sp" /> |
| 40 | 40 | ||
| 41 | 41 | ||
| 42 | </RelativeLayout> | 42 | </RelativeLayout> |
| 43 | <EditText | 43 | <EditText |
| 44 | android:id="@+id/feedback_content" | 44 | android:id="@+id/feedback_content" |
| 45 | android:layout_width="match_parent" | 45 | android:layout_width="match_parent" |
| 46 | android:layout_height="250dp" | 46 | android:layout_height="250dp" |
| 47 | android:hint="@string/feedback" | 47 | android:hint="@string/feedback" |
| 48 | android:textColor="@color/electronic_text" | 48 | android:textColor="@color/electronic_text" |
| 49 | android:textSize="18sp" | 49 | android:textSize="18sp" |
| 50 | android:textScaleX="1" | 50 | android:textScaleX="1" |
| 51 | android:padding="20dp" | 51 | android:padding="20dp" |
| 52 | android:gravity="top" | 52 | android:gravity="top" |
| 53 | android:background="@color/white"/> | 53 | android:background="@color/white"/> |
| 54 | <LinearLayout | 54 | <LinearLayout |
| 55 | android:id="@+id/take_phone" | 55 | android:id="@+id/take_phone" |
| 56 | android:layout_width="match_parent" | 56 | android:layout_width="match_parent" |
| 57 | android:layout_height="wrap_content" | 57 | android:layout_height="wrap_content" |
| 58 | android:background="@color/white"> | 58 | android:background="@color/white"> |
| 59 | <ImageView | 59 | <ImageView |
| 60 | android:layout_margin="20dp" | 60 | android:layout_margin="20dp" |
| 61 | android:layout_width="wrap_content" | 61 | android:layout_width="wrap_content" |
| 62 | android:layout_height="wrap_content" | 62 | android:layout_height="wrap_content" |
| 63 | android:src="@mipmap/feedback_take_phone"/> | 63 | android:src="@mipmap/feedback_take_phone"/> |
| 64 | 64 | ||
| 65 | </LinearLayout> | 65 | </LinearLayout> |
| 66 | <EditText | 66 | <EditText |
| 67 | android:layout_width="match_parent" | 67 | android:layout_width="match_parent" |
| 68 | android:layout_marginTop="20dp" | 68 | android:layout_marginTop="20dp" |
| 69 | android:background="@color/white" | 69 | android:background="@color/white" |
| 70 | android:hint="@string/qq" | 70 | android:hint="@string/qq" |
| 71 | android:padding="20dp" | 71 | android:padding="20dp" |
| 72 | android:layout_height="60dp" /> | 72 | android:layout_height="60dp" /> |
| 73 | <TextView | 73 | <TextView |
| 74 | android:layout_width="match_parent" | 74 | android:layout_width="match_parent" |
| 75 | android:text="@string/hint" | 75 | android:text="@string/hint" |
| 76 | android:padding="20dp" | 76 | android:padding="20dp" |
| 77 | android:textSize="18sp" | 77 | android:textSize="18sp" |
| 78 | android:layout_height="60dp" /> | 78 | android:layout_height="wrap_content" /> |
| 79 | 79 | ||
| 80 | 80 | ||
| 81 | 81 | ||
| 82 | </LinearLayout> | 82 | </LinearLayout> |
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 | android:orientation="vertical"> | 5 | android:orientation="vertical"> |
| 6 | 6 | ||
| 7 | <RelativeLayout | 7 | <RelativeLayout |
| 8 | android:id="@+id/title" | 8 | android:id="@+id/title" |
| 9 | android:layout_width="match_parent" | 9 | android:layout_width="match_parent" |
| 10 | android:layout_height="50dp" | 10 | android:layout_height="50dp" |
| 11 | android:background="@color/login_text_blue"> | 11 | android:background="@color/login_text_blue"> |
| 12 | 12 | ||
| 13 | <ImageView | 13 | <ImageView |
| 14 | android:id="@+id/cancel" | 14 | android:id="@+id/cancel" |
| 15 | android:layout_width="wrap_content" | 15 | android:layout_width="wrap_content" |
| 16 | android:layout_height="match_parent" | 16 | android:layout_height="match_parent" |
| 17 | android:paddingLeft="20dp" | 17 | android:paddingLeft="20dp" |
| 18 | android:paddingRight="20dp" | 18 | android:paddingRight="20dp" |
| 19 | android:src="@mipmap/title_back" /> | 19 | android:src="@mipmap/title_back" /> |
| 20 | 20 | ||
| 21 | <TextView | 21 | <TextView |
| 22 | android:id="@+id/menu_title" | 22 | android:id="@+id/menu_title" |
| 23 | android:layout_width="wrap_content" | 23 | android:layout_width="wrap_content" |
| 24 | android:layout_height="match_parent" | 24 | android:layout_height="match_parent" |
| 25 | android:layout_centerInParent="true" | 25 | android:layout_centerInParent="true" |
| 26 | android:gravity="center_vertical" | 26 | android:gravity="center_vertical" |
| 27 | android:text="@string/titel_preson" | 27 | android:text="@string/titel_preson" |
| 28 | android:textColor="@android:color/white" | 28 | android:textColor="@android:color/white" |
| 29 | android:textSize="22sp" /> | 29 | android:textSize="22sp" /> |
| 30 | 30 | ||
| 31 | <ImageView | 31 | <ImageView |
| 32 | android:id="@+id/iv_setting" | ||
| 32 | android:layout_width="wrap_content" | 33 | android:layout_width="wrap_content" |
| 33 | android:layout_height="match_parent" | 34 | android:layout_height="match_parent" |
| 34 | android:layout_marginLeft="10dp" | 35 | android:layout_marginRight="10dp" |
| 35 | android:layout_toLeftOf="@+id/iv_skin" | 36 | android:layout_toLeftOf="@+id/iv_skin" |
| 36 | android:gravity="center_vertical" | 37 | android:gravity="center_vertical" |
| 37 | android:padding="10dp" | 38 | android:padding="10dp" |
| 38 | android:src="@mipmap/shezhi" | 39 | android:src="@mipmap/shezhi" |
| 39 | android:textColor="@android:color/white" | 40 | android:textColor="@android:color/white" |
| 40 | android:textSize="22sp" /> | 41 | android:textSize="22sp" /> |
| 41 | 42 | ||
| 42 | <ImageView | 43 | <ImageView |
| 43 | android:id="@+id/iv_skin" | 44 | android:id="@+id/iv_skin" |
| 44 | android:layout_width="wrap_content" | 45 | android:layout_width="wrap_content" |
| 45 | android:layout_height="match_parent" | 46 | android:layout_height="match_parent" |
| 46 | android:layout_marginLeft="10dp" | 47 | android:layout_marginRight="10dp" |
| 47 | android:layout_toLeftOf="@+id/iv_imformatioan" | 48 | android:layout_toLeftOf="@+id/iv_imformatioan" |
| 48 | android:gravity="center_vertical" | 49 | android:gravity="center_vertical" |
| 49 | android:padding="10dp" | 50 | android:padding="10dp" |
| 50 | android:src="@mipmap/pifu" | 51 | android:src="@mipmap/pifu" |
| 51 | android:textColor="@android:color/white" | 52 | android:textColor="@android:color/white" |
| 52 | android:textSize="22sp" /> | 53 | android:textSize="22sp" /> |
| 53 | 54 | ||
| 54 | <ImageView | 55 | <ImageView |
| 55 | android:id="@+id/iv_imformatioan" | 56 | android:id="@+id/iv_imformatioan" |
| 56 | android:layout_width="wrap_content" | 57 | android:layout_width="wrap_content" |
| 57 | android:layout_height="match_parent" | 58 | android:layout_height="match_parent" |
| 58 | android:layout_alignParentRight="true" | 59 | android:layout_alignParentRight="true" |
| 59 | android:layout_marginLeft="20dp" | 60 | android:layout_marginRight="10dp" |
| 60 | android:gravity="center_vertical" | 61 | android:gravity="center_vertical" |
| 61 | android:padding="10dp" | 62 | android:padding="10dp" |
| 62 | android:src="@mipmap/fankui" | 63 | android:src="@mipmap/fankui" |
| 63 | android:textColor="@android:color/white" | 64 | android:textColor="@android:color/white" |
| 64 | android:textSize="22sp" /> | 65 | android:textSize="22sp" /> |
| 65 | 66 | ||
| 66 | 67 | ||
| 67 | </RelativeLayout> | 68 | </RelativeLayout> |
| 68 | 69 | ||
| 69 | <LinearLayout | 70 | <LinearLayout |
| 70 | android:layout_width="match_parent" | 71 | android:layout_width="match_parent" |
| 71 | android:layout_height="match_parent"> | 72 | android:layout_height="match_parent"> |
| 72 | 73 | ||
| 73 | <LinearLayout | 74 | <LinearLayout |
| 74 | android:layout_width="0dp" | 75 | android:layout_width="0dp" |
| 75 | android:layout_height="match_parent" | 76 | android:layout_height="match_parent" |
| 76 | android:layout_weight="1" | 77 | android:layout_weight="1" |
| 77 | android:orientation="vertical"> | 78 | android:orientation="vertical"> |
| 78 | 79 | ||
| 79 | <ImageView | ||
| 80 | android:layout_width="wrap_content" | ||
| 81 | android:layout_height="wrap_content" | ||
| 82 | android:layout_margin="20dp" | ||
| 83 | android:padding="10dp" | ||
| 84 | android:src="@mipmap/card_icoc" /> | ||
| 85 | |||
| 86 | <LinearLayout | 80 | <LinearLayout |
| 87 | android:layout_width="match_parent" | 81 | android:layout_width="match_parent" |
| 88 | android:layout_height="wrap_content" | 82 | android:layout_height="wrap_content" |
| 89 | android:gravity="center" | 83 | android:layout_marginTop="20dp" |
| 90 | android:orientation="horizontal"> | 84 | android:orientation="horizontal"> |
| 85 | <ImageView | ||
| 86 | android:id="@+id/iv_look_card" | ||
| 87 | android:layout_width="wrap_content" | ||
| 88 | android:layout_height="wrap_content" | ||
| 89 | android:padding="10dp" | ||
| 90 | android:layout_marginLeft="20dp" | ||
| 91 | android:src="@mipmap/card_icoc" /> | ||
| 91 | 92 | ||
| 92 | <ImageView | 93 | <ImageView |
| 93 | android:layout_width="wrap_content" | 94 | android:layout_width="wrap_content" |
| 94 | android:layout_height="wrap_content" | 95 | android:layout_height="wrap_content" |
| 95 | android:layout_marginLeft="30dp" | 96 | android:layout_marginLeft="60dp" |
| 96 | android:src="@mipmap/header_default" /> | 97 | android:src="@mipmap/header_default" /> |
| 97 | 98 | ||
| 98 | <TextView | 99 | <TextView |
| 99 | android:layout_width="wrap_content" | 100 | android:layout_width="wrap_content" |
| 100 | android:layout_height="wrap_content" | 101 | android:layout_height="wrap_content" |
| 101 | android:layout_marginLeft="18dp" | 102 | android:layout_marginLeft="18dp" |
| 103 | android:layout_marginTop="20dp" | ||
| 102 | android:background="@drawable/corcle_blue_bg" | 104 | android:background="@drawable/corcle_blue_bg" |
| 103 | android:paddingLeft="5dp" | 105 | android:paddingLeft="5dp" |
| 104 | android:paddingRight="5dp" | 106 | android:paddingRight="5dp" |
| 107 | android:gravity="center_vertical" | ||
| 105 | android:text="签到" | 108 | android:text="签到" |
| 106 | android:textColor="@color/login_text_blue" | 109 | android:textColor="@color/login_text_blue" |
| 107 | android:textSize="18sp" /> | 110 | android:textSize="18sp" /> |
| 108 | 111 | ||
| 109 | </LinearLayout> | 112 | </LinearLayout> |
| 110 | 113 | ||
| 111 | <LinearLayout | 114 | <LinearLayout |
| 112 | android:layout_width="match_parent" | 115 | android:layout_width="match_parent" |
| 113 | android:layout_height="wrap_content" | 116 | android:layout_height="wrap_content" |
| 114 | android:layout_marginLeft="20dp" | 117 | android:layout_marginLeft="20dp" |
| 115 | android:layout_marginTop="20dp" | 118 | android:layout_marginTop="20dp" |
| 116 | android:orientation="horizontal"> | 119 | android:orientation="horizontal"> |
| 117 | 120 | ||
| 118 | <TextView | 121 | <TextView |
| 119 | android:layout_width="wrap_content" | 122 | android:layout_width="wrap_content" |
| 120 | android:layout_height="wrap_content" | 123 | android:layout_height="wrap_content" |
| 121 | android:text="熊巍" | 124 | android:text="熊巍" |
| 122 | android:textSize="20dp" /> | 125 | android:textSize="20dp" /> |
| 123 | 126 | ||
| 124 | <ImageView | 127 | <ImageView |
| 125 | android:layout_width="wrap_content" | 128 | android:layout_width="wrap_content" |
| 126 | android:layout_height="wrap_content" | 129 | android:layout_height="wrap_content" |
| 127 | android:layout_marginLeft="90dp" | 130 | android:layout_marginLeft="50dp" |
| 128 | android:src="@mipmap/men" /> | 131 | android:src="@mipmap/men" /> |
| 129 | 132 | ||
| 130 | </LinearLayout> | 133 | </LinearLayout> |
| 131 | 134 | ||
| 132 | <LinearLayout | 135 | <LinearLayout |
| 133 | android:layout_width="match_parent" | 136 | android:layout_width="match_parent" |
| 134 | android:layout_height="wrap_content" | 137 | android:layout_height="wrap_content" |
| 135 | android:layout_marginLeft="20dp" | 138 | android:layout_marginLeft="20dp" |
| 136 | android:layout_marginTop="20dp" | 139 | android:layout_marginTop="20dp" |
| 137 | android:gravity="center" | 140 | android:gravity="center" |
| 138 | android:orientation="horizontal"> | 141 | android:orientation="horizontal"> |
| 139 | 142 | ||
| 140 | <TextView | 143 | <TextView |
| 141 | android:layout_width="0dp" | 144 | android:layout_width="0dp" |
| 142 | android:layout_height="wrap_content" | 145 | android:layout_height="wrap_content" |
| 143 | android:layout_weight="5" | 146 | android:layout_weight="5" |
| 144 | android:text="阿士大夫撒打发士大夫士大夫撒的范德萨" | 147 | android:text="阿士大夫撒打发士大夫士大夫撒的范德萨" |
| 145 | android:textSize="18sp" /> | 148 | android:textSize="18sp" /> |
| 146 | 149 | ||
| 147 | <ImageView | 150 | <ImageView |
| 148 | android:layout_width="0dp" | 151 | android:layout_width="0dp" |
| 149 | android:layout_height="wrap_content" | 152 | android:layout_height="wrap_content" |
| 150 | android:layout_weight="1" | 153 | android:layout_weight="1" |
| 151 | android:padding="10dp" | 154 | android:padding="10dp" |
| 152 | android:src="@mipmap/pencil" /> | 155 | android:src="@mipmap/pencil" /> |
| 153 | 156 | ||
| 154 | 157 | ||
| 155 | </LinearLayout> | 158 | </LinearLayout> |
| 156 | 159 | ||
| 157 | <View | 160 | <View |
| 158 | android:layout_width="match_parent" | 161 | android:layout_width="match_parent" |
| 159 | android:layout_height="0.7dp" | 162 | android:layout_height="0.7dp" |
| 160 | android:layout_marginTop="10dp" | 163 | android:layout_marginTop="20dp" |
| 161 | android:background="@color/cutoff_line"> | 164 | android:background="@color/cutoff_line"> |
| 162 | 165 | ||
| 163 | </View> | 166 | </View> |
| 164 | 167 | ||
| 165 | <LinearLayout | 168 | <LinearLayout |
| 166 | android:layout_width="match_parent" | 169 | android:layout_width="match_parent" |
| 167 | android:layout_height="wrap_content" | 170 | android:layout_height="wrap_content" |
| 168 | android:layout_marginTop="20dp" | 171 | android:layout_marginTop="30dp" |
| 169 | android:orientation="vertical"> | 172 | android:orientation="vertical"> |
| 170 | 173 | ||
| 171 | <LinearLayout | 174 | <LinearLayout |
| 172 | android:layout_width="match_parent" | 175 | android:layout_width="match_parent" |
| 173 | android:layout_height="wrap_content" | 176 | android:layout_height="wrap_content" |
| 174 | android:gravity="center_vertical" | 177 | android:gravity="center_vertical" |
| 175 | android:orientation="horizontal"> | 178 | android:orientation="horizontal"> |
| 176 | 179 | ||
| 177 | <ImageView | 180 | <ImageView |
| 178 | android:layout_width="0dp" | 181 | android:layout_width="0dp" |
| 179 | android:layout_height="wrap_content" | 182 | android:layout_height="wrap_content" |
| 180 | android:layout_weight="1" | 183 | android:layout_weight="1" |
| 181 | android:src="@mipmap/wodecuoti" /> | 184 | android:src="@mipmap/wodecuoti" /> |
| 182 | 185 | ||
| 183 | <TextView | 186 | <TextView |
| 184 | android:layout_width="0dp" | 187 | android:layout_width="0dp" |
| 185 | android:layout_height="wrap_content" | 188 | android:layout_height="wrap_content" |
| 186 | android:layout_weight="5" | 189 | android:layout_weight="5" |
| 187 | android:text="我的错题" | 190 | android:text="我的错题" |
| 188 | android:textSize="20sp" /> | 191 | android:textSize="20sp" /> |
| 189 | 192 | ||
| 190 | <ImageView | 193 | <ImageView |
| 191 | android:layout_width="0dp" | 194 | android:layout_width="0dp" |
| 192 | android:layout_height="wrap_content" | 195 | android:layout_height="wrap_content" |
| 193 | android:layout_weight="1" | 196 | android:layout_weight="1" |
| 194 | android:src="@mipmap/youjiantou" /> | 197 | android:src="@mipmap/youjiantou" /> |
| 195 | 198 | ||
| 196 | </LinearLayout> | 199 | </LinearLayout> |
| 197 | 200 | ||
| 198 | <LinearLayout | 201 | <LinearLayout |
| 199 | android:layout_width="match_parent" | 202 | android:layout_width="match_parent" |
| 200 | android:layout_height="wrap_content" | 203 | android:layout_height="wrap_content" |
| 201 | android:layout_marginTop="20dp" | 204 | android:layout_marginTop="35dp" |
| 202 | android:gravity="center_vertical" | 205 | android:gravity="center_vertical" |
| 203 | android:orientation="horizontal"> | 206 | android:orientation="horizontal"> |
| 204 | 207 | ||
| 205 | <ImageView | 208 | <ImageView |
| 206 | android:layout_width="0dp" | 209 | android:layout_width="0dp" |
| 207 | android:layout_height="wrap_content" | 210 | android:layout_height="wrap_content" |
| 208 | android:layout_weight="1" | 211 | android:layout_weight="1" |
| 209 | android:src="@mipmap/wodebiji" /> | 212 | android:src="@mipmap/wodebiji" /> |
| 210 | 213 | ||
| 211 | <TextView | 214 | <TextView |
| 212 | android:layout_width="0dp" | 215 | android:layout_width="0dp" |
| 213 | android:layout_height="wrap_content" | 216 | android:layout_height="wrap_content" |
| 214 | android:layout_weight="5" | 217 | android:layout_weight="5" |
| 215 | android:text="我的笔记" | 218 | android:text="我的笔记" |
| 216 | android:textSize="20sp" /> | 219 | android:textSize="20sp" /> |
| 217 | 220 | ||
| 218 | <ImageView | 221 | <ImageView |
| 219 | android:layout_width="0dp" | 222 | android:layout_width="0dp" |
| 220 | android:layout_height="wrap_content" | 223 | android:layout_height="wrap_content" |
| 221 | android:layout_weight="1" | 224 | android:layout_weight="1" |
| 222 | android:src="@mipmap/youjiantou" /> | 225 | android:src="@mipmap/youjiantou" /> |
| 223 | 226 | ||
| 224 | </LinearLayout> | 227 | </LinearLayout> |
| 225 | 228 | ||
| 226 | <LinearLayout | 229 | <LinearLayout |
| 227 | android:layout_width="match_parent" | 230 | android:layout_width="match_parent" |
| 228 | android:layout_height="wrap_content" | 231 | android:layout_height="wrap_content" |
| 229 | android:layout_marginTop="20dp" | 232 | android:layout_marginTop="35dp" |
| 230 | android:gravity="center_vertical" | 233 | android:gravity="center_vertical" |
| 231 | android:orientation="horizontal"> | 234 | android:orientation="horizontal"> |
| 232 | 235 | ||
| 233 | <ImageView | 236 | <ImageView |
| 234 | android:layout_width="0dp" | 237 | android:layout_width="0dp" |
| 235 | android:layout_height="wrap_content" | 238 | android:layout_height="wrap_content" |
| 236 | android:layout_weight="1" | 239 | android:layout_weight="1" |
| 237 | android:src="@mipmap/wodeshoucang" /> | 240 | android:src="@mipmap/wodeshoucang" /> |
| 238 | 241 | ||
| 239 | <TextView | 242 | <TextView |
| 240 | android:layout_width="0dp" | 243 | android:layout_width="0dp" |
| 241 | android:layout_height="wrap_content" | 244 | android:layout_height="wrap_content" |
| 242 | android:layout_weight="5" | 245 | android:layout_weight="5" |
| 243 | android:text="我的收藏" | 246 | android:text="我的收藏" |
| 244 | android:textSize="20sp" /> | 247 | android:textSize="20sp" /> |
| 245 | 248 | ||
| 246 | <ImageView | 249 | <ImageView |
| 247 | android:layout_width="0dp" | 250 | android:layout_width="0dp" |
| 248 | android:layout_height="wrap_content" | 251 | android:layout_height="wrap_content" |
| 249 | android:layout_weight="1" | 252 | android:layout_weight="1" |
| 250 | android:src="@mipmap/youjiantou" /> | 253 | android:src="@mipmap/youjiantou" /> |
| 251 | 254 | ||
| 252 | </LinearLayout> | 255 | </LinearLayout> |
| 253 | 256 | ||
| 254 | <LinearLayout | 257 | <LinearLayout |
| 255 | android:layout_width="match_parent" | 258 | android:layout_width="match_parent" |
| 256 | android:layout_height="wrap_content" | 259 | android:layout_height="wrap_content" |
| 257 | android:layout_marginTop="20dp" | 260 | android:layout_marginTop="35dp" |
| 258 | android:gravity="center_vertical" | 261 | android:gravity="center_vertical" |
| 259 | android:orientation="horizontal"> | 262 | android:orientation="horizontal"> |
| 260 | 263 | ||
| 261 | <ImageView | 264 | <ImageView |
| 262 | android:layout_width="0dp" | 265 | android:layout_width="0dp" |
| 263 | android:layout_height="wrap_content" | 266 | android:layout_height="wrap_content" |
| 264 | android:layout_weight="1" | 267 | android:layout_weight="1" |
| 265 | android:src="@mipmap/wodebanji" /> | 268 | android:src="@mipmap/wodebanji" /> |
| 266 | 269 | ||
| 267 | <TextView | 270 | <TextView |
| 268 | android:layout_width="0dp" | 271 | android:layout_width="0dp" |
| 269 | android:layout_height="wrap_content" | 272 | android:layout_height="wrap_content" |
| 270 | android:layout_weight="5" | 273 | android:layout_weight="5" |
| 271 | android:text="我的班级" | 274 | android:text="我的班级" |
| 272 | android:textSize="20sp" /> | 275 | android:textSize="20sp" /> |
| 273 | 276 | ||
| 274 | <ImageView | 277 | <ImageView |
| 275 | android:layout_width="0dp" | 278 | android:layout_width="0dp" |
| 276 | android:layout_height="wrap_content" | 279 | android:layout_height="wrap_content" |
| 277 | android:layout_weight="1" | 280 | android:layout_weight="1" |
| 278 | android:src="@mipmap/youjiantou" /> | 281 | android:src="@mipmap/youjiantou" /> |
| 279 | 282 | ||
| 280 | </LinearLayout> | 283 | </LinearLayout> |
| 281 | 284 | ||
| 282 | 285 | ||
| 283 | </LinearLayout> | 286 | </LinearLayout> |
| 284 | 287 | ||
| 285 | <LinearLayout | 288 | <LinearLayout |
| 286 | android:layout_width="match_parent" | 289 | android:layout_width="match_parent" |
| 287 | android:layout_height="wrap_content" | 290 | android:layout_height="match_parent" |
| 288 | android:layout_marginTop="100dp" | 291 | android:layout_marginTop="120dp" |
| 289 | android:background="@mipmap/xiaoguanggao"> | 292 | android:background="@mipmap/xiaoguanggao"> |
| 290 | 293 | ||
| 291 | </LinearLayout> | 294 | </LinearLayout> |
| 292 | 295 | ||
| 293 | 296 | ||
| 294 | </LinearLayout> | 297 | </LinearLayout> |
| 295 | 298 | ||
| 296 | 299 | ||
| 297 | <View | 300 | <View |
| 298 | android:layout_width="0.7dp" | 301 | android:layout_width="0.7dp" |
| 299 | android:layout_height="match_parent" | 302 | android:layout_height="match_parent" |
| 300 | android:background="@color/cutoff_line"> | 303 | android:background="@color/cutoff_line"> |
| 301 | 304 | ||
| 302 | </View> | 305 | </View> |
| 303 | 306 | ||
| 304 | <LinearLayout | 307 | <LinearLayout |
| 305 | android:layout_width="0dp" | 308 | android:layout_width="0dp" |
| 306 | android:layout_height="match_parent" | 309 | android:layout_height="match_parent" |
| 307 | android:layout_weight="2.5" | 310 | android:layout_weight="2.5" |
| 308 | android:orientation="vertical"> | 311 | android:orientation="vertical"> |
| 309 | 312 | ||
| 310 | <LinearLayout | 313 | <LinearLayout |
| 311 | android:layout_width="match_parent" | 314 | android:layout_width="match_parent" |
| 312 | android:layout_height="wrap_content" | 315 | android:layout_height="wrap_content" |
| 313 | android:layout_margin="20dp" | 316 | android:layout_margin="20dp" |
| 314 | android:gravity="center_vertical" | 317 | android:gravity="center_vertical" |
| 315 | android:orientation="horizontal"> | 318 | android:orientation="horizontal"> |
| 316 | 319 | ||
| 317 | <View | 320 | <View |
| 318 | android:layout_width="5dp" | 321 | android:layout_width="5dp" |
| 319 | android:layout_height="20dp" | 322 | android:layout_height="20dp" |
| 320 | android:background="@color/login_text_blue"> | 323 | android:background="@color/login_text_blue"> |
| 321 | 324 | ||
| 322 | </View> | 325 | </View> |
| 323 | 326 | ||
| 324 | <TextView | 327 | <TextView |
| 325 | android:layout_width="wrap_content" | 328 | android:layout_width="wrap_content" |
| 326 | android:layout_height="wrap_content" | 329 | android:layout_height="wrap_content" |
| 327 | android:layout_marginLeft="5dp" | 330 | android:layout_marginLeft="5dp" |
| 328 | android:text="最近学习" | 331 | android:text="最近学习" |
| 329 | android:textSize="22sp" /> | 332 | android:textSize="22sp" /> |
| 330 | 333 | ||
| 331 | </LinearLayout> | 334 | </LinearLayout> |
| 332 | 335 | ||
| 333 | <LinearLayout | 336 | <LinearLayout |
| 334 | android:layout_width="match_parent" | 337 | android:layout_width="match_parent" |
| 335 | android:layout_height="wrap_content"> | 338 | android:layout_height="wrap_content"> |
| 336 | 339 | ||
| 337 | <TextView | 340 | <TextView |
| 338 | android:id="@+id/list_item_study" | 341 | android:id="@+id/list_item_study" |
| 339 | android:layout_width="match_parent" | 342 | android:layout_width="match_parent" |
| 340 | android:layout_height="100dp" | 343 | android:layout_height="100dp" |
| 341 | android:layout_marginLeft="20dp" | 344 | android:layout_marginLeft="20dp" |
| 342 | android:layout_marginTop="10dp" | 345 | android:layout_marginTop="10dp" |
| 343 | android:gravity="center" | 346 | android:gravity="center" |
| 344 | android:text="这里需要显示水平滑动的" /> | 347 | android:text="这里需要显示水平滑动的" /> |
| 345 | </LinearLayout> | 348 | </LinearLayout> |
| 346 | 349 | ||
| 347 | <View | 350 | <View |
| 348 | android:layout_width="match_parent" | 351 | android:layout_width="match_parent" |
| 349 | android:layout_height="0.7dp" | 352 | android:layout_height="0.7dp" |
| 350 | android:background="@color/cutoff_line"> | 353 | android:background="@color/cutoff_line"> |
| 351 | 354 | ||
| 352 | </View> | 355 | </View> |
| 353 | 356 | ||
| 354 | <LinearLayout | 357 | <LinearLayout |
| 355 | android:layout_width="match_parent" | 358 | android:layout_width="match_parent" |
| 356 | android:layout_height="wrap_content" | 359 | android:layout_height="wrap_content" |
| 357 | android:layout_margin="20dp" | 360 | android:layout_margin="20dp" |
| 358 | android:gravity="center_vertical" | 361 | android:gravity="center_vertical" |
| 359 | android:orientation="horizontal"> | 362 | android:orientation="horizontal"> |
| 360 | 363 | ||
| 361 | <View | 364 | <View |
| 362 | android:layout_width="5dp" | 365 | android:layout_width="5dp" |
| 363 | android:layout_height="20dp" | 366 | android:layout_height="20dp" |
| 364 | android:background="@color/login_text_blue"> | 367 | android:background="@color/login_text_blue"> |
| 365 | 368 | ||
| 366 | </View> | 369 | </View> |
| 367 | 370 | ||
| 368 | <TextView | 371 | <TextView |
| 369 | android:layout_width="0dp" | 372 | android:layout_width="0dp" |
| 370 | android:layout_height="wrap_content" | 373 | android:layout_height="wrap_content" |
| 371 | android:layout_marginLeft="5dp" | 374 | android:layout_marginLeft="5dp" |
| 372 | android:layout_weight="1" | 375 | android:layout_weight="2" |
| 373 | android:text="个人信息" | 376 | android:text="个人信息" |
| 374 | android:textSize="22sp" /> | 377 | android:textSize="22sp" /> |
| 375 | 378 | ||
| 376 | <TextView | 379 | <TextView |
| 380 | android:id="@+id/tv_edit_presoninfo" | ||
| 381 | android:padding="5dp" | ||
| 377 | android:layout_width="0dp" | 382 | android:layout_width="0dp" |
| 378 | android:layout_height="wrap_content" | 383 | android:layout_height="wrap_content" |
| 379 | android:layout_marginLeft="5dp" | 384 | android:layout_marginLeft="10dp" |
| 380 | android:layout_weight="0.1" | 385 | android:layout_weight="0.2" |
| 381 | android:text="编辑" | 386 | android:text="编辑" |
| 382 | android:textSize="22sp" /> | 387 | android:textSize="18sp" /> |
| 383 | 388 | ||
| 384 | <ImageView | 389 | <ImageView |
| 385 | android:layout_width="0dp" | 390 | android:layout_width="0dp" |
| 386 | android:layout_height="wrap_content" | 391 | android:layout_height="wrap_content" |
| 387 | android:layout_weight="0.1" | 392 | android:layout_weight="0.1" |
| 388 | 393 | ||
| 389 | android:src="@mipmap/youjiantou" /> | 394 | android:src="@mipmap/youjiantou" /> |
| 390 | 395 | ||
| 391 | 396 | ||
| 392 | </LinearLayout> | 397 | </LinearLayout> |
| 393 | 398 | ||
| 394 | <LinearLayout | 399 | <LinearLayout |
| 395 | android:layout_width="match_parent" | 400 | android:layout_width="match_parent" |
| 396 | android:layout_height="wrap_content" | 401 | android:layout_height="wrap_content" |
| 397 | android:layout_marginLeft="50dp" | 402 | android:layout_marginLeft="50dp" |
| 398 | android:layout_marginTop="20dp" | 403 | android:layout_marginTop="10dp" |
| 399 | android:orientation="vertical"> | 404 | android:orientation="vertical"> |
| 400 | 405 | ||
| 401 | <LinearLayout | 406 | <LinearLayout |
| 402 | android:layout_width="match_parent" | 407 | android:layout_width="match_parent" |
| 403 | android:layout_height="wrap_content" | 408 | android:layout_height="wrap_content" |
| 404 | android:gravity="center_vertical" | 409 | android:gravity="center_vertical" |
| 405 | android:orientation="horizontal"> | 410 | android:orientation="horizontal"> |
| 406 | 411 | ||
| 407 | <TextView | 412 | <TextView |
| 408 | android:layout_width="0dp" | 413 | android:layout_width="0dp" |
| 409 | android:layout_height="wrap_content" | 414 | android:layout_height="wrap_content" |
| 410 | android:layout_weight="1" | 415 | android:layout_weight="1" |
| 411 | android:text="我的错题" | 416 | android:text="我的错题" |
| 412 | android:textSize="20sp" /> | 417 | android:textSize="20sp" /> |
| 413 | 418 | ||
| 414 | <TextView | 419 | <TextView |
| 415 | android:layout_width="0dp" | 420 | android:layout_width="0dp" |
| 416 | android:layout_height="wrap_content" | 421 | android:layout_height="wrap_content" |
| 417 | android:layout_weight="2" | 422 | android:layout_weight="2" |
| 418 | android:text="我的错题" | 423 | android:text="我的错题" |
| 419 | android:textSize="20sp" /> | 424 | android:textSize="20sp" /> |
| 420 | 425 | ||
| 421 | <TextView | 426 | <TextView |
| 422 | android:layout_width="1dp" | 427 | android:layout_width="1dp" |
| 423 | android:layout_height="wrap_content" | 428 | android:layout_height="wrap_content" |
| 424 | android:layout_weight="1" | 429 | android:layout_weight="1" |
| 425 | android:text="我的错题" | 430 | android:text="我的错题" |
| 426 | android:textSize="20sp" /> | 431 | android:textSize="20sp" /> |
| 427 | 432 | ||
| 428 | <TextView | 433 | <TextView |
| 429 | android:layout_width="0dp" | 434 | android:layout_width="0dp" |
| 430 | android:layout_height="wrap_content" | 435 | android:layout_height="wrap_content" |
| 431 | android:layout_weight="2" | 436 | android:layout_weight="2" |
| 432 | android:text="我的错题" | 437 | android:text="我的错题" |
| 433 | android:textSize="20sp" /> | 438 | android:textSize="20sp" /> |
| 434 | </LinearLayout> | 439 | </LinearLayout> |
| 435 | 440 | ||
| 436 | <LinearLayout | 441 | <LinearLayout |
| 437 | android:layout_width="match_parent" | 442 | android:layout_width="match_parent" |
| 438 | android:layout_height="wrap_content" | 443 | android:layout_height="wrap_content" |
| 439 | android:layout_marginTop="20dp" | 444 | android:layout_marginTop="20dp" |
| 440 | android:gravity="center_vertical" | 445 | android:gravity="center_vertical" |
| 441 | android:orientation="horizontal"> | 446 | android:orientation="horizontal"> |
| 442 | 447 | ||
| 443 | <TextView | 448 | <TextView |
| 444 | android:layout_width="0dp" | 449 | android:layout_width="0dp" |
| 445 | android:layout_height="wrap_content" | 450 | android:layout_height="wrap_content" |
| 446 | android:layout_weight="1" | 451 | android:layout_weight="1" |
| 447 | android:text="我的错题" | 452 | android:text="我的错题" |
| 448 | android:textSize="20sp" /> | 453 | android:textSize="20sp" /> |
| 449 | 454 | ||
| 450 | <TextView | 455 | <TextView |
| 451 | android:layout_width="0dp" | 456 | android:layout_width="0dp" |
| 452 | android:layout_height="wrap_content" | 457 | android:layout_height="wrap_content" |
| 453 | android:layout_weight="2" | 458 | android:layout_weight="2" |
| 454 | android:text="我的错题" | 459 | android:text="我的错题" |
| 455 | android:textSize="20sp" /> | 460 | android:textSize="20sp" /> |
| 456 | 461 | ||
| 457 | <TextView | 462 | <TextView |
| 458 | android:layout_width="1dp" | 463 | android:layout_width="1dp" |
| 459 | android:layout_height="wrap_content" | 464 | android:layout_height="wrap_content" |
| 460 | android:layout_weight="1" | 465 | android:layout_weight="1" |
| 461 | android:text="我的错题" | 466 | android:text="我的错题" |
| 462 | android:textSize="20sp" /> | 467 | android:textSize="20sp" /> |
| 463 | 468 | ||
| 464 | <TextView | 469 | <TextView |
| 465 | android:layout_width="0dp" | 470 | android:layout_width="0dp" |
| 466 | android:layout_height="wrap_content" | 471 | android:layout_height="wrap_content" |
| 467 | android:layout_weight="2" | 472 | android:layout_weight="2" |
| 468 | android:text="我的错题" | 473 | android:text="我的错题" |
| 469 | android:textSize="20sp" /> | 474 | android:textSize="20sp" /> |
| 470 | </LinearLayout> | 475 | </LinearLayout> |
| 471 | 476 | ||
| 472 | <LinearLayout | 477 | <LinearLayout |
| 473 | android:layout_width="match_parent" | 478 | android:layout_width="match_parent" |
| 474 | android:layout_height="wrap_content" | 479 | android:layout_height="wrap_content" |
| 475 | android:layout_marginTop="20dp" | 480 | android:layout_marginTop="20dp" |
| 476 | android:gravity="center_vertical" | 481 | android:gravity="center_vertical" |
| 477 | android:orientation="horizontal"> | 482 | android:orientation="horizontal"> |
| 478 | 483 | ||
| 479 | <TextView | 484 | <TextView |
| 480 | android:layout_width="0dp" | 485 | android:layout_width="0dp" |
| 481 | android:layout_height="wrap_content" | 486 | android:layout_height="wrap_content" |
| 482 | android:layout_weight="1" | 487 | android:layout_weight="1" |
| 483 | android:text="我的错题" | 488 | android:text="我的错题" |
| 484 | android:textSize="20sp" /> | 489 | android:textSize="20sp" /> |
| 485 | 490 | ||
| 486 | <TextView | 491 | <TextView |
| 487 | android:layout_width="0dp" | 492 | android:layout_width="0dp" |
| 488 | android:layout_height="wrap_content" | 493 | android:layout_height="wrap_content" |
| 489 | android:layout_weight="2" | 494 | android:layout_weight="2" |
| 490 | android:text="我的错题" | 495 | android:text="我的错题" |
| 491 | android:textSize="20sp" /> | 496 | android:textSize="20sp" /> |
| 492 | 497 | ||
| 493 | <TextView | 498 | <TextView |
| 494 | android:layout_width="1dp" | 499 | android:layout_width="1dp" |
| 495 | android:layout_height="wrap_content" | 500 | android:layout_height="wrap_content" |
| 496 | android:layout_weight="1" | 501 | android:layout_weight="1" |
| 497 | android:text="我的错题" | 502 | android:text="我的错题" |
| 498 | android:textSize="20sp" /> | 503 | android:textSize="20sp" /> |
| 499 | 504 | ||
| 500 | <TextView | 505 | <TextView |
| 501 | android:layout_width="0dp" | 506 | android:layout_width="0dp" |
| 502 | android:layout_height="wrap_content" | 507 | android:layout_height="wrap_content" |
| 503 | android:layout_weight="2" | 508 | android:layout_weight="2" |
| 504 | android:text="我的错题" | 509 | android:text="我的错题" |
| 505 | android:textSize="20sp" /> | 510 | android:textSize="20sp" /> |
| 506 | </LinearLayout> | 511 | </LinearLayout> |
| 507 | 512 | ||
| 508 | <LinearLayout | 513 | <LinearLayout |
| 509 | android:layout_width="match_parent" | 514 | android:layout_width="match_parent" |
| 510 | android:layout_height="wrap_content" | 515 | android:layout_height="wrap_content" |
| 511 | android:layout_marginTop="20dp" | 516 | android:layout_marginTop="20dp" |
| 512 | android:gravity="center_vertical" | 517 | android:gravity="center_vertical" |
| 513 | android:orientation="horizontal"> | 518 | android:orientation="horizontal"> |
| 514 | 519 | ||
| 515 | <TextView | 520 | <TextView |
| 516 | android:layout_width="0dp" | 521 | android:layout_width="0dp" |
| 517 | android:layout_height="wrap_content" | 522 | android:layout_height="wrap_content" |
| 518 | android:layout_weight="1" | 523 | android:layout_weight="1" |
| 519 | android:text="我的错题" | 524 | android:text="我的错题" |
| 520 | android:textSize="20sp" /> | 525 | android:textSize="20sp" /> |
| 521 | 526 | ||
| 522 | <TextView | 527 | <TextView |
| 523 | android:layout_width="0dp" | 528 | android:layout_width="0dp" |
| 524 | android:layout_height="wrap_content" | 529 | android:layout_height="wrap_content" |
| 525 | android:layout_weight="2" | 530 | android:layout_weight="2" |
| 526 | android:text="我的错题" | 531 | android:text="我的错题" |
| 527 | android:textSize="20sp" /> | 532 | android:textSize="20sp" /> |
| 528 | 533 | ||
| 529 | <TextView | 534 | <TextView |
| 530 | android:layout_width="1dp" | 535 | android:layout_width="1dp" |
| 531 | android:layout_height="wrap_content" | 536 | android:layout_height="wrap_content" |
| 532 | android:layout_weight="1" | 537 | android:layout_weight="1" |
| 533 | android:text="我的错题" | 538 | android:text="我的错题" |
| 534 | android:textSize="20sp" /> | 539 | android:textSize="20sp" /> |
| 535 | 540 | ||
| 536 | <TextView | 541 | <TextView |
| 537 | android:layout_width="0dp" | 542 | android:layout_width="0dp" |
| 538 | android:layout_height="wrap_content" | 543 | android:layout_height="wrap_content" |
| 539 | android:layout_weight="2" | 544 | android:layout_weight="2" |
| 540 | android:text="我的错题" | 545 | android:text="我的错题" |
| 541 | android:textSize="20sp" /> | 546 | android:textSize="20sp" /> |
| 542 | </LinearLayout> | 547 | </LinearLayout> |
| 543 | 548 | ||
| 544 | 549 | ||
| 545 | </LinearLayout> | 550 | </LinearLayout> |
| 551 | <View | ||
| 552 | android:layout_width="match_parent" | ||
| 553 | android:layout_height="0.7dp" | ||
| 554 | android:layout_marginTop="20dp" | ||
| 555 | android:background="@color/cutoff_line"> | ||
| 546 | 556 | ||
| 557 | </View> | ||
| 547 | <LinearLayout | 558 | <LinearLayout |
| 548 | android:layout_width="match_parent" | 559 | android:layout_width="match_parent" |
| 549 | android:layout_height="wrap_content" | 560 | android:layout_height="wrap_content" |
| 550 | android:layout_margin="20dp" | 561 | android:layout_margin="20dp" |
| 551 | android:gravity="center_vertical" | 562 | android:gravity="center_vertical" |
| 552 | android:orientation="horizontal"> | 563 | android:orientation="horizontal"> |
| 553 | 564 | ||
| 554 | <View | 565 | <View |
| 555 | android:layout_width="5dp" | 566 | android:layout_width="5dp" |
| 556 | android:layout_height="20dp" | 567 | android:layout_height="20dp" |
| 557 | android:background="@color/login_text_blue"> | 568 | android:background="@color/login_text_blue"> |
| 558 | 569 | ||
| 559 | </View> | 570 | </View> |
| 560 | 571 | ||
| 561 | <TextView | 572 | <TextView |
| 562 | android:layout_width="wrap_content" | 573 | android:layout_width="wrap_content" |
| 563 | android:layout_height="wrap_content" | 574 | android:layout_height="wrap_content" |
| 564 | android:layout_marginLeft="5dp" | 575 | android:layout_marginLeft="5dp" |
| 565 | android:text="版本信息" | 576 | android:text="版本信息" |
| 566 | android:textSize="22sp" /> | 577 | android:textSize="22sp" /> |
| 567 | 578 | ||
| 568 | </LinearLayout> | 579 | </LinearLayout> |
| 569 | 580 | ||
| 570 | <View | ||
| 571 | android:layout_width="match_parent" | ||
| 572 | android:layout_height="0.7dp" | ||
| 573 | android:background="@color/cutoff_line"> | ||
| 574 | |||
| 575 | </View> | ||
| 576 | |||
| 577 | <LinearLayout | 581 | <LinearLayout |
| 578 | android:layout_width="match_parent" | 582 | android:layout_width="match_parent" |
| 579 | android:layout_height="wrap_content" | 583 | android:layout_height="wrap_content" |
| 580 | android:layout_marginTop="20dp"> | 584 | android:layout_marginTop="20dp"> |
| 581 | 585 | ||
| 582 | <TextView | 586 | <TextView |
| 583 | android:layout_width="match_parent" | 587 | android:layout_width="match_parent" |
| 584 | android:layout_height="100dp" | 588 | android:layout_height="100dp" |
| 585 | android:layout_marginLeft="20dp" | 589 | android:layout_marginLeft="20dp" |
PersonalCenter/app/src/main/res/layout/activity_ok_cardinfo.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 | android:orientation="vertical"> | 5 | android:orientation="vertical"> |
| 6 | 6 | ||
| 7 | <RelativeLayout | 7 | <RelativeLayout |
| 8 | android:id="@+id/title" | 8 | android:id="@+id/title" |
| 9 | android:layout_width="match_parent" | 9 | android:layout_width="match_parent" |
| 10 | android:layout_height="wrap_content" | 10 | android:layout_height="wrap_content" |
| 11 | android:background="@color/login_text_blue" | 11 | android:background="@color/login_text_blue" |
| 12 | android:minHeight="50dp"> | 12 | android:minHeight="50dp"> |
| 13 | 13 | ||
| 14 | <ImageView | 14 | <ImageView |
| 15 | android:id="@+id/cancel" | 15 | android:id="@+id/cancel" |
| 16 | android:layout_width="wrap_content" | 16 | android:layout_width="wrap_content" |
| 17 | android:layout_height="wrap_content" | 17 | android:layout_height="wrap_content" |
| 18 | android:layout_centerVertical="true" | 18 | android:layout_centerVertical="true" |
| 19 | android:paddingLeft="20dp" | 19 | android:paddingLeft="20dp" |
| 20 | android:paddingRight="20dp" | 20 | android:paddingRight="20dp" |
| 21 | android:src="@mipmap/title_back" /> | 21 | android:src="@mipmap/title_back" /> |
| 22 | 22 | ||
| 23 | <TextView | 23 | <TextView |
| 24 | android:id="@+id/menu_title" | 24 | android:id="@+id/menu_title" |
| 25 | android:layout_width="wrap_content" | 25 | android:layout_width="wrap_content" |
| 26 | android:layout_height="wrap_content" | 26 | android:layout_height="wrap_content" |
| 27 | android:layout_centerInParent="true" | 27 | android:layout_centerInParent="true" |
| 28 | android:text="@string/string_electroniccard_info_ok" | 28 | android:text="@string/string_electroniccard_info_ok" |
| 29 | android:textColor="@android:color/white" | 29 | android:textColor="@android:color/white" |
| 30 | android:textSize="22sp" /> | 30 | android:textSize="22sp" /> |
| 31 | </RelativeLayout> | 31 | </RelativeLayout> |
| 32 | 32 | ||
| 33 | <LinearLayout | 33 | <LinearLayout |
| 34 | android:layout_width="match_parent" | 34 | android:layout_width="match_parent" |
| 35 | android:layout_height="wrap_content" | 35 | android:layout_height="wrap_content" |
| 36 | android:layout_margin="20dp" | 36 | android:layout_marginTop="50dp" |
| 37 | android:layout_marginLeft="20dp" | ||
| 38 | android:layout_marginRight="20dp" | ||
| 39 | android:layout_marginBottom="30dp" | ||
| 37 | android:background="@mipmap/cardbackgrangd" | 40 | android:background="@mipmap/cardbackgrangd" |
| 38 | android:gravity="center" | 41 | android:gravity="center" |
| 39 | android:orientation="vertical"> | 42 | android:orientation="vertical"> |
| 40 | 43 | ||
| 41 | <LinearLayout | 44 | <LinearLayout |
| 42 | android:layout_width="match_parent" | 45 | android:layout_width="match_parent" |
| 43 | android:layout_height="wrap_content" | 46 | android:layout_height="wrap_content" |
| 44 | android:layout_marginTop="70dp" | 47 | android:layout_marginTop="50dp" |
| 45 | android:gravity="center_vertical" | 48 | android:gravity="center_vertical" |
| 46 | android:orientation="horizontal"> | 49 | android:orientation="horizontal"> |
| 47 | 50 | ||
| 48 | <LinearLayout | 51 | <LinearLayout |
| 49 | android:layout_width="0dp" | 52 | android:layout_width="0dp" |
| 50 | android:layout_weight="1" | 53 | android:layout_weight="1" |
| 51 | android:layout_height="wrap_content" | 54 | android:layout_height="wrap_content" |
| 52 | android:layout_marginLeft="200dp" | 55 | android:layout_marginLeft="200dp" |
| 53 | android:gravity="center_vertical"> | 56 | android:gravity="center_vertical"> |
| 54 | 57 | ||
| 55 | <ImageView | 58 | <ImageView |
| 56 | android:layout_width="wrap_content" | 59 | android:layout_width="wrap_content" |
| 57 | android:layout_height="wrap_content" | 60 | android:layout_height="wrap_content" |
| 58 | android:src="@mipmap/logo_info" /> | 61 | android:src="@mipmap/logo_info" /> |
| 59 | 62 | ||
| 60 | <TextView | 63 | <TextView |
| 61 | android:layout_width="wrap_content" | 64 | android:layout_width="wrap_content" |
| 62 | android:layout_height="wrap_content" | 65 | android:layout_height="wrap_content" |
| 63 | android:layout_marginLeft="50dp" | 66 | android:layout_marginLeft="50dp" |
| 64 | android:background="@null" | 67 | android:background="@null" |
| 65 | android:text="电子保卡" | 68 | android:text="电子保卡" |
| 66 | android:textColor="@color/login_text_blue" | 69 | android:textColor="@color/electronic_card" |
| 67 | android:textSize="22sp" /> | 70 | android:textSize="22sp" /> |
| 68 | 71 | ||
| 69 | </LinearLayout> | 72 | </LinearLayout> |
| 70 | 73 | ||
| 71 | <LinearLayout | 74 | <LinearLayout |
| 72 | android:layout_width="0dp" | 75 | android:layout_width="0dp" |
| 73 | android:layout_weight="1" | 76 | android:layout_weight="1" |
| 74 | android:layout_height="80dp" | 77 | android:layout_height="80dp" |
| 75 | android:layout_marginLeft="80dp" | 78 | android:layout_marginLeft="80dp" |
| 76 | android:gravity="center_vertical"> | 79 | android:gravity="center_vertical"> |
| 77 | 80 | ||
| 78 | <TextView | 81 | <TextView |
| 79 | android:layout_width="wrap_content" | 82 | android:layout_width="wrap_content" |
| 80 | android:layout_height="wrap_content" | 83 | android:layout_height="wrap_content" |
| 81 | android:text="客户姓名" | 84 | android:text="客户姓名" |
| 82 | android:textColor="@color/btn_text_color" | 85 | android:textColor="@color/btn_text_color" |
| 83 | android:textSize="22sp" /> | 86 | android:textSize="22sp" /> |
| 84 | 87 | ||
| 85 | <TextView | 88 | <TextView |
| 89 | android:id="@+id/iv_card_username" | ||
| 86 | android:layout_width="wrap_content" | 90 | android:layout_width="wrap_content" |
| 87 | android:layout_height="wrap_content" | 91 | android:layout_height="wrap_content" |
| 88 | android:layout_marginLeft="80dp" | 92 | android:layout_marginLeft="80dp" |
| 89 | android:text="王小明" | 93 | android:text="王小明" |
| 90 | android:textColor="@color/btn_text_color" | 94 | android:textColor="@color/btn_text_color" |
| 91 | android:textSize="22sp" /> | 95 | android:textSize="22sp" /> |
| 92 | 96 | ||
| 93 | </LinearLayout> | 97 | </LinearLayout> |
| 94 | 98 | ||
| 95 | </LinearLayout> | 99 | </LinearLayout> |
| 96 | 100 | ||
| 97 | <LinearLayout | 101 | <LinearLayout |
| 98 | android:layout_width="match_parent" | 102 | android:layout_width="match_parent" |
| 99 | android:layout_height="wrap_content" | 103 | android:layout_height="wrap_content" |
| 100 | android:gravity="center_vertical" | 104 | android:gravity="center_vertical" |
| 101 | android:orientation="horizontal"> | 105 | android:orientation="horizontal"> |
| 102 | 106 | ||
| 103 | <LinearLayout | 107 | <LinearLayout |
| 104 | android:layout_width="0dp" | 108 | android:layout_width="0dp" |
| 105 | android:layout_weight="1" | 109 | android:layout_weight="1" |
| 106 | android:layout_height="60dp" | 110 | android:layout_height="60dp" |
| 107 | android:layout_marginLeft="200dp" | 111 | android:layout_marginLeft="200dp" |
| 108 | android:gravity="center_vertical"> | 112 | android:gravity="center_vertical"> |
| 109 | 113 | ||
| 110 | <TextView | 114 | <TextView |
| 111 | android:layout_width="wrap_content" | 115 | android:layout_width="wrap_content" |
| 112 | android:layout_height="wrap_content" | 116 | android:layout_height="wrap_content" |
| 113 | android:text="产品型号" | 117 | android:text="产品型号" |
| 114 | android:textColor="@color/btn_text_color" | 118 | android:textColor="@color/btn_text_color" |
| 115 | android:textSize="22sp" /> | 119 | android:textSize="22sp" /> |
| 116 | 120 | ||
| 117 | <TextView | 121 | <TextView |
| 122 | android:id="@+id/tv_card_deviceModel" | ||
| 118 | android:layout_width="wrap_content" | 123 | android:layout_width="wrap_content" |
| 119 | android:layout_height="wrap_content" | 124 | android:layout_height="wrap_content" |
| 120 | android:layout_marginLeft="50dp" | 125 | android:layout_marginLeft="50dp" |
| 121 | android:text="IPone888" | 126 | android:text="IPone888" |
| 122 | android:textSize="22sp" /> | 127 | android:textSize="22sp" /> |
| 123 | 128 | ||
| 124 | 129 | ||
| 125 | </LinearLayout> | 130 | </LinearLayout> |
| 126 | 131 | ||
| 127 | <LinearLayout | 132 | <LinearLayout |
| 128 | android:layout_width="0dp" | 133 | android:layout_width="0dp" |
| 129 | android:layout_weight="1" | 134 | android:layout_weight="1" |
| 130 | android:layout_height="60dp" | 135 | android:layout_height="60dp" |
| 131 | android:layout_marginLeft="80dp" | 136 | android:layout_marginLeft="80dp" |
| 132 | android:gravity="center_vertical"> | 137 | android:gravity="center_vertical"> |
| 133 | 138 | ||
| 134 | <TextView | 139 | <TextView |
| 135 | android:layout_width="wrap_content" | 140 | android:layout_width="wrap_content" |
| 136 | android:layout_height="wrap_content" | 141 | android:layout_height="wrap_content" |
| 137 | android:text="客户地址" | 142 | android:text="客户地址" |
| 138 | android:textSize="22sp" /> | 143 | android:textSize="22sp" /> |
| 139 | 144 | ||
| 140 | <TextView | 145 | <TextView |
| 146 | android:id="@+id/tv_card_adress" | ||
| 141 | android:layout_width="wrap_content" | 147 | android:layout_width="wrap_content" |
| 142 | android:layout_height="wrap_content" | 148 | android:layout_height="wrap_content" |
| 143 | android:layout_marginLeft="80dp" | 149 | android:layout_marginLeft="80dp" |
| 144 | android:background="@null" | 150 | android:background="@null" |
| 145 | android:text="北京市昭阳区三里屯" | 151 | android:text="北京市昭阳区三里屯" |
| 146 | android:textSize="22sp" /> | 152 | android:textSize="22sp" /> |
| 147 | 153 | ||
| 148 | </LinearLayout> | 154 | </LinearLayout> |
| 149 | 155 | ||
| 150 | </LinearLayout> | 156 | </LinearLayout> |
| 151 | 157 | ||
| 152 | <LinearLayout | 158 | <LinearLayout |
| 153 | android:layout_width="match_parent" | 159 | android:layout_width="match_parent" |
| 154 | android:layout_height="wrap_content" | 160 | android:layout_height="wrap_content" |
| 155 | android:gravity="center_vertical" | 161 | android:gravity="center_vertical" |
| 156 | android:orientation="horizontal"> | 162 | android:orientation="horizontal"> |
| 157 | 163 | ||
| 158 | <LinearLayout | 164 | <LinearLayout |
| 159 | android:layout_width="0dp" | 165 | android:layout_width="0dp" |
| 160 | android:layout_weight="1" | 166 | android:layout_weight="1" |
| 161 | android:layout_height="60dp" | 167 | android:layout_height="60dp" |
| 162 | android:layout_marginLeft="200dp" | 168 | android:layout_marginLeft="200dp" |
| 163 | android:gravity="center_vertical"> | 169 | android:gravity="center_vertical"> |
| 164 | 170 | ||
| 165 | <TextView | 171 | <TextView |
| 166 | android:layout_width="wrap_content" | 172 | android:layout_width="wrap_content" |
| 167 | android:layout_height="wrap_content" | 173 | android:layout_height="wrap_content" |
| 168 | android:text="MAC地址" | 174 | android:text="MAC地址" |
| 169 | android:textSize="22sp" /> | 175 | android:textSize="22sp" /> |
| 170 | 176 | ||
| 171 | <TextView | 177 | <TextView |
| 178 | android:id="@+id/tv_card_mac" | ||
| 172 | android:layout_width="wrap_content" | 179 | android:layout_width="wrap_content" |
| 173 | android:layout_height="wrap_content" | 180 | android:layout_height="wrap_content" |
| 174 | android:layout_marginLeft="50dp" | 181 | android:layout_marginLeft="50dp" |
| 175 | android:background="@null" | 182 | android:background="@null" |
| 176 | android:text="237462873463278" | 183 | android:text="237462873463278" |
| 177 | android:textSize="22sp" /> | 184 | android:textSize="22sp" /> |
| 178 | 185 | ||
| 179 | </LinearLayout> | 186 | </LinearLayout> |
| 180 | 187 | ||
| 181 | <LinearLayout | 188 | <LinearLayout |
| 182 | android:layout_width="0dp" | 189 | android:layout_width="0dp" |
| 183 | android:layout_weight="1" | 190 | android:layout_weight="1" |
| 184 | android:layout_height="60dp" | 191 | android:layout_height="60dp" |
| 185 | android:layout_marginLeft="80dp" | 192 | android:layout_marginLeft="80dp" |
| 186 | android:gravity="center_vertical"> | 193 | android:gravity="center_vertical"> |
| 187 | 194 | ||
| 188 | <TextView | 195 | <TextView |
| 189 | android:layout_width="wrap_content" | 196 | android:layout_width="wrap_content" |
| 190 | android:layout_height="wrap_content" | 197 | android:layout_height="wrap_content" |
| 191 | android:text="购买时间" | 198 | android:text="购买时间" |
| 192 | android:textColor="@color/btn_text_color" | 199 | android:textColor="@color/btn_text_color" |
| 193 | android:textSize="22sp" /> | 200 | android:textSize="22sp" /> |
| 194 | 201 | ||
| 195 | <TextView | 202 | <TextView |
| 203 | android:id="@+id/tv_card_time" | ||
| 196 | android:layout_width="wrap_content" | 204 | android:layout_width="wrap_content" |
| 197 | android:layout_height="wrap_content" | 205 | android:layout_height="wrap_content" |
| 198 | android:layout_marginLeft="80dp" | 206 | android:layout_marginLeft="80dp" |
| 199 | android:background="@null" | 207 | android:background="@null" |
| 200 | android:text="4433322-334--34" | 208 | android:text="4433322-334--34" |
| 201 | android:textColor="@color/btn_text_color" | 209 | android:textColor="@color/btn_text_color" |
| 202 | android:textSize="22sp" /> | 210 | android:textSize="22sp" /> |
| 203 | </LinearLayout> | 211 | </LinearLayout> |
| 204 | 212 | ||
| 205 | </LinearLayout> | 213 | </LinearLayout> |
| 206 | 214 | ||
| 207 | <LinearLayout | 215 | <LinearLayout |
| 208 | android:layout_width="match_parent" | 216 | android:layout_width="match_parent" |
| 209 | android:layout_height="wrap_content" | 217 | android:layout_height="wrap_content" |
| 210 | android:gravity="center_vertical" | 218 | android:gravity="center_vertical" |
| 211 | android:orientation="horizontal"> | 219 | android:orientation="horizontal"> |
| 212 | 220 | ||
| 213 | <LinearLayout | 221 | <LinearLayout |
| 214 | android:layout_width="0dp" | 222 | android:layout_width="0dp" |
| 215 | android:layout_weight="1" | 223 | android:layout_weight="1" |
| 216 | android:layout_height="60dp" | 224 | android:layout_height="60dp" |
| 217 | android:layout_marginLeft="200dp" | 225 | android:layout_marginLeft="200dp" |
| 218 | android:gravity="center_vertical"> | 226 | android:gravity="center_vertical"> |
| 219 | 227 | ||
| 220 | <TextView | 228 | <TextView |
| 221 | android:layout_width="wrap_content" | 229 | android:layout_width="wrap_content" |
| 222 | android:layout_height="wrap_content" | 230 | android:layout_height="wrap_content" |
| 223 | android:text="机身编码" | 231 | android:text="机身编码" |
| 224 | android:textColor="@color/btn_text_color" | 232 | android:textColor="@color/btn_text_color" |
| 225 | android:textSize="22sp" /> | 233 | android:textSize="22sp" /> |
| 226 | 234 | ||
| 227 | <TextView | 235 | <TextView |
| 236 | android:id="@+id/tv_card_deviceNumber" | ||
| 228 | android:layout_width="wrap_content" | 237 | android:layout_width="wrap_content" |
| 229 | android:layout_height="wrap_content" | 238 | android:layout_height="wrap_content" |
| 230 | android:layout_marginLeft="50dp" | 239 | android:layout_marginLeft="50dp" |
| 231 | android:hint="473463746343" | 240 | android:hint="473463746343" |
| 232 | android:textSize="22sp" /> | 241 | android:textSize="22sp" /> |
| 233 | 242 | ||
| 234 | </LinearLayout> | 243 | </LinearLayout> |
| 235 | 244 | ||
| 236 | <LinearLayout | 245 | <LinearLayout |
| 237 | android:layout_width="0dp" | 246 | android:layout_width="0dp" |
| 238 | android:layout_weight="1" | 247 | android:layout_weight="1" |
| 239 | android:layout_height="60dp" | 248 | android:layout_height="60dp" |
| 240 | android:layout_marginLeft="80dp" | 249 | android:layout_marginLeft="80dp" |
| 241 | android:gravity="center_vertical"> | 250 | android:gravity="center_vertical"> |
| 242 | 251 | ||
| 243 | <TextView | 252 | <TextView |
| 244 | android:layout_width="wrap_content" | 253 | android:layout_width="wrap_content" |
| 245 | android:layout_height="wrap_content" | 254 | android:layout_height="wrap_content" |
| 246 | android:text="购买地址" | 255 | android:text="购买地址" |
| 247 | android:textColor="@color/btn_text_color" | 256 | android:textColor="@color/btn_text_color" |
| 248 | android:textSize="22sp" /> | 257 | android:textSize="22sp" /> |
| 249 | 258 | ||
| 250 | <TextView | 259 | <TextView |
| 260 | android:id="@+id/tv_card_shopAdress" | ||
| 251 | android:layout_width="wrap_content" | 261 | android:layout_width="wrap_content" |
| 252 | android:layout_height="wrap_content" | 262 | android:layout_height="wrap_content" |
| 253 | android:layout_marginLeft="80dp" | 263 | android:layout_marginLeft="80dp" |
| 254 | android:text="啥啥啥 专卖店" | 264 | android:text="啥啥啥 专卖店" |
| 255 | android:textColor="@color/btn_text_color" | 265 | android:textColor="@color/btn_text_color" |
| 256 | android:textSize="22sp" /> | 266 | android:textSize="22sp" /> |
| 257 | </LinearLayout> | 267 | </LinearLayout> |
| 258 | 268 | ||
| 259 | </LinearLayout> | 269 | </LinearLayout> |
| 260 | 270 | ||
| 261 | <LinearLayout | 271 | <LinearLayout |
| 262 | android:layout_width="match_parent" | 272 | android:layout_width="match_parent" |
| 263 | android:layout_height="wrap_content" | 273 | android:layout_height="wrap_content" |
| 264 | android:gravity="center_vertical" | 274 | android:gravity="center_vertical" |
| 275 | android:layout_marginBottom="30dp" | ||
| 265 | android:orientation="horizontal"> | 276 | android:orientation="horizontal"> |
| 266 | 277 | ||
| 267 | <LinearLayout | 278 | <LinearLayout |
| 268 | android:layout_width="0dp" | 279 | android:layout_width="0dp" |
| 269 | android:layout_weight="1" | 280 | android:layout_weight="1" |
| 270 | android:layout_height="60dp" | 281 | android:layout_height="60dp" |
| 271 | android:layout_marginLeft="200dp" | 282 | android:layout_marginLeft="200dp" |
| 272 | android:gravity="center_vertical"> | 283 | android:gravity="center_vertical"> |
| 273 | 284 | ||
| 274 | <TextView | 285 | <TextView |
| 275 | android:layout_width="wrap_content" | 286 | android:layout_width="wrap_content" |
| 276 | android:layout_height="wrap_content" | 287 | android:layout_height="wrap_content" |
| 277 | android:text="手机号码" | 288 | android:text="手机号码" |
| 278 | android:textColor="@color/btn_text_color" | 289 | android:textColor="@color/btn_text_color" |
| 279 | android:textSize="22sp" /> | 290 | android:textSize="22sp" /> |
| 280 | 291 | ||
| 281 | <TextView | 292 | <TextView |
| 293 | android:id="@+id/tv_card_phone" | ||
| 282 | android:layout_width="wrap_content" | 294 | android:layout_width="wrap_content" |
| 283 | android:layout_height="wrap_content" | 295 | android:layout_height="wrap_content" |
| 284 | android:layout_marginLeft="50dp" | 296 | android:layout_marginLeft="50dp" |
| 285 | android:text="IPone888" | 297 | android:text="IPone888" |
| 286 | android:textSize="22sp" /> | 298 | android:textSize="22sp" /> |
| 287 | 299 | ||
| 288 | 300 | ||
| 289 | </LinearLayout> | 301 | </LinearLayout> |
| 290 | 302 | ||
| 291 | <LinearLayout | 303 | <LinearLayout |
| 292 | android:layout_width="0dp" | 304 | android:layout_width="0dp" |
| 293 | android:layout_weight="1" | 305 | android:layout_weight="1" |
| 294 | android:layout_height="60dp" | 306 | android:layout_height="60dp" |
| 295 | android:layout_marginLeft="80dp" | 307 | android:layout_marginLeft="80dp" |
| 296 | android:gravity="center_vertical"> | 308 | android:gravity="center_vertical"> |
| 297 | 309 | ||
| 298 | <TextView | 310 | <TextView |
| 299 | android:layout_width="wrap_content" | 311 | android:layout_width="wrap_content" |
| 300 | android:layout_height="wrap_content" | 312 | android:layout_height="wrap_content" |
| 301 | android:text="本地售后电话" | 313 | android:text="本地售后电话" |
| 302 | android:textSize="22sp" /> | 314 | android:textSize="22sp" /> |
| 303 | 315 | ||
| 304 | <TextView | 316 | <TextView |
| 317 | android:id="@+id/tv_card_tleNember" | ||
| 305 | android:layout_width="wrap_content" | 318 | android:layout_width="wrap_content" |
| 306 | android:layout_height="wrap_content" | 319 | android:layout_height="wrap_content" |
| 307 | android:layout_marginLeft="40dp" | 320 | android:layout_marginLeft="40dp" |
| 308 | android:background="@null" | 321 | android:background="@null" |
| 309 | android:text="1111111" | 322 | android:text="1111111" |
| 310 | android:textSize="22sp" /> | 323 | android:textSize="22sp" /> |
| 311 | 324 | ||
| 312 | </LinearLayout> | 325 | </LinearLayout> |
| 313 | 326 | ||
| 314 | </LinearLayout> | 327 | </LinearLayout> |
| 315 | </LinearLayout> | 328 | </LinearLayout> |
| 316 | 329 | ||
| 317 | <LinearLayout | 330 | <LinearLayout |
| 318 | android:layout_width="match_parent" | 331 | android:layout_width="match_parent" |
| 319 | android:layout_height="wrap_content" | 332 | android:layout_height="wrap_content" |
| 320 | android:layout_marginTop="5dp" | 333 | android:layout_marginTop="5dp" |
| 321 | android:gravity="center" | 334 | android:gravity="center" |
| 322 | android:orientation="vertical"> | 335 | android:orientation="vertical"> |
| 323 | 336 | ||
| 324 | <TextView | 337 | <TextView |
| 325 | android:layout_width="wrap_content" | 338 | android:layout_width="wrap_content" |
| 326 | android:layout_height="wrap_content" | 339 | android:layout_height="wrap_content" |
| 327 | android:layout_marginTop="5dp" | 340 | android:layout_marginTop="5dp" |
| 328 | android:text="@string/electronic_card3" | 341 | android:text="@string/electronic_card3" |
| 329 | android:textColor="@color/electronic_text" | 342 | android:textColor="@color/electronic_text" |
| 330 | android:textSize="18sp" /> | 343 | android:textSize="18sp" /> |
| 331 | 344 | ||
| 332 | <TextView | 345 | <TextView |
| 333 | android:layout_width="wrap_content" | 346 | android:layout_width="wrap_content" |
| 334 | android:layout_height="wrap_content" | 347 | android:layout_height="wrap_content" |
| 335 | android:layout_marginTop="5dp" | 348 | android:layout_marginTop="5dp" |
| 336 | android:text="@string/electronic_card4" | 349 | android:text="@string/electronic_card4" |
| 337 | android:textColor="@color/electronic_text" | 350 | android:textColor="@color/electronic_text" |
| 338 | android:textSize="18sp" /> | 351 | android:textSize="18sp" /> |
| 339 | 352 | ||
| 340 | 353 | ||
| 341 | </LinearLayout> | 354 | </LinearLayout> |
| 342 | 355 | ||
| 343 | <LinearLayout | 356 | <LinearLayout |
| 344 | android:layout_width="match_parent" | 357 | android:layout_width="match_parent" |
| 345 | android:layout_height="wrap_content" | 358 | android:layout_height="wrap_content" |
| 346 | android:layout_marginTop="30dp" | 359 | android:layout_marginTop="30dp" |
| 347 | android:gravity="center" | 360 | android:gravity="center" |
| 348 | android:orientation="horizontal"> | 361 | android:orientation="horizontal"> |
| 349 | 362 | ||
| 350 | <Button | 363 | <Button |
| 351 | android:id="@+id/btn_bangding" | 364 | android:id="@+id/btn_bangding" |
| 352 | android:layout_width="300dp" | 365 | android:layout_width="300dp" |
| 353 | android:layout_height="wrap_content" | 366 | android:layout_height="wrap_content" |
| 354 | android:background="@drawable/selector_blue_btn_bg" | 367 | android:background="@drawable/selector_blue_btn_bg" |
| 355 | android:text="@string/bangding" | 368 | android:text="@string/bangding" |
| 356 | android:textColor="@color/white" | 369 | android:textColor="@color/white" |
| 357 | android:textSize="23sp" /> | 370 | android:textSize="23sp" /> |
| 358 | 371 | ||
| 359 | <Button | 372 | <Button |
| 360 | android:id="@+id/btn_finish" | 373 | android:id="@+id/btn_finish" |
| 361 | android:layout_width="300dp" | 374 | android:layout_width="300dp" |
| 362 | android:layout_height="wrap_content" | 375 | android:layout_height="wrap_content" |
| 363 | android:layout_marginLeft="50dp" | 376 | android:layout_marginLeft="50dp" |
| 364 | android:background="@drawable/selector_blue_btn_bg" | 377 | android:background="@drawable/selector_blue_btn_bg" |
| 365 | android:text="@string/finish" | 378 | android:text="@string/finish" |
| 366 | android:textColor="@color/white" | 379 | android:textColor="@color/white" |
| 367 | android:textSize="23sp" /> | 380 | android:textSize="23sp" /> |
| 368 | 381 | ||
| 369 | 382 | ||
| 370 | </LinearLayout> | 383 | </LinearLayout> |
| 371 | 384 | ||
| 372 | 385 | ||
| 373 | </LinearLayout> | 386 | </LinearLayout> |