[2110] 任务列表样式修改
This commit is contained in:
@@ -155,7 +155,7 @@ public class BusSwitchLineActivity extends MvpActivity<BusSwitchLineView, BusLin
|
||||
for (int i=0; i<mData.size();i++){
|
||||
if (mData.get(i).choose == 1){
|
||||
mLineCommitBtn.setBackgroundResource(R.drawable.bus_switch_line_btn_commit);
|
||||
mLineCommitBtn.setTextColor(getResources().getColor(R.color.bus_white));
|
||||
mLineCommitBtn.setTextColor(getResources().getColor(android.R.color.white));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ public class SwitchLineTaskAdapter extends RecyclerView.Adapter<SwitchLineTaskAd
|
||||
public void onBindViewHolder(@NonNull SwitchLineTaskViewHolder holder, int position) {
|
||||
int currentPosition = holder.getBindingAdapterPosition();
|
||||
BusQueryLinesResponse.Result line = mData.get(currentPosition);
|
||||
holder.lineTask.setText(line.name);
|
||||
holder.lineTask.setText("13:40");
|
||||
holder.lineTask.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
||||
@@ -1,16 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
|
||||
<corners android:radius="60px"/>
|
||||
|
||||
<gradient
|
||||
android:angle="0"
|
||||
android:type="linear"
|
||||
android:startColor="#029DFF"
|
||||
android:endColor="#0056FF" />
|
||||
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="24px" />
|
||||
<gradient
|
||||
android:angle="0"
|
||||
android:endColor="#0056FF"
|
||||
android:startColor="#029DFF"
|
||||
android:type="linear" />
|
||||
</shape>
|
||||
@@ -1,16 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
|
||||
<corners android:radius="60px"/>
|
||||
|
||||
<gradient
|
||||
android:angle="0"
|
||||
android:type="linear"
|
||||
android:startColor="#11457C"
|
||||
android:endColor="#102F7C" />
|
||||
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -50,18 +50,19 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/switch_line_btn_commit"
|
||||
android:layout_width="@dimen/bus_switch_line_btn_width"
|
||||
android:layout_height="@dimen/bus_switch_line_btn_height"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginStart="@dimen/dp_80"
|
||||
android:layout_marginEnd="@dimen/dp_80"
|
||||
android:layout_height="126px"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:layout_marginBottom="@dimen/bus_switch_line_btn_margin_b"
|
||||
android:textSize="@dimen/dp_42"
|
||||
android:textColor="@color/bus_switch_btn_bg_half"
|
||||
android:textColor="@android:color/white"
|
||||
android:text="@string/bus_switch_line_btn_txt"
|
||||
android:visibility="gone"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/bus_switch_line_btn_un_commit"/>
|
||||
android:background="@drawable/bus_switch_line_btn_commit"/>
|
||||
<include
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
Reference in New Issue
Block a user