Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8771d5
commit 9f7222a
Showing
669 changed files
with
3,696 additions
and
2,091 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
...ewPager/EmPubLite/app/src/androidTest/java/com/commonsware/empublite/ApplicationTest.java
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
...EmPubLite/app/src/androidTest/java/com/commonsware/empublite/ExampleInstrumentedTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.commonsware.empublite; | ||
|
||
import android.content.Context; | ||
import android.support.test.InstrumentationRegistry; | ||
import android.support.test.runner.AndroidJUnit4; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
/** | ||
* Instrumentation test, which will execute on an Android device. | ||
* | ||
* @see <a href="http://d.android.com/tools/testing">Testing | ||
* documentation</a> | ||
*/ | ||
@RunWith(AndroidJUnit4.class) | ||
public class ExampleInstrumentedTest { | ||
@Test | ||
public void useAppContext() throws Exception { | ||
// Context of the app under test. | ||
Context appContext=InstrumentationRegistry.getTargetContext(); | ||
|
||
assertEquals("com.commonsware.empublite", | ||
appContext.getPackageName()); | ||
} | ||
} |
47 changes: 24 additions & 23 deletions
47
EmPubLite-AndroidStudio/T10-ViewPager/EmPubLite/app/src/main/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.commonsware.empublite" > | ||
<manifest package="com.commonsware.empublite" | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<supports-screens | ||
android:largeScreens="true" | ||
android:normalScreens="true" | ||
android:smallScreens="false" | ||
android:xlargeScreens="true" /> | ||
<supports-screens | ||
android:largeScreens="true" | ||
android:normalScreens="true" | ||
android:smallScreens="false" | ||
android:xlargeScreens="true" /> | ||
|
||
<application | ||
android:allowBackup="false" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:theme="@style/AppTheme" > | ||
<activity | ||
android:name=".EmPubLiteActivity" | ||
android:label="@string/app_name" > | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<application | ||
android:allowBackup="false" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme" | ||
tools:ignore="GoogleAppIndexingWarning"> | ||
<activity android:name=".EmPubLiteActivity"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity android:name=".SimpleContentActivity" /> | ||
</application> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity android:name=".SimpleContentActivity"></activity> | ||
</application> | ||
|
||
</manifest> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-614 Bytes
...udio/T10-ViewPager/EmPubLite/app/src/main/res/drawable-hdpi/ic_action_about.png
Binary file not shown.
Binary file removed
BIN
-450 Bytes
...io/T10-ViewPager/EmPubLite/app/src/main/res/drawable-hdpi/ic_action_discard.png
Binary file not shown.
Binary file removed
BIN
-765 Bytes
...tudio/T10-ViewPager/EmPubLite/app/src/main/res/drawable-hdpi/ic_action_edit.png
Binary file not shown.
Binary file removed
BIN
-496 Bytes
...tudio/T10-ViewPager/EmPubLite/app/src/main/res/drawable-hdpi/ic_action_help.png
Binary file not shown.
Binary file removed
BIN
-663 Bytes
...io/T10-ViewPager/EmPubLite/app/src/main/res/drawable-hdpi/ic_action_refresh.png
Binary file not shown.
Binary file removed
BIN
-807 Bytes
...o/T10-ViewPager/EmPubLite/app/src/main/res/drawable-hdpi/ic_action_settings.png
Binary file not shown.
Binary file removed
BIN
-434 Bytes
...udio/T10-ViewPager/EmPubLite/app/src/main/res/drawable-mdpi/ic_action_about.png
Binary file not shown.
Binary file removed
BIN
-324 Bytes
...io/T10-ViewPager/EmPubLite/app/src/main/res/drawable-mdpi/ic_action_discard.png
Binary file not shown.
Binary file removed
BIN
-522 Bytes
...tudio/T10-ViewPager/EmPubLite/app/src/main/res/drawable-mdpi/ic_action_edit.png
Binary file not shown.
Binary file removed
BIN
-391 Bytes
...tudio/T10-ViewPager/EmPubLite/app/src/main/res/drawable-mdpi/ic_action_help.png
Binary file not shown.
Binary file removed
BIN
-508 Bytes
...io/T10-ViewPager/EmPubLite/app/src/main/res/drawable-mdpi/ic_action_refresh.png
Binary file not shown.
Binary file removed
BIN
-550 Bytes
...o/T10-ViewPager/EmPubLite/app/src/main/res/drawable-mdpi/ic_action_settings.png
Binary file not shown.
Binary file removed
BIN
-787 Bytes
...dio/T10-ViewPager/EmPubLite/app/src/main/res/drawable-xhdpi/ic_action_about.png
Binary file not shown.
Binary file removed
BIN
-543 Bytes
...o/T10-ViewPager/EmPubLite/app/src/main/res/drawable-xhdpi/ic_action_discard.png
Binary file not shown.
Binary file removed
BIN
-994 Bytes
...udio/T10-ViewPager/EmPubLite/app/src/main/res/drawable-xhdpi/ic_action_edit.png
Binary file not shown.
Binary file removed
BIN
-632 Bytes
...udio/T10-ViewPager/EmPubLite/app/src/main/res/drawable-xhdpi/ic_action_help.png
Binary file not shown.
Binary file removed
BIN
-895 Bytes
...o/T10-ViewPager/EmPubLite/app/src/main/res/drawable-xhdpi/ic_action_refresh.png
Binary file not shown.
Binary file removed
BIN
-1.1 KB
.../T10-ViewPager/EmPubLite/app/src/main/res/drawable-xhdpi/ic_action_settings.png
Binary file not shown.
Binary file removed
BIN
-1.19 KB
...io/T10-ViewPager/EmPubLite/app/src/main/res/drawable-xxhdpi/ic_action_about.png
Binary file not shown.
Binary file removed
BIN
-765 Bytes
.../T10-ViewPager/EmPubLite/app/src/main/res/drawable-xxhdpi/ic_action_discard.png
Binary file not shown.
Binary file removed
BIN
-1.42 KB
...dio/T10-ViewPager/EmPubLite/app/src/main/res/drawable-xxhdpi/ic_action_edit.png
Binary file not shown.
Binary file removed
BIN
-880 Bytes
...dio/T10-ViewPager/EmPubLite/app/src/main/res/drawable-xxhdpi/ic_action_help.png
Binary file not shown.
Binary file removed
BIN
-1.21 KB
.../T10-ViewPager/EmPubLite/app/src/main/res/drawable-xxhdpi/ic_action_refresh.png
Binary file not shown.
Binary file removed
BIN
-1.62 KB
...T10-ViewPager/EmPubLite/app/src/main/res/drawable-xxhdpi/ic_action_settings.png
Binary file not shown.
9 changes: 9 additions & 0 deletions
9
...idStudio/T10-ViewPager/EmPubLite/app/src/main/res/drawable/ic_help_outline_black_24px.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24.0" | ||
android:viewportHeight="24.0"> | ||
<path | ||
android:pathData="M11,18h2v-2h-2v2zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8zM12,6c-2.21,0 -4,1.79 -4,4h2c0,-1.1 0.9,-2 2,-2s2,0.9 2,2c0,2 -3,1.75 -3,5h2c0,-2.25 3,-2.5 3,-5 0,-2.21 -1.79,-4 -4,-4z" | ||
android:fillColor="#000000"/> | ||
</vector> |
9 changes: 9 additions & 0 deletions
9
...idStudio/T10-ViewPager/EmPubLite/app/src/main/res/drawable/ic_info_outline_black_24dp.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24.0" | ||
android:viewportHeight="24.0"> | ||
<path | ||
android:fillColor="#FF000000" | ||
android:pathData="M11,17h2v-6h-2v6zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8zM11,9h2L13,7h-2v2z"/> | ||
</vector> |
15 changes: 15 additions & 0 deletions
15
EmPubLite-AndroidStudio/T10-ViewPager/EmPubLite/app/src/main/res/layout/editor.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:orientation="vertical" android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<EditText | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:inputType="textMultiLine" | ||
android:ems="10" | ||
android:id="@+id/editor" | ||
android:hint="@string/hint" | ||
android:gravity="top|start" /> | ||
</LinearLayout> |
36 changes: 18 additions & 18 deletions
36
EmPubLite-AndroidStudio/T10-ViewPager/EmPubLite/app/src/main/res/layout/main.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".EmPubLiteActivity"> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical"> | ||
|
||
<ProgressBar | ||
style="?android:attr/progressBarStyleLarge" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/progressBar1" | ||
android:layout_centerVertical="true" | ||
android:layout_centerHorizontal="true" /> | ||
<io.karim.MaterialTabs | ||
android:id="@+id/tabs" | ||
android:layout_width="match_parent" | ||
android:layout_height="48dp" | ||
app:mtIndicatorColor="@color/colorAccent" | ||
app:mtSameWeightTabs="true"/> | ||
|
||
<android.support.v4.view.ViewPager | ||
android:id="@+id/pager" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:visibility="gone"/> | ||
</RelativeLayout> | ||
<android.support.v4.view.ViewPager | ||
android:id="@+id/pager" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
</android.support.v4.view.ViewPager> | ||
</LinearLayout> |
20 changes: 10 additions & 10 deletions
20
EmPubLite-AndroidStudio/T10-ViewPager/EmPubLite/app/src/main/res/menu/options.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<menu xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<item | ||
android:id="@+id/help" | ||
android:icon="@drawable/ic_action_help" | ||
android:title="@string/help"> | ||
</item> | ||
<item | ||
android:id="@+id/about" | ||
android:icon="@drawable/ic_action_about" | ||
android:title="@string/about"> | ||
</item> | ||
<item | ||
android:id="@+id/help" | ||
android:icon="@drawable/ic_help_outline_black_24px" | ||
android:title="@string/help"> | ||
</item> | ||
<item | ||
android:id="@+id/about" | ||
android:icon="@drawable/ic_info_outline_black_24dp" | ||
android:title="@string/about"> | ||
</item> | ||
|
||
</menu> |
6 changes: 6 additions & 0 deletions
6
EmPubLite-AndroidStudio/T10-ViewPager/EmPubLite/app/src/main/res/values-w820dp/dimens.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<resources> | ||
<!-- Example customization of dimensions originally defined in res/values/dimens.xml | ||
(such as screen margins) for screens with more than 820dp of available width. This | ||
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). --> | ||
<dimen name="activity_horizontal_margin">64dp</dimen> | ||
</resources> |
6 changes: 6 additions & 0 deletions
6
EmPubLite-AndroidStudio/T10-ViewPager/EmPubLite/app/src/main/res/values/colors.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="colorPrimary">#3F51B5</color> | ||
<color name="colorPrimaryDark">#303F9F</color> | ||
<color name="colorAccent">#FF4081</color> | ||
</resources> |
5 changes: 5 additions & 0 deletions
5
EmPubLite-AndroidStudio/T10-ViewPager/EmPubLite/app/src/main/res/values/dimens.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<resources> | ||
<!-- Default screen margins, per the Android Design guidelines. --> | ||
<dimen name="activity_horizontal_margin">16dp</dimen> | ||
<dimen name="activity_vertical_margin">16dp</dimen> | ||
</resources> |
4 changes: 1 addition & 3 deletions
4
EmPubLite-AndroidStudio/T10-ViewPager/EmPubLite/app/src/main/res/values/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<string name="app_name">EmPub Lite</string> | ||
<string name="hint">Enter notes here</string> | ||
<string name="help">Help</string> | ||
<string name="about">About</string> | ||
|
||
</resources> |
Oops, something went wrong.