Change next/prev buttons to FloatingActionButtons
12
app/app.iml
@ -71,8 +71,9 @@
|
|||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex-cache" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex-cache" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.0/jars" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.1/jars" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/22.2.0/jars" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/design/22.2.1/jars" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/22.2.1/jars" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jacoco" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jacoco" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaResources" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaResources" />
|
||||||
@ -90,9 +91,10 @@
|
|||||||
</content>
|
</content>
|
||||||
<orderEntry type="jdk" jdkName="Android API 22 Platform" jdkType="Android SDK" />
|
<orderEntry type="jdk" jdkName="Android API 22 Platform" jdkType="Android SDK" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
<orderEntry type="library" exported="" name="design-22.2.1" level="project" />
|
||||||
|
<orderEntry type="library" exported="" name="support-v4-22.2.1" level="project" />
|
||||||
|
<orderEntry type="library" exported="" name="support-annotations-22.2.1" level="project" />
|
||||||
|
<orderEntry type="library" exported="" name="appcompat-v7-22.2.1" level="project" />
|
||||||
<orderEntry type="library" exported="" name="android-async-http-1.4.6" level="project" />
|
<orderEntry type="library" exported="" name="android-async-http-1.4.6" level="project" />
|
||||||
<orderEntry type="library" exported="" name="support-annotations-22.2.0" level="project" />
|
|
||||||
<orderEntry type="library" exported="" name="support-v4-22.2.0" level="project" />
|
|
||||||
<orderEntry type="library" exported="" name="appcompat-v7-22.2.0" level="project" />
|
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
@ -30,8 +30,9 @@ android {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile fileTree(include: ['*.jar'], dir: 'libs')
|
compile fileTree(include: ['*.jar'], dir: 'libs')
|
||||||
compile 'com.android.support:appcompat-v7:22.2.0'
|
compile 'com.android.support:appcompat-v7:22.2.1'
|
||||||
compile 'com.android.support:support-v4:22.2.0'
|
compile 'com.android.support:support-v4:22.2.1'
|
||||||
|
compile 'com.android.support:design:22.2.1'
|
||||||
compile 'com.loopj.android:android-async-http:1.4.6'
|
compile 'com.loopj.android:android-async-http:1.4.6'
|
||||||
testCompile 'junit:junit:4.12'
|
testCompile 'junit:junit:4.12'
|
||||||
testCompile 'org.easytesting:fest:1.0.16'
|
testCompile 'org.easytesting:fest:1.0.16'
|
||||||
|
BIN
app/src/main/res/drawable-hdpi/ic_arrow_back_white.png
Normal file
After Width: | Height: | Size: 189 B |
BIN
app/src/main/res/drawable-hdpi/ic_arrow_forward_white.png
Normal file
After Width: | Height: | Size: 207 B |
BIN
app/src/main/res/drawable-mdpi/ic_arrow_back_white.png
Normal file
After Width: | Height: | Size: 127 B |
BIN
app/src/main/res/drawable-mdpi/ic_arrow_forward_white.png
Normal file
After Width: | Height: | Size: 131 B |
BIN
app/src/main/res/drawable-xhdpi/ic_arrow_back_white.png
Normal file
After Width: | Height: | Size: 176 B |
BIN
app/src/main/res/drawable-xhdpi/ic_arrow_forward_white.png
Normal file
After Width: | Height: | Size: 190 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_arrow_back_white.png
Normal file
After Width: | Height: | Size: 297 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_arrow_forward_white.png
Normal file
After Width: | Height: | Size: 322 B |
@ -8,53 +8,58 @@
|
|||||||
|
|
||||||
<!-- As the main content view, the view below consumes the entire
|
<!-- As the main content view, the view below consumes the entire
|
||||||
space available using match_parent in both dimensions. -->
|
space available using match_parent in both dimensions. -->
|
||||||
|
<android.support.design.widget.CoordinatorLayout
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical">
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/container"
|
android:id="@+id/container"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent" />
|
android:layout_height="match_parent" />
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:orientation="horizontal"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent"
|
||||||
|
android:orientation="horizontal">
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/container_left"
|
android:id="@+id/container_left"
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_gravity="start"
|
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginRight="5dp" />
|
android:layout_gravity="start"
|
||||||
|
android:layout_marginRight="5dp"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/container_right"
|
android:id="@+id/container_right"
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_gravity="end"
|
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginLeft="5dp" />
|
android:layout_gravity="end"
|
||||||
|
android:layout_marginLeft="5dp"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<FrameLayout
|
<android.support.design.widget.FloatingActionButton
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="vertical">
|
|
||||||
<Button
|
|
||||||
android:id="@+id/next_button"
|
android:id="@+id/next_button"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom|end"
|
android:layout_gravity="bottom|end"
|
||||||
android:text="@string/next"
|
android:layout_margin="16dp"
|
||||||
android:onClick="next"
|
android:onClick="next"
|
||||||
|
android:src="@drawable/ic_arrow_forward_white"
|
||||||
|
android:text="@string/next"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
<Button
|
<android.support.design.widget.FloatingActionButton
|
||||||
android:id="@+id/prev_button"
|
android:id="@+id/prev_button"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom|start"
|
android:layout_gravity="bottom|start"
|
||||||
android:text="@string/previous"
|
android:layout_margin="16dp"
|
||||||
android:onClick="previous"
|
android:onClick="previous"
|
||||||
|
android:src="@drawable/ic_arrow_back_white"
|
||||||
|
android:text="@string/previous"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
</FrameLayout>
|
</android.support.design.widget.CoordinatorLayout>
|
||||||
<!-- android:layout_gravity="start" tells DrawerLayout to treat
|
<!-- android:layout_gravity="start" tells DrawerLayout to treat
|
||||||
this as a sliding drawer on the left side for left-to-right
|
this as a sliding drawer on the left side for left-to-right
|
||||||
languages and on the right side for right-to-left languages.
|
languages and on the right side for right-to-left languages.
|
||||||
|
@ -54,7 +54,4 @@
|
|||||||
<string name="title_activity_settings">Settings</string>
|
<string name="title_activity_settings">Settings</string>
|
||||||
<string name="url_hint">Hostname or IP</string>
|
<string name="url_hint">Hostname or IP</string>
|
||||||
<string name="unable">Unable to process request - check network settings</string>
|
<string name="unable">Unable to process request - check network settings</string>
|
||||||
|
|
||||||
<!-- TODO: Remove or change this placeholder text -->
|
|
||||||
<string name="hello_blank_fragment">Hello blank fragment</string>
|
|
||||||
</resources>
|
</resources>
|
||||||
|