├── app
├── .gitignore
├── src
│ ├── main
│ │ ├── res
│ │ │ ├── drawable-hdpi
│ │ │ │ ├── ic_edit.png
│ │ │ │ ├── ic_delete.png
│ │ │ │ └── ic_action_settings.png
│ │ │ ├── drawable-mdpi
│ │ │ │ ├── ic_edit.png
│ │ │ │ ├── ic_delete.png
│ │ │ │ └── ic_action_settings.png
│ │ │ ├── drawable-xhdpi
│ │ │ │ ├── ic_delete.png
│ │ │ │ ├── ic_edit.png
│ │ │ │ └── ic_action_settings.png
│ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── ic_edit.png
│ │ │ │ ├── ic_delete.png
│ │ │ │ └── ic_action_settings.png
│ │ │ ├── drawable-xxxhdpi
│ │ │ │ ├── ic_edit.png
│ │ │ │ ├── ic_delete.png
│ │ │ │ └── ic_action_settings.png
│ │ │ ├── mipmap-hdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── drawable
│ │ │ │ └── divider.xml
│ │ │ ├── layout
│ │ │ │ ├── recycler_item_space.xml
│ │ │ │ ├── activity_main.xml
│ │ │ │ ├── reccyler_item_notice.xml
│ │ │ │ ├── layout_recycler.xml
│ │ │ │ ├── activity_edit.xml
│ │ │ │ ├── recycler_item_label.xml
│ │ │ │ ├── layout_item.xml
│ │ │ │ ├── layout_button_bar.xml
│ │ │ │ ├── recycler_item_filter.xml
│ │ │ │ ├── layout_permission.xml
│ │ │ │ └── layout_edit.xml
│ │ │ ├── menu
│ │ │ │ ├── menu_dara.xml
│ │ │ │ └── menu_sheet.xml
│ │ │ ├── values
│ │ │ │ ├── styles.xml
│ │ │ │ ├── colors.xml
│ │ │ │ └── strings.xml
│ │ │ └── values-zh
│ │ │ │ └── strings.xml
│ │ ├── java
│ │ │ └── io
│ │ │ │ └── github
│ │ │ │ └── mthli
│ │ │ │ └── dara
│ │ │ │ ├── event
│ │ │ │ ├── UpdateRecordEvent.java
│ │ │ │ ├── RequestNotificationListEvent.java
│ │ │ │ ├── ClickFilterEvent.java
│ │ │ │ ├── ClickNoticeEvent.java
│ │ │ │ ├── NotificationRemovedEvent.java
│ │ │ │ └── ResponseNotificationListEvent.java
│ │ │ │ ├── widget
│ │ │ │ ├── item
│ │ │ │ │ ├── Label.java
│ │ │ │ │ ├── Space.java
│ │ │ │ │ ├── Notice.java
│ │ │ │ │ └── Filter.java
│ │ │ │ ├── holder
│ │ │ │ │ ├── LabelHolder.java
│ │ │ │ │ ├── SpaceHolder.java
│ │ │ │ │ ├── NoticeHolder.java
│ │ │ │ │ └── FilterHolder.java
│ │ │ │ ├── CustomViewTransformer.java
│ │ │ │ ├── CustomRecyclerView.java
│ │ │ │ ├── DaraItemDecoration.java
│ │ │ │ ├── ButtonBarLayout.java
│ │ │ │ ├── PermissionLayout.java
│ │ │ │ ├── adapter
│ │ │ │ │ └── DaraAdapter.java
│ │ │ │ ├── EditLayout.java
│ │ │ │ ├── CustomMenuSheetView.java
│ │ │ │ └── RecyclerLayout.java
│ │ │ │ ├── record
│ │ │ │ └── Record.java
│ │ │ │ ├── app
│ │ │ │ ├── DaraApplication.java
│ │ │ │ ├── MainActivity.java
│ │ │ │ ├── DaraService.java
│ │ │ │ └── EditActivity.java
│ │ │ │ └── util
│ │ │ │ ├── KeyboardUtils.java
│ │ │ │ ├── RxBus.java
│ │ │ │ ├── DisplayUtils.java
│ │ │ │ ├── AppInfoUtils.java
│ │ │ │ └── RegExUtils.java
│ │ └── AndroidManifest.xml
│ └── androidTest
│ │ └── java
│ │ └── io
│ │ └── github
│ │ └── mthli
│ │ └── dara
│ │ └── ApplicationTest.java
├── proguard-rules.pro
└── build.gradle
├── settings.gradle
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── .gitignore
├── gradle.properties
├── README.md
├── gradlew.bat
├── gradlew
└── LICENSE
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/drawable-hdpi/ic_edit.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/ic_edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/drawable-mdpi/ic_edit.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/drawable-hdpi/ic_delete.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/ic_delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/drawable-mdpi/ic_delete.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/drawable-xhdpi/ic_delete.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/drawable-xhdpi/ic_edit.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/ic_edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/drawable-xxhdpi/ic_edit.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxxhdpi/ic_edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/drawable-xxxhdpi/ic_edit.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/ic_delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/drawable-xxhdpi/ic_delete.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxxhdpi/ic_delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/drawable-xxxhdpi/ic_delete.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/java/io/github/mthli/dara/event/UpdateRecordEvent.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara.event;
2 |
3 | public class UpdateRecordEvent {}
4 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_action_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/drawable-hdpi/ic_action_settings.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/ic_action_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/drawable-mdpi/ic_action_settings.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_action_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/drawable-xhdpi/ic_action_settings.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/ic_action_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/drawable-xxhdpi/ic_action_settings.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxxhdpi/ic_action_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mthli/Dara/master/app/src/main/res/drawable-xxxhdpi/ic_action_settings.png
--------------------------------------------------------------------------------
/app/src/main/java/io/github/mthli/dara/event/RequestNotificationListEvent.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara.event;
2 |
3 | public class RequestNotificationListEvent {}
4 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Dec 28 10:00:20 PST 2015
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/divider.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/java/io/github/mthli/dara/widget/item/Label.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara.widget.item;
2 |
3 | public class Label {
4 | private String mText;
5 |
6 | public Label(String text) {
7 | mText = text;
8 | }
9 |
10 | public String getText() {
11 | return mText;
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/app/src/main/java/io/github/mthli/dara/widget/item/Space.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara.widget.item;
2 |
3 | public class Space {
4 | private int mHeight;
5 |
6 | public Space(int height) {
7 | mHeight = height;
8 | }
9 |
10 | public int getHeight() {
11 | return mHeight;
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/app/src/main/java/io/github/mthli/dara/record/Record.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara.record;
2 |
3 | import com.orm.SugarRecord;
4 |
5 | public class Record extends SugarRecord {
6 | public String packageName;
7 | public Boolean isRegEx;
8 | public String title;
9 | public String content;
10 |
11 | public Record() {}
12 | }
13 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/recycler_item_space.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/java/io/github/mthli/dara/event/ClickFilterEvent.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara.event;
2 |
3 | import io.github.mthli.dara.widget.item.Filter;
4 |
5 | public class ClickFilterEvent {
6 | private Filter mFilter;
7 |
8 | public ClickFilterEvent(Filter filter) {
9 | mFilter = filter;
10 | }
11 |
12 | public Filter getFilter() {
13 | return mFilter;
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/app/src/main/java/io/github/mthli/dara/event/ClickNoticeEvent.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara.event;
2 |
3 | import io.github.mthli.dara.widget.item.Notice;
4 |
5 | public class ClickNoticeEvent {
6 | private Notice mNotice;
7 |
8 | public ClickNoticeEvent(Notice notice) {
9 | mNotice = notice;
10 | }
11 |
12 | public Notice getNotice() {
13 | return mNotice;
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/menu_dara.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/app/src/androidTest/java/io/github/mthli/dara/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 |
11 | public ApplicationTest() {
12 | super(Application.class);
13 | }
14 | }
--------------------------------------------------------------------------------
/app/src/main/java/io/github/mthli/dara/widget/item/Notice.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara.widget.item;
2 |
3 | import android.service.notification.StatusBarNotification;
4 |
5 | public class Notice {
6 | private StatusBarNotification mNotification;
7 |
8 | public Notice(StatusBarNotification notification) {
9 | mNotification = notification;
10 | }
11 |
12 | public StatusBarNotification getNotification() {
13 | return mNotification;
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/app/src/main/java/io/github/mthli/dara/app/DaraApplication.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara.app;
2 |
3 | import android.app.Application;
4 |
5 | import com.orm.SugarContext;
6 |
7 | public class DaraApplication extends Application {
8 | @Override
9 | public void onCreate() {
10 | super.onCreate();
11 | SugarContext.init(this);
12 | }
13 |
14 | @Override
15 | public void onTerminate() {
16 | super.onTerminate();
17 | SugarContext.terminate();
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/reccyler_item_notice.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/app/src/main/java/io/github/mthli/dara/event/NotificationRemovedEvent.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara.event;
2 |
3 | import android.service.notification.StatusBarNotification;
4 |
5 | public class NotificationRemovedEvent {
6 | private StatusBarNotification mStatusBarNotification;
7 |
8 | public NotificationRemovedEvent(StatusBarNotification statusBarNotification) {
9 | mStatusBarNotification = statusBarNotification;
10 | }
11 |
12 | public StatusBarNotification getStatusBarNotification() {
13 | return mStatusBarNotification;
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Built application files
2 | *.apk
3 | *.ap_
4 |
5 | # Files for the Dalvik VM
6 | *.dex
7 |
8 | # Java class files
9 | *.class
10 |
11 | # Generated files
12 | bin/
13 | gen/
14 |
15 | # Gradle files
16 | .gradle/
17 | build/
18 |
19 | # Local configuration file (sdk path, etc)
20 | local.properties
21 |
22 | # Proguard folder generated by Eclipse
23 | proguard/
24 |
25 | # Log Files
26 | *.log
27 |
28 | # Android Studio Navigation editor temp files
29 | .navigation/
30 |
31 | # Android Studio captures folder
32 | captures/
33 |
34 | # Others
35 | .idea/
36 | *.directory
37 | *.iml
38 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/menu_sheet.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/app/src/main/java/io/github/mthli/dara/event/ResponseNotificationListEvent.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara.event;
2 |
3 | import android.service.notification.StatusBarNotification;
4 |
5 | import java.util.List;
6 |
7 | public class ResponseNotificationListEvent {
8 | private List mStatusBarNotificationList;
9 |
10 | public ResponseNotificationListEvent(List statusBarNotificationList) {
11 | mStatusBarNotificationList = statusBarNotificationList;
12 | }
13 |
14 | public List getStatusBarNotificationList() {
15 | return mStatusBarNotificationList;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/layout_recycler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/java/io/github/mthli/dara/widget/holder/LabelHolder.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara.widget.holder;
2 |
3 | import android.support.v7.widget.AppCompatTextView;
4 | import android.support.v7.widget.RecyclerView;
5 | import android.view.View;
6 |
7 | import io.github.mthli.dara.R;
8 | import io.github.mthli.dara.widget.item.Label;
9 |
10 | public class LabelHolder extends RecyclerView.ViewHolder {
11 | private AppCompatTextView mLabelView;
12 |
13 | public LabelHolder(View view) {
14 | super(view);
15 | mLabelView = (AppCompatTextView) view.findViewById(R.id.label);
16 | }
17 |
18 | public void setLabel(Label label) {
19 | mLabelView.setText(label.getText());
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /home/matthew/Android/Sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_edit.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
13 |
14 |
15 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/app/src/main/java/io/github/mthli/dara/widget/holder/SpaceHolder.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara.widget.holder;
2 |
3 | import android.support.v7.widget.RecyclerView;
4 | import android.view.View;
5 | import android.widget.FrameLayout;
6 |
7 | import io.github.mthli.dara.R;
8 | import io.github.mthli.dara.widget.item.Space;
9 |
10 | public class SpaceHolder extends RecyclerView.ViewHolder {
11 | private FrameLayout mFrameLayout;
12 |
13 | public SpaceHolder(View view) {
14 | super(view);
15 | mFrameLayout = (FrameLayout) view.findViewById(R.id.space);
16 | }
17 |
18 | public void setSpace(Space space) {
19 | mFrameLayout.getLayoutParams().height = space.getHeight();
20 | mFrameLayout.requestLayout();
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/app/src/main/java/io/github/mthli/dara/widget/item/Filter.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara.widget.item;
2 |
3 | import io.github.mthli.dara.record.Record;
4 |
5 | public class Filter {
6 | private int mColor;
7 | private Record mRecord;
8 |
9 | public Filter() {
10 | mColor = 0;
11 | mRecord = null;
12 | }
13 |
14 | public Filter(int color, Record record) {
15 | mColor = color;
16 | mRecord = record;
17 | }
18 |
19 | public int getColor() {
20 | return mColor;
21 | }
22 |
23 | public void setColor(int color) {
24 | mColor = color;
25 | }
26 |
27 | public Record getRecord() {
28 | return mRecord;
29 | }
30 |
31 | public void setRecord(Record record) {
32 | mRecord = record;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/app/src/main/java/io/github/mthli/dara/util/KeyboardUtils.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara.util;
2 |
3 | import android.content.Context;
4 | import android.view.View;
5 | import android.view.inputmethod.InputMethodManager;
6 |
7 | public class KeyboardUtils {
8 | public static void showKeyboard(Context context, View view) {
9 | InputMethodManager manager = (InputMethodManager) context
10 | .getSystemService(Context.INPUT_METHOD_SERVICE);
11 | manager.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT);
12 | }
13 |
14 | public static void hideKeyboard(Context context, View view) {
15 | InputMethodManager manager = (InputMethodManager) context
16 | .getSystemService(Context.INPUT_METHOD_SERVICE);
17 | manager.hideSoftInputFromWindow(view.getWindowToken(), 0);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/app/src/main/java/io/github/mthli/dara/widget/CustomViewTransformer.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara.widget;
2 |
3 | import android.view.View;
4 |
5 | import com.flipboard.bottomsheet.BottomSheetLayout;
6 | import com.flipboard.bottomsheet.ViewTransformer;
7 |
8 | public class CustomViewTransformer implements ViewTransformer {
9 | @Override
10 | public void transformView(float translation, float maxTranslation,
11 | float peekedTranslation, BottomSheetLayout parent, View view) {
12 | // DO NOTHING
13 | }
14 |
15 | @Override
16 | public float getDimAlpha(float translation, float maxTranslation,
17 | float peekedTranslation, BottomSheetLayout parent, View view) {
18 | float progress = translation / maxTranslation;
19 | return progress * 0.54f;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/app/src/main/java/io/github/mthli/dara/util/RxBus.java:
--------------------------------------------------------------------------------
1 | package io.github.mthli.dara.util;
2 |
3 | import rx.Observable;
4 | import rx.subjects.PublishSubject;
5 | import rx.subjects.SerializedSubject;
6 | import rx.subjects.Subject;
7 |
8 | public class RxBus {
9 | private static final RxBus sRxBus = new RxBus();
10 |
11 | public static RxBus getInstance() {
12 | return sRxBus;
13 | }
14 |
15 | private Subject