Skip to content

Commit 520d200

Browse files
committed
messed up during merge confict (fix #92)
1 parent 4cf2319 commit 520d200

File tree

4 files changed

+17
-11
lines changed

4 files changed

+17
-11
lines changed

storagechooser/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ dependencies {
3333
})
3434
implementation 'com.android.support:appcompat-v7:27.1.1'
3535
implementation 'com.android.support:design:27.1.1'
36+
implementation 'com.github.markushi:circlebutton:1.1'
3637
testImplementation 'junit:junit:4.12'
3738
}
3839

storagechooser/src/main/java/com/codekidlabs/storagechooser/fragments/SecondaryChooserFragment.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import android.os.Handler;
1414
import android.support.annotation.NonNull;
1515
import android.support.annotation.Nullable;
16-
import android.support.design.widget.FloatingActionButton;
1716
import android.support.v4.content.ContextCompat;
1817
import android.util.Log;
1918
import android.util.TypedValue;
@@ -52,6 +51,7 @@
5251
import java.util.Comparator;
5352
import java.util.List;
5453

54+
import at.markushi.ui.CircleButton;
5555

5656
import static com.codekidlabs.storagechooser.StorageChooser.Theme;
5757

@@ -74,7 +74,7 @@ public class SecondaryChooserFragment extends android.app.DialogFragment {
7474
private Button mCreateButton;
7575
private ImageView mNewFolderImageView;
7676
private EditText mFolderNameEditText;
77-
private FloatingActionButton mMultipleOnSelectButton;
77+
private CircleButton mMultipleOnSelectButton;
7878
private RelativeLayout mNewFolderView;
7979
private ProgressBar mFilesProgress;
8080
private String mBundlePath;
@@ -410,7 +410,7 @@ private void updateUI() {
410410
mNewFolderImageView.setImageTintList(ColorStateList.valueOf(scheme[Theme.SEC_ADDRESS_TINT_INDEX]));
411411
mBackButton.setImageTintList(ColorStateList.valueOf(scheme[Theme.SEC_ADDRESS_TINT_INDEX]));
412412
}
413-
mMultipleOnSelectButton.setBackgroundTintList(ColorStateList.valueOf(scheme[Theme.SEC_DONE_FAB_INDEX]));
413+
mMultipleOnSelectButton.setColor(scheme[Theme.SEC_DONE_FAB_INDEX]);
414414
mLayout.findViewById(R.id.custom_path_header).setBackgroundColor(scheme[Theme.SEC_ADDRESS_BAR_BG]);
415415

416416
// ----

storagechooser/src/main/res/layout-v21/custom_storage_list.xml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,18 @@
152152
android:layout_below="@id/custom_path_header"
153153
android:background="@color/inactiveGradientColor" />
154154

155-
<android.support.design.widget.FloatingActionButton
155+
<at.markushi.ui.CircleButton
156156
android:id="@+id/multiple_selection_done_fab"
157-
app:fabSize="normal"
158-
android:layout_width="wrap_content"
159-
android:layout_height="wrap_content"
157+
android:layout_width="72dip"
158+
android:layout_height="72dip"
160159
android:layout_alignParentBottom="true"
161160
android:layout_alignParentEnd="true"
162161
android:layout_margin="16dp"
163-
app:srcCompat="@drawable/ic_check_white_24dp"
164-
android:visibility="invisible" />
162+
android:drawableTop="@drawable/ic_chevron_left_white_24dp"
163+
android:src="@drawable/ic_check_white_24dp"
164+
android:visibility="invisible"
165+
app:cb_color="@color/colorAccent"
166+
app:cb_pressedRingWidth="8dip" />
165167

166168
</RelativeLayout>
167169

storagechooser/src/main/res/layout/custom_storage_list.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,16 +153,19 @@
153153
android:layout_below="@id/custom_path_header"
154154
android:background="@color/inactiveGradientColor" />
155155

156-
<android.support.design.widget.FloatingActionButton
156+
<at.markushi.ui.CircleButton
157157
android:id="@+id/multiple_selection_done_fab"
158158
android:layout_width="72dip"
159159
android:layout_height="72dip"
160160
android:layout_alignParentBottom="true"
161161
android:layout_alignParentEnd="true"
162162
android:layout_alignParentRight="true"
163163
android:layout_margin="16dp"
164+
android:drawableTop="@drawable/ic_chevron_left_white_24dp"
164165
android:src="@drawable/ic_check_white_24dp"
165-
android:visibility="invisible" />
166+
android:visibility="invisible"
167+
app:cb_color="@color/colorAccent"
168+
app:cb_pressedRingWidth="8dip" />
166169

167170
</RelativeLayout>
168171

0 commit comments

Comments
 (0)