Commit 9585abad authored by Romain Hunault's avatar Romain Hunault

init commit

parent 639a5a15
File mode changed from 100755 to 100644
......@@ -19,7 +19,6 @@ import android.support.v7.widget.Toolbar;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import org.asdtm.goodweather.service.CurrentWeatherService;
import org.asdtm.goodweather.utils.Utils;
......@@ -104,34 +103,10 @@ public class BaseActivity extends AppCompatActivity {
case R.id.nav_menu_current_weather:
startActivity(new Intent(BaseActivity.this, MainActivity.class));
break;
case R.id.nav_menu_graphs:
createBackStack(new Intent(BaseActivity.this,
GraphsActivity.class));
break;
case R.id.nav_menu_weather_forecast:
createBackStack(new Intent(BaseActivity.this,
WeatherForecastActivity.class));
break;
case R.id.nav_settings:
createBackStack(new Intent(BaseActivity.this,
SettingsActivity.class));
break;
case R.id.nav_feedback:
Intent sendMessage = new Intent(Intent.ACTION_SEND);
sendMessage.setType("message/rfc822");
sendMessage.putExtra(Intent.EXTRA_EMAIL, new String[]{
getResources().getString(R.string.feedback_email)});
try {
startActivity(Intent.createChooser(sendMessage, "Send feedback"));
} catch (android.content.ActivityNotFoundException e) {
Toast.makeText(BaseActivity.this, "Communication app not found",
Toast.LENGTH_SHORT).show();
}
break;
case R.id.nav_menu_bitcoin_donation:
BitcoinDonationDialog dialog = BitcoinDonationDialog.newInstance();
dialog.show(getFragmentManager(), "bitcoinDonationDialog");
break;
}
mDrawerLayout.closeDrawer(GravityCompat.START);
......
......@@ -155,6 +155,13 @@
android:orientation="vertical"
android:padding="@dimen/activity_vertical_margin">
<android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/forecast.recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"></android.support.v7.widget.RecyclerView>
<LinearLayout
style="@style/MainLinearLayout"
android:layout_width="match_parent"
......
......@@ -5,14 +5,6 @@
android:id="@+id/nav_menu_current_weather"
android:icon="@drawable/ic_current_weather_black_24dp"
android:title="@string/nav_menu_current_weather"/>
<item
android:id="@+id/nav_menu_graphs"
android:icon="@drawable/ic_graphs_black_32dp"
android:title="@string/nav_menu_graphs"/>
<item
android:id="@+id/nav_menu_weather_forecast"
android:icon="@drawable/ic_daily_forecast_dark_24dp"
android:title="@string/nav_menu_daily_forecast"/>
</group>
<group
android:id="@+id/nav_menu_communication"
......@@ -21,13 +13,5 @@
android:id="@+id/nav_settings"
android:icon="@drawable/ic_menu_settings"
android:title="@string/nav_menu_settings"/>
<item
android:id="@+id/nav_feedback"
android:icon="@drawable/ic_feedback"
android:title="@string/nav_feedback"/>
<item
android:id="@+id/nav_menu_bitcoin_donation"
android:icon="@drawable/ic_thumb_up_black_24dp"
android:title="@string/nav_menu_bitcoin_donation"/>
</group>
</menu>
\ No newline at end of file
</menu>
#Fri Mar 03 15:30:50 MSK 2017
#Fri May 11 19:02:39 IST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
File mode changed from 100755 to 100644
@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
@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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment