Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
likorn
/
Lavina
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
641df47b
authored
May 14, 2018
by
Paktalin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
map activity background changed
parent
09d1f09c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
app/src/main/java/com/example/paktalin/lavina/MainActivity.java
app/src/main/res/layout-v21/app_bar_main.xml
app/src/main/res/layout/map_activity.xml
app/src/main/java/com/example/paktalin/lavina/MainActivity.java
View file @
641df47b
...
@@ -40,6 +40,7 @@ public class MainActivity extends AppCompatActivity
...
@@ -40,6 +40,7 @@ public class MainActivity extends AppCompatActivity
Toolbar
toolbar
=
(
Toolbar
)
findViewById
(
R
.
id
.
toolbar
);
Toolbar
toolbar
=
(
Toolbar
)
findViewById
(
R
.
id
.
toolbar
);
setSupportActionBar
(
toolbar
);
setSupportActionBar
(
toolbar
);
getSupportActionBar
().
setTitle
(
"Home"
);
DrawerLayout
drawer
=
(
DrawerLayout
)
findViewById
(
R
.
id
.
drawer_layout
);
DrawerLayout
drawer
=
(
DrawerLayout
)
findViewById
(
R
.
id
.
drawer_layout
);
ActionBarDrawerToggle
toggle
=
new
ActionBarDrawerToggle
(
ActionBarDrawerToggle
toggle
=
new
ActionBarDrawerToggle
(
...
...
app/src/main/res/layout-v21/app_bar_main.xml
View file @
641df47b
...
@@ -11,14 +11,12 @@
...
@@ -11,14 +11,12 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:theme=
"@style/AppTheme.AppBarOverlay"
android:theme=
"@style/AppTheme.AppBarOverlay"
android:background=
"@android:color/transparent"
android:background=
"@android:color/transparent"
>
>
<android.support.v7.widget.Toolbar
<android.support.v7.widget.Toolbar
android:id=
"@+id/toolbar"
android:id=
"@+id/toolbar"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
android:layout_height=
"?attr/actionBarSize"
android:background=
"@android:color/transparent"
app:popupTheme=
"@style/AppTheme.PopupOverlay"
/>
app:popupTheme=
"@style/AppTheme.PopupOverlay"
/>
</android.support.design.widget.AppBarLayout>
</android.support.design.widget.AppBarLayout>
...
...
app/src/main/res/layout/map_activity.xml
View file @
641df47b
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
android:background=
"@drawable/red_background"
>
<RelativeLayout
<RelativeLayout
android:id=
"@+id/map_title"
android:id=
"@+id/map_title"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:layout_height=
"50dp"
android:background=
"@
color/colorPrimary
"
>
android:background=
"@
android:color/transparent
"
>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -35,7 +36,7 @@
...
@@ -35,7 +36,7 @@
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:layout_alignParentLeft=
"true"
android:layout_alignParentLeft=
"true"
android:layout_alignParentStart=
"true"
android:layout_alignParentStart=
"true"
android:background=
"@
color/colorPrimary
"
>
android:background=
"@
android:color/transparent
"
>
<RelativeLayout
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
...
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