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) {

BIN
app/src/main/res/drawable-hdpi/scan_charge_btn.png


BIN
app/src/main/res/drawable-mdpi/scan_charge_btn.png


BIN
app/src/main/res/drawable-xhdpi/scan_charge_btn.png


BIN
app/src/main/res/drawable-xxhdpi/scan_charge_btn.png


BIN
app/src/main/res/drawable-xxxhdpi/scan_charge_btn.png


+ 18 - 0
app/src/main/res/layout/fragmen_details_new.xml

@ -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>

cdzApp - Gogs: Go Git Service

充电桩app代码

gradlew.bat 2.3KB

    @if "%DEBUG%" == "" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @rem @rem ########################################################################## @rem Set local scope for the variables with windows NT shell if "%OS%"=="Windows_NT" setlocal @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. set DEFAULT_JVM_OPTS= set DIRNAME=%~dp0 if "%DIRNAME%" == "" set DIRNAME=. set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if "%ERRORLEVEL%" == "0" goto init echo. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :findJavaFromJavaHome set JAVA_HOME=%JAVA_HOME:"=% set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto init echo. echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :init @rem Get command-line arguments, handling Windowz variants if not "%OS%" == "Windows_NT" goto win9xME_args if "%@eval[2+2]" == "4" goto 4NT_args :win9xME_args @rem Slurp the command line arguments. set CMD_LINE_ARGS= set _SKIP=2 :win9xME_args_slurp if "x%~1" == "x" goto execute set CMD_LINE_ARGS=%* goto execute :4NT_args @rem Get arguments from the 4NT Shell from JP Software set CMD_LINE_ARGS=%$ :execute @rem Setup the command line set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar @rem Execute Gradle "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% :end @rem End local scope for the variables with windows NT shell if "%ERRORLEVEL%"=="0" goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 exit /b 1 :mainEnd if "%OS%"=="Windows_NT" endlocal :omega