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
b244f6d6
authored
Sep 10, 2018
by
Paktalin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Layout matches background
parent
620fd6c4
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
59 deletions
app/src/main/res/layout/activity_main.xml
app/src/main/res/layout/fragment_vocabulary.xml
app/src/main/res/layout/img_background.xml
app/src/main/res/layout/notebook_sheet.xml
app/src/main/res/layout/word_item.xml
app/src/main/res/layout/activity_main.xml
View file @
b244f6d6
...
@@ -9,60 +9,7 @@
...
@@ -9,60 +9,7 @@
<include
layout=
"@layout/img_background"
/>
<include
layout=
"@layout/img_background"
/>
<android.support.constraint.ConstraintLayout
<include
layout=
"@layout/notebook_sheet"
/>
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<fragment
android:id=
"@+id/fragment_new_word"
android:name=
"com.paktalin.vocabularynotebook.ui.NewWordFragment"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"8dp"
android:layout_marginLeft=
"8dp"
android:layout_marginRight=
"8dp"
android:layout_marginStart=
"8dp"
android:layout_marginTop=
"8dp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<fragment
android:id=
"@+id/fragment_vocabulary"
android:name=
"com.paktalin.vocabularynotebook.ui.VocabularyFragment"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"8dp"
android:layout_marginLeft=
"8dp"
android:layout_marginRight=
"8dp"
android:layout_marginStart=
"8dp"
android:layout_marginTop=
"8dp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/fragment_new_word"
/>
<FrameLayout
android:id=
"@+id/btnAddWordLayout"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:layout_constraintBottom_toBottomOf=
"parent"
android:background=
"@color/colorPrimary"
android:visibility=
"invisible"
>
<ImageButton
android:id=
"@+id/btnAddWord"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"8dp"
android:layout_marginEnd=
"8dp"
android:layout_marginRight=
"8dp"
android:background=
"@android:color/transparent"
android:layout_gravity=
"end"
app:srcCompat=
"@drawable/ic_done_icon"
/>
</FrameLayout>
</android.support.constraint.ConstraintLayout>
<android.support.design.widget.NavigationView
<android.support.design.widget.NavigationView
android:id=
"@+id/navigationView"
android:id=
"@+id/navigationView"
...
...
app/src/main/res/layout/fragment_vocabulary.xml
View file @
b244f6d6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
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=
"
wrap_cont
ent"
android:layout_height=
"
match_par
ent"
app:layout_behavior=
"@string/appbar_scrolling_view_behavior"
app:layout_behavior=
"@string/appbar_scrolling_view_behavior"
tools:context=
"com.paktalin.vocabularynotebook.ui.VocabularyFragment"
>
tools:context=
"com.paktalin.vocabularynotebook.ui.VocabularyFragment"
>
...
...
app/src/main/res/layout/img_background.xml
View file @
b244f6d6
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
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:paddingTop=
"
16
dp"
android:paddingTop=
"
4
dp"
android:paddingBottom=
"
16
dp"
android:paddingBottom=
"
4
dp"
android:paddingLeft=
"4dp"
android:paddingLeft=
"4dp"
android:paddingRight=
"4dp"
>
android:paddingRight=
"4dp"
>
...
...
app/src/main/res/layout/notebook_sheet.xml
0 → 100644
View file @
b244f6d6
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<include
layout=
"@layout/img_background"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginBottom=
"24dp"
android:layout_marginEnd=
"32dp"
android:layout_marginLeft=
"56dp"
android:layout_marginRight=
"32dp"
android:layout_marginStart=
"56dp"
android:layout_marginTop=
"24dp"
android:orientation=
"vertical"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
<fragment
android:id=
"@+id/fragment_new_word"
android:name=
"com.paktalin.vocabularynotebook.ui.NewWordFragment"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
<fragment
android:id=
"@+id/fragment_vocabulary"
android:name=
"com.paktalin.vocabularynotebook.ui.VocabularyFragment"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
</LinearLayout>
<FrameLayout
android:id=
"@+id/btnAddWordLayout"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:layout_constraintBottom_toBottomOf=
"parent"
android:background=
"@color/colorPrimary"
android:visibility=
"invisible"
>
<ImageButton
android:id=
"@+id/btnAddWord"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"8dp"
android:layout_marginEnd=
"8dp"
android:layout_marginRight=
"8dp"
android:background=
"@android:color/transparent"
android:layout_gravity=
"end"
app:srcCompat=
"@drawable/ic_done_icon"
/>
</FrameLayout>
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/word_item.xml
View file @
b244f6d6
...
@@ -7,8 +7,7 @@
...
@@ -7,8 +7,7 @@
android:id=
"@+id/tableLayout"
android:id=
"@+id/tableLayout"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
>
android:padding=
"8dp"
>
<TextView
<TextView
android:id=
"@+id/etWord"
android:id=
"@+id/etWord"
...
...
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