Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelf03kai committed Jan 6, 2024
2 parents 3816b23 + 5ee2fb3 commit 2e2b39a
Show file tree
Hide file tree
Showing 10 changed files with 94 additions and 206 deletions.
1 change: 0 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<!--<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />-->

<application
android:allowBackup="true"
Expand Down
Binary file removed app/src/main/ic_no_connection-web.png
Binary file not shown.
247 changes: 94 additions & 153 deletions app/src/main/java/com/miguelf03kai/weatherapp/MainActivity.java

Large diffs are not rendered by default.

This file was deleted.

36 changes: 0 additions & 36 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,40 +168,4 @@

</RelativeLayout>

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/noConnectionRelativeLayout"
android:visibility="gone">

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView"
android:background="@mipmap/ic_no_connection"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
android:minHeight="80dp"
android:minWidth="80dp" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Please check your connection!"
android:id="@+id/textView2"
android:layout_below="@+id/imageView"
android:layout_centerHorizontal="true"
android:textColor="#ffffff" />

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Try Again"
android:id="@+id/button"
android:layout_below="@+id/textView2"
android:layout_centerHorizontal="true"
android:layout_marginTop="48dp" />
</RelativeLayout>

</RelativeLayout>
Binary file removed app/src/main/res/mipmap-hdpi/ic_no_connection.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-mdpi/ic_no_connection.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xhdpi/ic_no_connection.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxhdpi/ic_no_connection.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxxhdpi/ic_no_connection.png
Binary file not shown.

0 comments on commit 2e2b39a

Please sign in to comment.