Skip to content

Commit

Permalink
RED-402 #time 2h Add the resources (strings, drawables, values) to th…
Browse files Browse the repository at this point in the history
…e component.
  • Loading branch information
Yannick Platon committed Jul 6, 2017
1 parent 8bca3b5 commit dd81f3a
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions library/src/main/res/layout/web_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<WebView
android:id="@+id/webview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/abc_action_bar_default_height_material"
/>
<LinearLayout
android:id="@+id/loading"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/android:white"
android:gravity="center"
android:padding="@dimen/paddingXLarge"
android:visibility="invisible"
>
<ProgressBar
android:id="@+id/progressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/paddingSmall"
/>
<TextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/loading"
android:textSize="15.5dip"
/>
</LinearLayout>
</RelativeLayout>
5 changes: 5 additions & 0 deletions library/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="paddingSmall">3dip</dimen>
<dimen name="paddingXLarge">15dip</dimen>
</resources>
10 changes: 10 additions & 0 deletions library/src/main/res/values/ids.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="webview" type="id"/>
<item name="loading" type="id"/>
<item name="webViewActionBar" type="id"/>
<item name="title" type="id"/>
<item name="previousButton" type="id"/>
<item name="nextButton" type="id"/>
<item name="refreshButton" type="id"/>
</resources>
10 changes: 10 additions & 0 deletions library/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- WebView -->
<string name="WebView_back">Retour</string>
<string name="WebView_forward">Avancer</string>
<string name="WebView_refresh">Rafraîchir</string>
<string name="WebView_openBrowser">Navigateur</string>

<string name="loading">Chargement\u2026</string>
</resources>

0 comments on commit dd81f3a

Please sign in to comment.