898
|
899
|
detail_picnum = (TextView) v.findViewById(R.id.detail_picnum);
|
|
@ -931,6 +932,9 @@ public class DetailsFragment extends Fragment implements View.OnClickListener, O
|
931
|
932
|
iv_new_icon = (CircleImageView) v.findViewById(R.id.iv_new_icon);
|
932
|
933
|
ll_yunyingshang = (LinearLayout) v.findViewById(R.id.ll_yunyingshang);
|
933
|
934
|
view_789 = v.findViewById(R.id.view_789);
|
|
935
|
scan_charge_btn = v.findViewById(R.id.scan_charge_btn);
|
|
936
|
scan_charge_btn.setOnClickListener(this);
|
|
937
|
scan_charge_space = v.findViewById(R.id.scan_charge_space);
|
934
|
938
|
}
|
935
|
939
|
|
936
|
940
|
@Override
|
|
@ -969,6 +973,11 @@ public class DetailsFragment extends Fragment implements View.OnClickListener, O
|
969
|
973
|
MobclickAgent.onEvent(getActivity(), "0209");
|
970
|
974
|
startActivity(new Intent(getActivity(), ChargingQianDaoActivity.class));
|
971
|
975
|
break;
|
|
976
|
case R.id.scan_charge_btn:
|
|
977
|
if (detailsFragmentListener != null) {
|
|
978
|
detailsFragmentListener.scanCharge();
|
|
979
|
}
|
|
980
|
break;
|
972
|
981
|
}
|
973
|
982
|
}
|
974
|
983
|
|
|
@ -1501,6 +1510,8 @@ public class DetailsFragment extends Fragment implements View.OnClickListener, O
|
1501
|
1510
|
|
1502
|
1511
|
public interface OnDetailsFragmentListener {
|
1503
|
1512
|
void updateScanCharge(String ownPay);
|
|
1513
|
|
|
1514
|
void scanCharge();
|
1504
|
1515
|
}
|
1505
|
1516
|
|
1506
|
1517
|
public void setOnUpdateScanChargeFragmentListener(OnDetailsFragmentListener listener) {
|
|
@ -827,6 +827,24 @@
|
827
|
827
|
|
828
|
828
|
</RelativeLayout>
|
829
|
829
|
|
|
830
|
<Space
|
|
831
|
android:id="@+id/scan_charge_space"
|
|
832
|
android:layout_width="match_parent"
|
|
833
|
android:layout_height="110dp"
|
|
834
|
android:visibility="gone"
|
|
835
|
tools:visibility="visible" />
|
830
|
836
|
</LinearLayout>
|
831
|
837
|
</com.electric.chargingpile.view.CustomScrollView>
|
|
838
|
|
|
839
|
<ImageView
|
|
840
|
android:id="@+id/scan_charge_btn"
|
|
841
|
android:layout_width="wrap_content"
|
|
842
|
android:layout_height="wrap_content"
|
|
843
|
android:layout_marginRight="15dp"
|
|
844
|
android:layout_marginBottom="15dp"
|
|
845
|
android:src="@drawable/scan_charge_btn"
|
|
846
|
android:visibility="gone"
|
|
847
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
848
|
app:layout_constraintRight_toRightOf="parent"
|
|
849
|
tools:visibility="visible" />
|
832
|
850
|
</androidx.constraintlayout.widget.ConstraintLayout>
|