Commit e2a3b9fe1643c7f535c4d04a3630c8a00c1e8f07
1 parent
a115868f
全部成绩页面跳转
Showing
15 changed files
with
447 additions
and
1 deletions
moudle_pedometer/src/main/AndroidManifest.xml
| @@ -52,7 +52,8 @@ | @@ -52,7 +52,8 @@ | ||
| 52 | android:required="true" /> | 52 | android:required="true" /> |
| 53 | 53 | ||
| 54 | <application android:persistent="true"> | 54 | <application android:persistent="true"> |
| 55 | - <activity android:name="com.cnlive.moudle.pedometer.ui.activity.RegistrationInfoActivity"/> | 55 | + <activity android:name="com.cnlive.moudle.pedometer.ui.activity.RaceRecordActivity"></activity> |
| 56 | + <activity android:name="com.cnlive.moudle.pedometer.ui.activity.RegistrationInfoActivity" /> | ||
| 56 | 57 | ||
| 57 | <service | 58 | <service |
| 58 | android:name="com.baidu.location.f" | 59 | android:name="com.baidu.location.f" |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/presenter/RaceRecorPresenter.java
0 → 100644
| 1 | +package com.cnlive.moudle.pedometer.frame.presenter; | ||
| 2 | + | ||
| 3 | +import com.cnlive.moudle.pedometer.frame.view.RaceRecorView; | ||
| 4 | +import com.hannesdorfmann.mosby3.mvp.MvpBasePresenter; | ||
| 5 | + | ||
| 6 | +/** | ||
| 7 | + * Created by hanyayun 019/05/30. | ||
| 8 | + */ | ||
| 9 | +public class RaceRecorPresenter extends MvpBasePresenter<RaceRecorView> { | ||
| 10 | + | ||
| 11 | + public void getData(){ | ||
| 12 | + getView().setData(); | ||
| 13 | + } | ||
| 14 | +} |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/RaceRecorView.java
0 → 100644
| 1 | +package com.cnlive.moudle.pedometer.frame.view; | ||
| 2 | + | ||
| 3 | +import android.support.v7.widget.LinearLayoutManager; | ||
| 4 | +import android.view.View; | ||
| 5 | + | ||
| 6 | +import com.cnlive.libs.base.util.StatusBarUtil; | ||
| 7 | +import com.cnlive.moudle.pedometer.ui.adapter.RaceRecordAdapter; | ||
| 8 | +import com.cnlive.moudle.pedometer.ui.fragment.RaceRecorFragment; | ||
| 9 | +import com.example.moudle_pedometer.R; | ||
| 10 | +import com.hannesdorfmann.mosby3.mvp.MvpView; | ||
| 11 | + | ||
| 12 | +import java.util.ArrayList; | ||
| 13 | +import java.util.List; | ||
| 14 | + | ||
| 15 | +/** | ||
| 16 | + * Created by hanyayun 019/05/30. | ||
| 17 | + */ | ||
| 18 | +public class RaceRecorView implements MvpView { | ||
| 19 | + private RaceRecorFragment fragment; | ||
| 20 | + | ||
| 21 | + | ||
| 22 | + public RaceRecorView(RaceRecorFragment fragment) { | ||
| 23 | + this.fragment = fragment; | ||
| 24 | + } | ||
| 25 | + | ||
| 26 | + public void setData(){ | ||
| 27 | + List<String> raceRecordModels = new ArrayList<>(); | ||
| 28 | + raceRecordModels.add("0"); | ||
| 29 | + raceRecordModels.add("0"); | ||
| 30 | + raceRecordModels.add("0"); | ||
| 31 | + raceRecordModels.add("0"); | ||
| 32 | + fragment.binding.recordRecy.setLayoutManager(new LinearLayoutManager(fragment.getActivity())); | ||
| 33 | + fragment.binding.recordRecy.setAdapter(new RaceRecordAdapter(raceRecordModels,fragment.getActivity())); | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | + public void initView(){ | ||
| 37 | + fragment.binding.topbar.addLeftImageButton(R.drawable.top_back_black, R.id.fragment_back).setOnClickListener(v -> { | ||
| 38 | + fragment.getActivity().finish(); | ||
| 39 | + }); | ||
| 40 | + fragment.binding.topbar.setTitle("奥森跑道全部成绩"); | ||
| 41 | + fragment.binding.topbar.addRightImageButton(R.drawable.location_message, R.id.fragment_more) | ||
| 42 | + .setOnClickListener(v -> { | ||
| 43 | + //分享 | ||
| 44 | + | ||
| 45 | + }); | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | + private void showEmpty(){ | ||
| 49 | + fragment.binding.recordRecy.setVisibility(View.GONE); | ||
| 50 | + fragment.binding.empty.setVisibility(View.VISIBLE); | ||
| 51 | +// fragment.binding.empty.setImage(R.drawable.history_zw_zt); | ||
| 52 | + fragment.binding.empty.setLoadingShowing(false); | ||
| 53 | + fragment.binding.empty.setDetailText("当前还没有相关成绩哦~"); | ||
| 54 | + fragment.binding.empty.setTitleText("报名参加"); | ||
| 55 | + } | ||
| 56 | +} |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/RunRaceDetailFragmentView.java
| @@ -6,11 +6,13 @@ import android.util.Log; | @@ -6,11 +6,13 @@ import android.util.Log; | ||
| 6 | import android.view.View; | 6 | import android.view.View; |
| 7 | 7 | ||
| 8 | import com.cnlive.moudle.pedometer.ui.activity.PedometerMainActivity; | 8 | import com.cnlive.moudle.pedometer.ui.activity.PedometerMainActivity; |
| 9 | +import com.cnlive.moudle.pedometer.ui.activity.RaceRecordActivity; | ||
| 9 | import com.cnlive.moudle.pedometer.ui.activity.RegistrationInfoActivity; | 10 | import com.cnlive.moudle.pedometer.ui.activity.RegistrationInfoActivity; |
| 10 | import com.cnlive.moudle.pedometer.ui.activity.RunningMapActivity; | 11 | import com.cnlive.moudle.pedometer.ui.activity.RunningMapActivity; |
| 11 | import com.cnlive.moudle.pedometer.ui.fragment.RunMainFragment; | 12 | import com.cnlive.moudle.pedometer.ui.fragment.RunMainFragment; |
| 12 | import com.cnlive.moudle.pedometer.ui.fragment.RunRaceDetailFragment; | 13 | import com.cnlive.moudle.pedometer.ui.fragment.RunRaceDetailFragment; |
| 13 | import com.cnlive.moudle.pedometer.utils.ScreenUtil; | 14 | import com.cnlive.moudle.pedometer.utils.ScreenUtil; |
| 15 | +import com.example.moudle_pedometer.R; | ||
| 14 | import com.hannesdorfmann.mosby3.mvp.MvpView; | 16 | import com.hannesdorfmann.mosby3.mvp.MvpView; |
| 15 | import com.sothree.slidinguppanel.SlidingUpPanelLayout; | 17 | import com.sothree.slidinguppanel.SlidingUpPanelLayout; |
| 16 | 18 | ||
| @@ -105,5 +107,9 @@ public class RunRaceDetailFragmentView implements MvpView { | @@ -105,5 +107,9 @@ public class RunRaceDetailFragmentView implements MvpView { | ||
| 105 | } | 107 | } |
| 106 | } | 108 | } |
| 107 | }); | 109 | }); |
| 110 | + | ||
| 111 | + fragment.binding.includePersonScore.findViewById(R.id.check_all_cord).setOnClickListener(v -> { | ||
| 112 | + RaceRecordActivity.newInstance(fragment.getActivity()); | ||
| 113 | + }); | ||
| 108 | } | 114 | } |
| 109 | } | 115 | } |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/ui/activity/RaceRecordActivity.java
0 → 100644
| 1 | +package com.cnlive.moudle.pedometer.ui.activity; | ||
| 2 | + | ||
| 3 | +import android.app.Activity; | ||
| 4 | +import android.content.Intent; | ||
| 5 | +import android.support.v7.app.AppCompatActivity; | ||
| 6 | +import android.os.Bundle; | ||
| 7 | + | ||
| 8 | +import com.cnlive.libs.base.util.StatusBarUtil; | ||
| 9 | +import com.cnlive.libs.base.util.StatusBarUtil2; | ||
| 10 | +import com.cnlive.moudle.pedometer.ui.fragment.RaceRecorFragment; | ||
| 11 | +import com.example.moudle_pedometer.R; | ||
| 12 | + | ||
| 13 | +/** | ||
| 14 | + * 全部成绩 | ||
| 15 | + * Created by hanyayun 019/05/30. | ||
| 16 | + */ | ||
| 17 | +public class RaceRecordActivity extends AppCompatActivity { | ||
| 18 | + public static void newInstance(Activity context){ | ||
| 19 | + Intent intent = new Intent(context,RaceRecordActivity.class); | ||
| 20 | + context.startActivity(intent); | ||
| 21 | + } | ||
| 22 | + | ||
| 23 | + @Override | ||
| 24 | + protected void onCreate(Bundle savedInstanceState) { | ||
| 25 | + super.onCreate(savedInstanceState); | ||
| 26 | + StatusBarUtil.setStatusBarWrite(this); | ||
| 27 | + StatusBarUtil2.setColor(this, getResources().getColor(R.color.color_fff), 0); | ||
| 28 | + setContentView(R.layout.activity_race_record); | ||
| 29 | + | ||
| 30 | + getSupportFragmentManager().beginTransaction().replace(R.id.record_container, new RaceRecorFragment()).commit(); | ||
| 31 | + } | ||
| 32 | +} |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/ui/adapter/RaceRecordAdapter.java
0 → 100644
| 1 | +package com.cnlive.moudle.pedometer.ui.adapter; | ||
| 2 | + | ||
| 3 | + | ||
| 4 | +import android.content.Context; | ||
| 5 | +import android.support.annotation.NonNull; | ||
| 6 | +import android.support.v7.widget.RecyclerView; | ||
| 7 | +import android.view.LayoutInflater; | ||
| 8 | +import android.view.View; | ||
| 9 | +import android.view.ViewGroup; | ||
| 10 | +import android.widget.ImageView; | ||
| 11 | +import android.widget.TextView; | ||
| 12 | + | ||
| 13 | + | ||
| 14 | +import com.example.moudle_pedometer.R; | ||
| 15 | + | ||
| 16 | +import java.util.List; | ||
| 17 | + | ||
| 18 | +public class RaceRecordAdapter extends RecyclerView.Adapter<RaceRecordAdapter.MyHolder> { | ||
| 19 | + | ||
| 20 | + private List<String> list; | ||
| 21 | + private Context context; | ||
| 22 | + | ||
| 23 | + public RaceRecordAdapter(List<String> list, Context context) { | ||
| 24 | + this.list = list; | ||
| 25 | + this.context = context; | ||
| 26 | + } | ||
| 27 | + | ||
| 28 | + @NonNull | ||
| 29 | + @Override | ||
| 30 | + public MyHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) { | ||
| 31 | + View view = LayoutInflater.from(context).inflate(R.layout.item_race_record,viewGroup,false); | ||
| 32 | + return new MyHolder(view); | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | + @Override | ||
| 36 | + public void onBindViewHolder(@NonNull MyHolder myHolder, int i) { | ||
| 37 | + | ||
| 38 | + } | ||
| 39 | + | ||
| 40 | + @Override | ||
| 41 | + public int getItemCount() { | ||
| 42 | + return list.size(); | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + class MyHolder extends RecyclerView.ViewHolder{ | ||
| 46 | + | ||
| 47 | + TextView record_time; | ||
| 48 | + ImageView item_img; | ||
| 49 | + TextView record_foot; | ||
| 50 | + TextView item_time; | ||
| 51 | + TextView record_kli; | ||
| 52 | + TextView record_minit; | ||
| 53 | + TextView record_speed; | ||
| 54 | + TextView record_get; | ||
| 55 | + | ||
| 56 | + public MyHolder(@NonNull View itemView) { | ||
| 57 | + super(itemView); | ||
| 58 | + record_time = itemView.findViewById(R.id.record_time); | ||
| 59 | + item_img = itemView.findViewById(R.id.item_img); | ||
| 60 | + record_foot = itemView.findViewById(R.id.record_foot); | ||
| 61 | + item_time = itemView.findViewById(R.id.item_time); | ||
| 62 | + record_kli = itemView.findViewById(R.id.record_kli); | ||
| 63 | + record_minit = itemView.findViewById(R.id.record_minit); | ||
| 64 | + record_speed = itemView.findViewById(R.id.record_speed); | ||
| 65 | + record_get = itemView.findViewById(R.id.record_get); | ||
| 66 | + } | ||
| 67 | + } | ||
| 68 | +} |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/ui/fragment/RaceRecorFragment.java
0 → 100644
| 1 | +package com.cnlive.moudle.pedometer.ui.fragment; | ||
| 2 | + | ||
| 3 | + | ||
| 4 | +import android.os.Bundle; | ||
| 5 | +import android.support.annotation.Nullable; | ||
| 6 | +import android.view.View; | ||
| 7 | + | ||
| 8 | +import com.cnlive.libs.base.frame.fragment.MvpBindingFragment; | ||
| 9 | +import com.cnlive.moudle.pedometer.frame.presenter.RaceRecorPresenter; | ||
| 10 | +import com.cnlive.moudle.pedometer.frame.view.RaceRecorView; | ||
| 11 | +import com.example.moudle_pedometer.R; | ||
| 12 | +import com.example.moudle_pedometer.databinding.FragmentRaceRecorBinding; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * Created by hanyayun 019/05/30. | ||
| 16 | + */ | ||
| 17 | +public class RaceRecorFragment extends MvpBindingFragment<RaceRecorView, RaceRecorPresenter,Object, FragmentRaceRecorBinding> { | ||
| 18 | + | ||
| 19 | + | ||
| 20 | + public RaceRecorFragment() { | ||
| 21 | + // Required empty public constructor | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + | ||
| 25 | + @Override | ||
| 26 | + public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { | ||
| 27 | + super.onViewCreated(view, savedInstanceState); | ||
| 28 | + if(getMvpView() != null) getMvpView().initView(); | ||
| 29 | + getPresenter().getData(); | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + @Override | ||
| 33 | + protected int getLayoutId() { | ||
| 34 | + return R.layout.fragment_race_recor; | ||
| 35 | + } | ||
| 36 | + | ||
| 37 | +} |
moudle_pedometer/src/main/res/drawable-hdpi/defaults.png
0 → 100644
15.8 KB
moudle_pedometer/src/main/res/drawable-hdpi/icon_search.png
0 → 100644
1.12 KB
moudle_pedometer/src/main/res/drawable-hdpi/location_message.png
0 → 100644
270 Bytes
moudle_pedometer/src/main/res/layout/activity_race_record.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + android:layout_width="match_parent" | ||
| 6 | + android:layout_height="match_parent" | ||
| 7 | + tools:context="com.cnlive.moudle.pedometer.ui.activity.RaceRecordActivity"> | ||
| 8 | + | ||
| 9 | + <RelativeLayout | ||
| 10 | + android:id="@+id/record_container" | ||
| 11 | + android:layout_width="match_parent" | ||
| 12 | + android:layout_height="match_parent"/> | ||
| 13 | +</RelativeLayout> |
moudle_pedometer/src/main/res/layout/fragment_race_recor.xml
0 → 100644
| 1 | +<layout xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 2 | + | ||
| 3 | + <LinearLayout | ||
| 4 | + android:layout_width="match_parent" | ||
| 5 | + android:layout_height="match_parent" | ||
| 6 | + android:background="@color/white" | ||
| 7 | + android:orientation="vertical"> | ||
| 8 | + | ||
| 9 | + <com.qmuiteam.qmui.widget.QMUITopBar | ||
| 10 | + android:id="@+id/topbar" | ||
| 11 | + android:layout_width="match_parent" | ||
| 12 | + android:layout_height="?attr/qmui_topbar_height" /> | ||
| 13 | + | ||
| 14 | + <RelativeLayout | ||
| 15 | + android:layout_width="match_parent" | ||
| 16 | + android:layout_height="wrap_content" | ||
| 17 | + android:layout_marginTop="20dp" | ||
| 18 | + android:layout_marginLeft="10dp" | ||
| 19 | + android:layout_marginRight="10dp" | ||
| 20 | + android:background="#6CE0B6" | ||
| 21 | + android:padding="20dp"> | ||
| 22 | + | ||
| 23 | + <TextView | ||
| 24 | + android:id="@+id/tv_pr" | ||
| 25 | + android:layout_width="wrap_content" | ||
| 26 | + android:layout_height="wrap_content" | ||
| 27 | + android:text="个人最佳成绩" /> | ||
| 28 | + | ||
| 29 | + <LinearLayout | ||
| 30 | + android:id="@+id/kilometer_ly" | ||
| 31 | + android:layout_width="wrap_content" | ||
| 32 | + android:layout_height="wrap_content" | ||
| 33 | + android:layout_below="@id/tv_pr" | ||
| 34 | + android:layout_marginTop="10dp" | ||
| 35 | + android:orientation="vertical"> | ||
| 36 | + | ||
| 37 | + <TextView | ||
| 38 | + android:id="@+id/kilometer" | ||
| 39 | + android:layout_width="wrap_content" | ||
| 40 | + android:layout_height="wrap_content" | ||
| 41 | + android:text="1.53" /> | ||
| 42 | + | ||
| 43 | + <TextView | ||
| 44 | + android:layout_width="wrap_content" | ||
| 45 | + android:layout_height="wrap_content" | ||
| 46 | + android:layout_below="@id/kilometer" | ||
| 47 | + android:layout_marginTop="2dp" | ||
| 48 | + android:text="@string/kilometer" /> | ||
| 49 | + </LinearLayout> | ||
| 50 | + | ||
| 51 | + | ||
| 52 | + <LinearLayout | ||
| 53 | + android:id="@+id/foot_ly" | ||
| 54 | + android:layout_width="wrap_content" | ||
| 55 | + android:layout_height="wrap_content" | ||
| 56 | + android:layout_below="@id/tv_pr" | ||
| 57 | + android:layout_marginLeft="20dp" | ||
| 58 | + android:layout_marginTop="10dp" | ||
| 59 | + android:layout_toRightOf="@id/kilometer_ly" | ||
| 60 | + android:orientation="vertical"> | ||
| 61 | + | ||
| 62 | + <TextView | ||
| 63 | + android:id="@+id/foot" | ||
| 64 | + android:layout_width="wrap_content" | ||
| 65 | + android:layout_height="wrap_content" | ||
| 66 | + android:text="1234" /> | ||
| 67 | + | ||
| 68 | + <TextView | ||
| 69 | + android:layout_width="wrap_content" | ||
| 70 | + android:layout_height="wrap_content" | ||
| 71 | + android:layout_gravity="center" | ||
| 72 | + android:layout_marginTop="2dp" | ||
| 73 | + android:text="@string/foot" /> | ||
| 74 | + </LinearLayout> | ||
| 75 | + | ||
| 76 | + <LinearLayout | ||
| 77 | + android:layout_width="wrap_content" | ||
| 78 | + android:layout_height="wrap_content" | ||
| 79 | + android:layout_below="@id/tv_pr" | ||
| 80 | + android:layout_marginLeft="20dp" | ||
| 81 | + android:layout_marginTop="10dp" | ||
| 82 | + android:layout_toRightOf="@id/foot_ly" | ||
| 83 | + android:orientation="vertical"> | ||
| 84 | + | ||
| 85 | + <TextView | ||
| 86 | + android:id="@+id/kilometer_time" | ||
| 87 | + android:layout_width="wrap_content" | ||
| 88 | + android:layout_height="wrap_content" | ||
| 89 | + android:text="00:27:23" /> | ||
| 90 | + | ||
| 91 | + <TextView | ||
| 92 | + android:layout_width="wrap_content" | ||
| 93 | + android:layout_height="wrap_content" | ||
| 94 | + android:layout_gravity="center" | ||
| 95 | + android:layout_marginTop="2dp" | ||
| 96 | + android:text="@string/kilometer" /> | ||
| 97 | + </LinearLayout> | ||
| 98 | + </RelativeLayout> | ||
| 99 | + | ||
| 100 | + <TextView | ||
| 101 | + android:layout_width="wrap_content" | ||
| 102 | + android:layout_height="wrap_content" | ||
| 103 | + android:layout_marginLeft="10dp" | ||
| 104 | + android:layout_marginTop="20dp" | ||
| 105 | + android:text="@string/all_line_record" /> | ||
| 106 | + | ||
| 107 | + <android.support.v7.widget.RecyclerView | ||
| 108 | + android:id="@+id/record_recy" | ||
| 109 | + android:layout_width="match_parent" | ||
| 110 | + android:layout_height="match_parent" | ||
| 111 | + android:background="@color/white" | ||
| 112 | + android:layout_marginTop="10dp"/> | ||
| 113 | + | ||
| 114 | + <com.cnlive.strike.ui.widget.UIEmptyView | ||
| 115 | + android:id="@+id/empty" | ||
| 116 | + android:layout_width="match_parent" | ||
| 117 | + android:layout_height="match_parent" | ||
| 118 | + android:visibility="gone" /> | ||
| 119 | + </LinearLayout> | ||
| 120 | +</layout> | ||
| 121 | + |
moudle_pedometer/src/main/res/layout/item_race_record.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<layout xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + | ||
| 4 | + <data> | ||
| 5 | + | ||
| 6 | + </data> | ||
| 7 | + <RelativeLayout | ||
| 8 | + android:layout_width="match_parent" | ||
| 9 | + android:layout_height="wrap_content" | ||
| 10 | + android:padding="10dp"> | ||
| 11 | + | ||
| 12 | + <TextView | ||
| 13 | + android:id="@+id/record_time" | ||
| 14 | + android:layout_width="wrap_content" | ||
| 15 | + android:layout_height="wrap_content" | ||
| 16 | + android:text="5月1日" /> | ||
| 17 | + | ||
| 18 | + <TextView | ||
| 19 | + android:id="@+id/record_foot" | ||
| 20 | + android:layout_width="wrap_content" | ||
| 21 | + android:layout_height="wrap_content" | ||
| 22 | + android:layout_alignParentRight="true" | ||
| 23 | + android:drawableLeft="@drawable/icon_search" | ||
| 24 | + android:drawablePadding="5dp" | ||
| 25 | + android:text="1234" /> | ||
| 26 | + | ||
| 27 | + <LinearLayout | ||
| 28 | + android:layout_width="match_parent" | ||
| 29 | + android:layout_height="100dp" | ||
| 30 | + android:layout_below="@id/record_time" | ||
| 31 | + android:layout_marginTop="10dp" | ||
| 32 | + android:orientation="horizontal"> | ||
| 33 | + | ||
| 34 | + <ImageView | ||
| 35 | + android:id="@+id/item_img" | ||
| 36 | + android:layout_width="100dp" | ||
| 37 | + android:layout_height="100dp" | ||
| 38 | + android:src="@drawable/defaults" /> | ||
| 39 | + | ||
| 40 | + <RelativeLayout | ||
| 41 | + android:layout_width="match_parent" | ||
| 42 | + android:layout_height="100dp" | ||
| 43 | + android:layout_marginLeft="15dp"> | ||
| 44 | + | ||
| 45 | + <TextView | ||
| 46 | + android:id="@+id/item_time" | ||
| 47 | + android:layout_width="wrap_content" | ||
| 48 | + android:layout_height="wrap_content" | ||
| 49 | + android:text="15:30" /> | ||
| 50 | + | ||
| 51 | + <TextView | ||
| 52 | + android:id="@+id/record_kli" | ||
| 53 | + android:layout_width="wrap_content" | ||
| 54 | + android:layout_height="wrap_content" | ||
| 55 | + android:layout_centerVertical="true" | ||
| 56 | + android:text="1.23公里" | ||
| 57 | + android:textSize="25sp" /> | ||
| 58 | + | ||
| 59 | + <LinearLayout | ||
| 60 | + android:layout_width="wrap_content" | ||
| 61 | + android:layout_height="wrap_content" | ||
| 62 | + android:layout_alignParentBottom="true"> | ||
| 63 | + | ||
| 64 | + <TextView | ||
| 65 | + android:id="@+id/record_minit" | ||
| 66 | + android:layout_width="wrap_content" | ||
| 67 | + android:layout_height="wrap_content" | ||
| 68 | + android:drawableRight="@drawable/icon_search" | ||
| 69 | + android:drawablePadding="5dp" | ||
| 70 | + android:text="00:27:23" /> | ||
| 71 | + | ||
| 72 | + <TextView | ||
| 73 | + android:id="@+id/record_speed" | ||
| 74 | + android:layout_width="wrap_content" | ||
| 75 | + android:layout_height="wrap_content" | ||
| 76 | + android:layout_marginLeft="20dp" | ||
| 77 | + android:drawableRight="@drawable/icon_search" | ||
| 78 | + android:drawablePadding="5dp" | ||
| 79 | + android:text="2m/s" /> | ||
| 80 | + | ||
| 81 | + <TextView | ||
| 82 | + android:id="@+id/record_get" | ||
| 83 | + android:layout_width="wrap_content" | ||
| 84 | + android:layout_height="wrap_content" | ||
| 85 | + android:layout_marginLeft="20dp" | ||
| 86 | + android:drawableRight="@drawable/icon_search" | ||
| 87 | + android:drawablePadding="5dp" | ||
| 88 | + android:text="30" /> | ||
| 89 | + </LinearLayout> | ||
| 90 | + </RelativeLayout> | ||
| 91 | + </LinearLayout> | ||
| 92 | + | ||
| 93 | + </RelativeLayout> | ||
| 94 | +</layout> |
moudle_pedometer/src/main/res/layout/layout_run_detail_person_score.xml
| @@ -31,6 +31,7 @@ | @@ -31,6 +31,7 @@ | ||
| 31 | android:textStyle="bold" /> | 31 | android:textStyle="bold" /> |
| 32 | 32 | ||
| 33 | <TextView | 33 | <TextView |
| 34 | + android:id="@+id/check_all_cord" | ||
| 34 | android:layout_width="wrap_content" | 35 | android:layout_width="wrap_content" |
| 35 | android:layout_height="wrap_content" | 36 | android:layout_height="wrap_content" |
| 36 | android:layout_marginRight="10dp" | 37 | android:layout_marginRight="10dp" |
moudle_pedometer/src/main/res/values/strings.xml
| @@ -24,4 +24,7 @@ | @@ -24,4 +24,7 @@ | ||
| 24 | <string name="record_time">活动时间:</string> | 24 | <string name="record_time">活动时间:</string> |
| 25 | <string name="record_place">活动地点</string> | 25 | <string name="record_place">活动地点</string> |
| 26 | 26 | ||
| 27 | + <!-- TODO: Remove or change this placeholder text --> | ||
| 28 | + <string name="hello_blank_fragment">Hello blank fragment</string> | ||
| 29 | + | ||
| 27 | </resources> | 30 | </resources> |