From 9199056a150a994f4004842c078479e7971621f3 Mon Sep 17 00:00:00 2001 From: Thomas Hunsaker Date: Mon, 19 Oct 2015 09:52:47 -0700 Subject: [PATCH 1/6] Incomplete tablet experiment --- mobile/build.gradle | 2 +- .../com/thunsaker/rapido/ui/MainFragment.java | 7 + .../res/layout-large/fragment_compose.xml | 255 ++++++++++++ .../res/layout/activity_location_picker.xml | 2 +- mobile/src/main/res/layout/chip_add.xml | 5 +- mobile/src/main/res/layout/chip_bitly.xml | 5 +- mobile/src/main/res/layout/chip_facebook.xml | 5 +- .../src/main/res/layout/chip_foursquare.xml | 5 +- mobile/src/main/res/layout/chip_plus.xml | 5 +- mobile/src/main/res/layout/chip_twitter.xml | 5 +- .../src/main/res/layout/fragment_compose.xml | 382 +++++++++--------- .../main/res/layout/fragment_compose_card.xml | 12 - mobile/src/main/res/values-large/styles.xml | 9 + mobile/src/main/res/values-w600dp/dimens.xml | 10 + mobile/src/main/res/values-w820dp/dimens.xml | 2 + mobile/src/main/res/values/dimens.xml | 7 +- mobile/src/main/res/values/styles.xml | 5 +- 17 files changed, 501 insertions(+), 222 deletions(-) create mode 100644 mobile/src/main/res/layout-large/fragment_compose.xml delete mode 100644 mobile/src/main/res/layout/fragment_compose_card.xml create mode 100644 mobile/src/main/res/values-large/styles.xml create mode 100644 mobile/src/main/res/values-w600dp/dimens.xml diff --git a/mobile/build.gradle b/mobile/build.gradle index eae6e61..34d599f 100644 --- a/mobile/build.gradle +++ b/mobile/build.gradle @@ -84,6 +84,7 @@ dependencies { compile 'com.android.support:design:23.0.1' compile 'com.android.support:support-v4:23.0.1' compile 'com.android.support:appcompat-v7:23.0.1' + compile 'com.android.support:cardview-v7:23.0.1' compile 'com.google.android.gms:play-services-identity:8.1.0' compile 'com.google.android.gms:play-services-plus:8.1.0' compile 'com.google.android.gms:play-services-location:8.1.0' @@ -98,7 +99,6 @@ dependencies { compile 'io.reactivex:rxandroid:1.0.1' compile 'com.jakewharton.rxbinding:rxbinding:0.2.0' - compile 'com.melnykov:floatingactionbutton:1.1.0' compile 'com.github.talenguyen:prettysharedpreferences:1.0.2' compile 'com.twitter:twitter-text:1.9.0' compile 'org.twitter4j:twitter4j-core:4.0.2' diff --git a/mobile/src/main/java/com/thunsaker/rapido/ui/MainFragment.java b/mobile/src/main/java/com/thunsaker/rapido/ui/MainFragment.java index bdb9831..81776be 100644 --- a/mobile/src/main/java/com/thunsaker/rapido/ui/MainFragment.java +++ b/mobile/src/main/java/com/thunsaker/rapido/ui/MainFragment.java @@ -12,6 +12,7 @@ import android.os.Build; import android.os.Bundle; import android.os.Parcelable; +import android.support.design.widget.FloatingActionButton; import android.support.v4.app.NotificationCompat; import android.support.v4.app.NotificationManagerCompat; import android.support.v4.app.TaskStackBuilder; @@ -135,6 +136,7 @@ public class MainFragment extends BaseRapidoFragment SwarmService mSwarmService; @Bind(R.id.compose_send_button) Button mButtonSend; + @Bind(R.id.compose_send_fab) FloatingActionButton mFabSend; @Bind(R.id.compose_add_location) ImageButton mButtonLocationAdd; @Bind(R.id.compose_location_wrapper) RelativeLayout mWrapperLocation; @@ -1014,6 +1016,11 @@ public void onDestroy() { super.onDestroy(); } + @OnClick(R.id.compose_send_fab) + public void ComposeSendFabClick() { + mButtonSend.callOnClick(); + } + @OnClick(R.id.compose_send_button) public void ComposeSendClick() { hideKeyboard(); diff --git a/mobile/src/main/res/layout-large/fragment_compose.xml b/mobile/src/main/res/layout-large/fragment_compose.xml new file mode 100644 index 0000000..651ca26 --- /dev/null +++ b/mobile/src/main/res/layout-large/fragment_compose.xml @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +