-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
used SlidingPanel from Superuser app instead of my own implemention.
- Loading branch information
Showing
17 changed files
with
430 additions
and
475 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<merge xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<LinearLayout | ||
android:id="@+id/main_container" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<org.mariotaku.twidere.view.ExtendedFrameLayout | ||
android:id="@+id/panel_anchor" | ||
android:layout_width="@dimen/pane_left_width" | ||
android:layout_height="match_parent" | ||
android:layout_weight="0"> | ||
|
||
<org.mariotaku.twidere.view.ExtendedViewPager | ||
android:id="@+id/main" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"/> | ||
|
||
<FrameLayout | ||
android:id="@+id/fragment_container_left" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"/> | ||
|
||
<View | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"/> | ||
</org.mariotaku.twidere.view.ExtendedFrameLayout> | ||
|
||
<FrameLayout | ||
android:id="@+id/fragment_container_right" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1"/> | ||
</LinearLayout> | ||
|
||
<ImageButton | ||
android:id="@+id/button_compose" | ||
android:layout_width="56dp" | ||
android:layout_height="56dp" | ||
android:layout_gravity="bottom|right" | ||
android:contentDescription="@string/compose" | ||
android:onClick="onClick" | ||
android:src="@drawable/ic_menu_tweet"/> | ||
|
||
</merge> |
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
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> | ||
|
||
<dimen name="pane_left_width">420dp</dimen> | ||
|
||
</resources> |
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,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<dimen name="pane_left_width">375dp</dimen> | ||
<dimen name="pane_closed_limit">150dp</dimen> | ||
|
||
</resources> |
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
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
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,24 @@ | ||
package org.mariotaku.twidere.util; | ||
|
||
import android.view.MotionEvent; | ||
import android.view.View; | ||
|
||
public interface ExtendedViewInterface { | ||
|
||
public void setOnSizeChangedListener(final OnSizeChangedListener listener); | ||
|
||
public void setTouchInterceptor(final TouchInterceptor listener); | ||
|
||
public static interface OnSizeChangedListener { | ||
void onSizeChanged(View view, int w, int h, int oldw, int oldh); | ||
} | ||
|
||
public static interface TouchInterceptor { | ||
|
||
boolean onInterceptTouchEvent(View view, MotionEvent event); | ||
|
||
boolean onTouchEvent(View view, MotionEvent event); | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.