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
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
57 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"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"@color/sheet_color"
/>
<corners
android:topLeftRadius=
"@dimen/corner_radius"
android:topRightRadius=
"@dimen/corner_radius"
/>
</shape>
\ No newline at end of file
<corners
android:radius=
"5dp"
/>
</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 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:openDrawer=
"start"
android:background=
"
#66330E
"
>
android:background=
"
@color/background_color
"
>
<FrameLayout
android:id=
"@+id/container_main"
...
...
app/src/main/res/layout/content_main.xml
View file @
3e8eee92
<?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:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<FrameLayout
android:id=
"@+id/container_main"
<LinearLayout
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: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"
>
android:layout_height=
"match_parent"
android:background=
"@drawable/sheet"
android:layout_margin=
"@dimen/small_margin"
android:orientation=
"vertical"
>
<fragment
android:id=
"@+id/fragmentAddWord"
android:name=
"com.paktalin.vocabularynotebook.ui.fragments.AddWordFragment"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
</FrameLayout>
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/swipeRefresh"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
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_marginBottom=
"@dimen/small_margin"
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: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.support.v4.widget.SwipeRefreshLayout>
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/swipeRefresh"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
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"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/btnSubmitLayout"
...
...
@@ -60,7 +42,7 @@
android:background=
"@color/colorPrimary"
android:orientation=
"horizontal"
android:visibility=
"gone"
a
pp:layout_constraintBottom_toBottomOf=
"parent
"
>
a
ndroid:layout_alignParentBottom=
"true
"
>
<ImageButton
android:id=
"@+id/btnCancel"
...
...
@@ -88,4 +70,4 @@
tools:ignore=
"ContentDescription"
/>
</LinearLayout>
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
</RelativeLayout>
\ No newline at end of file
app/src/main/res/values/colors.xml
View file @
3e8eee92
...
...
@@ -6,4 +6,5 @@
<color
name=
"sheet_color"
>
#FAFAFA
</color>
<color
name=
"green_highlight"
>
#69B578
</color>
<color
name=
"text_color"
>
#000F55
</color>
<color
name=
"background_color"
>
#66330E
</color>
</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