Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
likorn
/
vocabulary_notebook
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
984ed02f
authored
Sep 14, 2018
by
Paktalin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New word fields are now fixed at the top
parent
28dea025
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
62 additions
and
24 deletions
app/src/main/res/drawable/sheet_bottom.xml
app/src/main/res/drawable/sheet_background.xml → app/src/main/res/drawable/sheet_top.xml
app/src/main/res/layout/activity_main.xml
app/src/main/res/layout/notebook_sheet.xml
app/src/main/res/values/colors.xml
app/src/main/res/values/dimens.xml
app/src/main/res/drawable/sheet_bottom.xml
0 → 100644
View file @
984ed02f
<shape
android:shape=
"rectangle"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"@color/sheet_color"
/>
<corners
android:bottomRightRadius=
"@dimen/corner_radius"
android:bottomLeftRadius=
"@dimen/corner_radius"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/sheet_
background
.xml
→
app/src/main/res/drawable/sheet_
top
.xml
View file @
984ed02f
<shape
android:shape=
"rectangle"
<shape
android:shape=
"rectangle"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"#FAFAFA"
/>
<solid
android:color=
"@color/sheet_color"
/>
<corners
android:radius=
"5dp"
/>
<corners
android:topLeftRadius=
"@dimen/corner_radius"
android:topRightRadius=
"@dimen/corner_radius"
/>
</shape>
</shape>
\ No newline at end of file
app/src/main/res/layout/activity_main.xml
View file @
984ed02f
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
android:id=
"@+id/drawerLayout"
android:id=
"@+id/drawerLayout"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
tools:openDrawer=
"start"
>
tools:openDrawer=
"start"
android:background=
"#66330E"
>
<FrameLayout
<FrameLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
...
app/src/main/res/layout/notebook_sheet.xml
View file @
984ed02f
...
@@ -3,34 +3,60 @@
...
@@ -3,34 +3,60 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
>
android:background=
"#66330E"
>
<FrameLayout
android:id=
"@+id/frameLayout"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"@dimen/small_margin"
android:layout_marginLeft=
"@dimen/small_margin"
android:layout_marginRight=
"@dimen/small_margin"
android:layout_marginStart=
"@dimen/small_margin"
android:layout_marginTop=
"@dimen/small_margin"
android:paddingStart=
"@dimen/small_padding"
android:paddingLeft=
"@dimen/small_padding"
android:paddingEnd=
"@dimen/small_padding"
android:paddingRight=
"@dimen/small_padding"
android:paddingTop=
"@dimen/small_padding"
android:background=
"@drawable/sheet_top"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
<fragment
android:id=
"@+id/fragmentNewWord"
android:name=
"com.paktalin.vocabularynotebook.ui.AddWordFragment"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
</FrameLayout>
<ScrollView
<ScrollView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"0dp"
android:layout_marginBottom=
"@dimen/small_margin"
android:layout_marginEnd=
"@dimen/small_margin"
android:layout_marginLeft=
"@dimen/small_margin"
android:layout_marginRight=
"@dimen/small_margin"
android:layout_marginStart=
"@dimen/small_margin"
android:scrollbars=
"vertical"
android:scrollbars=
"vertical"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_to
TopOf=
"paren
t"
app:layout_constraintTop_to
BottomOf=
"@+id/frameLayou
t"
a
ndroid:layout_margin=
"8dp
"
>
a
pp:layout_constraintVertical_bias=
"0.0
"
>
<LinearLayout
<LinearLayout
android:id=
"@+id/fragment_container"
android:id=
"@+id/fragment_container"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"8dp"
android:background=
"@drawable/sheet_bottom"
android:background=
"@drawable/sheet_background"
android:orientation=
"vertical"
android:orientation=
"vertical"
>
android:paddingStart=
"@dimen/small_padding"
android:paddingLeft=
"@dimen/small_padding"
<fragment
android:paddingEnd=
"@dimen/small_padding"
android:id=
"@+id/fragmentNewWord"
android:paddingRight=
"@dimen/small_padding"
android:name=
"com.paktalin.vocabularynotebook.ui.AddWordFragment"
android:paddingBottom=
"@dimen/small_padding"
>
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
/>
</LinearLayout>
</LinearLayout>
</ScrollView>
</ScrollView>
...
@@ -48,13 +74,10 @@
...
@@ -48,13 +74,10 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"end"
android:layout_gravity=
"end"
android:layout_marginBottom=
"8dp"
android:layout_margin=
"@dimen/small_margin"
android:layout_marginEnd=
"8dp"
android:layout_marginRight=
"8dp"
android:background=
"@android:color/transparent"
android:background=
"@android:color/transparent"
app:srcCompat=
"@drawable/ic_done_icon"
app:srcCompat=
"@drawable/ic_done_icon"
tools:ignore=
"ContentDescription"
/>
tools:ignore=
"ContentDescription"
/>
</FrameLayout>
</FrameLayout>
</android.support.constraint.ConstraintLayout>
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
app/src/main/res/values/colors.xml
View file @
984ed02f
...
@@ -3,4 +3,5 @@
...
@@ -3,4 +3,5 @@
<color
name=
"colorPrimary"
>
#3F51B5
</color>
<color
name=
"colorPrimary"
>
#3F51B5
</color>
<color
name=
"colorPrimaryDark"
>
#303F9F
</color>
<color
name=
"colorPrimaryDark"
>
#303F9F
</color>
<color
name=
"colorAccent"
>
#FF4081
</color>
<color
name=
"colorAccent"
>
#FF4081
</color>
<color
name=
"sheet_color"
>
#FAFAFA
</color>
</resources>
</resources>
app/src/main/res/values/dimens.xml
View file @
984ed02f
...
@@ -2,4 +2,8 @@
...
@@ -2,4 +2,8 @@
<!-- Default screen margins, per the Android Design guidelines. -->
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen
name=
"activity_horizontal_margin"
>
16dp
</dimen>
<dimen
name=
"activity_horizontal_margin"
>
16dp
</dimen>
<dimen
name=
"activity_vertical_margin"
>
16dp
</dimen>
<dimen
name=
"activity_vertical_margin"
>
16dp
</dimen>
<dimen
name=
"corner_radius"
>
5dp
</dimen>
<dimen
name=
"zero_corner_radius"
>
0dp
</dimen>
<dimen
name=
"small_margin"
>
8dp
</dimen>
<dimen
name=
"small_padding"
>
8dp
</dimen>
</resources>
</resources>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment