Skip to content

Commit

Permalink
v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CarnivalBot committed Mar 16, 2016
1 parent 5359176 commit 1a0cfb4
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 1 deletion.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 43 additions & 1 deletion Carnival-Eclipse/res/layout/carnival_activity_stream.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".CarnivalStreamActivity" >
tools:context=".sdk.MessageActivity" >

<WebView
android:id="@+id/webView"
Expand All @@ -11,4 +11,46 @@
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" />

<RelativeLayout
android:id="@+id/errorLayout"
android:background="#212121"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="match_parent">

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:orientation="vertical">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@android:color/white"
android:gravity="center"
android:textStyle="bold"
android:text="@string/carnival_something_went_wrong"/>

<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="16dp"
android:background="@null"
android:onClick="onRefreshPressed"
android:src="@drawable/carnival_ic_refresh"/>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@android:color/white"
android:layout_gravity="center"
android:textStyle="bold"
android:text="@string/carnival_try_again"/>

</LinearLayout>

</RelativeLayout>

</RelativeLayout>
2 changes: 2 additions & 0 deletions Carnival-Eclipse/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@
<string name="carnival_delete_message">Delete Message</string>
<string name="carnival_deleting_message">Deleting Message</string>
<string name="carnival_delete_message_failed">There was a problem deleting this message</string>
<string name="carnival_something_went_wrong">Something went wrong and we\ncouldn\'t load the page you\nrequested.</string>
<string name="carnival_try_again">Try Again</string>

</resources>

0 comments on commit 1a0cfb4

Please sign in to comment.