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
3e8eee92
authored
Nov 13, 2018
by
Paktalin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring in container_main
parent
38c1cff9
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
49 deletions
app/src/main/res/drawable/sheet_top.xml → app/src/main/res/drawable/sheet.xml
app/src/main/res/drawable/sheet_bottom.xml
app/src/main/res/layout/activity_main.xml
app/src/main/res/layout/content_main.xml
app/src/main/res/values/colors.xml
app/src/main/res/drawable/sheet
_top
.xml
→
app/src/main/res/drawable/sheet.xml
View file @
3e8eee92
<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=
"@color/sheet_color"
/>
<solid
android:color=
"@color/sheet_color"
/>
<corners
android:topLeftRadius=
"@dimen/corner_radius"
<corners
android:radius=
"5dp"
/>
android:topRightRadius=
"@dimen/corner_radius"
/>
</shape>
</shape>
app/src/main/res/drawable/sheet_bottom.xml
deleted
100644 → 0
View file @
38c1cff9
<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/layout/activity_main.xml
View file @
3e8eee92
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
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
"
>
android:background=
"
@color/background_color
"
>
<FrameLayout
<FrameLayout
android:id=
"@+id/container_main"
android:id=
"@+id/container_main"
...
...
app/src/main/res/layout/content_main.xml
View file @
3e8eee92
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
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"
>
<FrameLayout
<LinearLayout
android:id=
"@+id/container_main"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_marginEnd=
"@dimen/small_margin"
android:background=
"@drawable/sheet"
android:layout_marginLeft=
"@dimen/small_margin"
android:layout_margin=
"@dimen/small_margin"
android:layout_marginRight=
"@dimen/small_margin"
android:orientation=
"vertical"
>
android:layout_marginStart=
"@dimen/small_margin"
android:layout_marginTop=
"@dimen/small_margin"
android:background=
"@drawable/sheet_top"
android:paddingEnd=
"@dimen/small_padding"
android:paddingLeft=
"@dimen/small_padding"
android:paddingRight=
"@dimen/small_padding"
android:paddingStart=
"@dimen/small_padding"
android:paddingTop=
"@dimen/small_padding"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
<fragment
<fragment
android:id=
"@+id/fragmentAddWord"
android:id=
"@+id/fragmentAddWord"
android:name=
"com.paktalin.vocabularynotebook.ui.fragments.AddWordFragment"
android:name=
"com.paktalin.vocabularynotebook.ui.fragments.AddWordFragment"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
</FrameLayout>
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.support.v4.widget.SwipeRefreshLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/swipeRefresh"
android:id=
"@+id/swipeRefresh"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/small_margin"
android:layout_marginEnd=
"@dimen/small_margin"
android:layout_marginEnd=
"@dimen/small_margin"
android:layout_marginLeft=
"@dimen/small_margin"
android:layout_marginLeft=
"@dimen/small_margin"
android:layout_marginRight=
"@dimen/small_margin"
android:layout_marginRight=
"@dimen/small_margin"
android:layout_marginStart=
"@dimen/small_margin"
android:layout_marginStart=
"@dimen/small_margin"
/>
android:layout_marginBottom=
"@dimen/small_margin"
</LinearLayout>
app:layout_constraintBottom_toTopOf=
"@+id/btnSubmitLayout"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/container_main"
android:paddingBottom=
"@dimen/small_padding"
android:paddingEnd=
"@dimen/small_padding"
android:paddingLeft=
"@dimen/small_padding"
android:paddingRight=
"@dimen/small_padding"
android:paddingStart=
"@dimen/small_padding"
android:background=
"@drawable/sheet_bottom"
>
</android.support.v4.widget.SwipeRefreshLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/btnSubmitLayout"
android:id=
"@+id/btnSubmitLayout"
...
@@ -60,7 +42,7 @@
...
@@ -60,7 +42,7 @@
android:background=
"@color/colorPrimary"
android:background=
"@color/colorPrimary"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:visibility=
"gone"
android:visibility=
"gone"
a
pp:layout_constraintBottom_toBottomOf=
"parent
"
>
a
ndroid:layout_alignParentBottom=
"true
"
>
<ImageButton
<ImageButton
android:id=
"@+id/btnCancel"
android:id=
"@+id/btnCancel"
...
@@ -88,4 +70,4 @@
...
@@ -88,4 +70,4 @@
tools:ignore=
"ContentDescription"
/>
tools:ignore=
"ContentDescription"
/>
</LinearLayout>
</LinearLayout>
</android.support.constraint.ConstraintLayout>
</RelativeLayout>
\ No newline at end of file
\ No newline at end of file
app/src/main/res/values/colors.xml
View file @
3e8eee92
...
@@ -6,4 +6,5 @@
...
@@ -6,4 +6,5 @@
<color
name=
"sheet_color"
>
#FAFAFA
</color>
<color
name=
"sheet_color"
>
#FAFAFA
</color>
<color
name=
"green_highlight"
>
#69B578
</color>
<color
name=
"green_highlight"
>
#69B578
</color>
<color
name=
"text_color"
>
#000F55
</color>
<color
name=
"text_color"
>
#000F55
</color>
<color
name=
"background_color"
>
#66330E
</color>
</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