-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add custom adapter * add custom layout manager
- Loading branch information
Showing
10 changed files
with
173 additions
and
34 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
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 |
---|---|---|
@@ -1,10 +1,18 @@ | ||
<menu xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item | ||
android:id="@+id/action_first" | ||
android:id="@+id/action_one" | ||
android:icon="@drawable/ic_atom" | ||
android:title="First"/> | ||
android:title="One"/> | ||
<item | ||
android:id="@+id/action_second" | ||
android:id="@+id/action_two" | ||
android:icon="@drawable/ic_disco" | ||
android:title="Second"/> | ||
android:title="Two"/> | ||
<item | ||
android:id="@+id/action_three" | ||
android:icon="@drawable/ic_atom" | ||
android:title="Three"/> | ||
<item | ||
android:id="@+id/action_four" | ||
android:icon="@drawable/ic_disco" | ||
android:title="Four"/> | ||
</menu> |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<resources> | ||
<string name="app_name">BottomSheet</string> | ||
<string name="title">Title</string> | ||
<string name="text_show_menu">Show menu</string> | ||
<string name="text_linear">Linear</string> | ||
<string name="text_grid">Grid</string> | ||
<string name="text_with_title">With title</string> | ||
</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
16 changes: 9 additions & 7 deletions
16
...ava/ru/whalemare/sheetmenu/ListAdapter.kt → ...halemare/sheetmenu/adapter/MenuAdapter.kt
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,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="24dp" | ||
android:layout_marginEnd="24dp" | ||
android:layout_marginStart="24dp" | ||
android:background="?attr/selectableItemBackground" | ||
android:orientation="vertical" | ||
android:padding="8dp"> | ||
|
||
<ImageView | ||
android:id="@+id/image_icon" | ||
android:layout_width="48dp" | ||
android:layout_height="48dp" | ||
android:layout_gravity="center" | ||
android:padding="8dp" | ||
tools:background="@color/gray_material"/> | ||
|
||
<TextView | ||
android:id="@+id/text_title" | ||
style="@style/TextAppearance.AppCompat.Body1" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:layout_marginTop="8dp" | ||
android:textSize="16sp" | ||
tools:text="Item name name"/> | ||
|
||
</LinearLayout> |
File renamed without changes.