1.
.
2.
88 () .
3.
ActionBar , . Home.
Home Action bar, , . Android Navigation Drawer.
Layout .
Overflow Action bar . Action bar , Action bar.
Pitch-To-Zoom , .
Sharing - - .
Splash screen . . . .
5.
: .
6.
.
.
Android Android SDK 4.3
Android: mdpi (320x480 px), hdpi (480x800px), xhdpi (720x1280px), xhdpi (768x1280px).
.
:
.
:
1 , , ( )
2 , c Navigation Drawer
:
1.
2.
3.
4.
5.
6.
, Fragments
3
.
4 -
.
5
.
6
7
8
. .
|
|
9
, .
10-
Scrolling Activity, .
7.
, . REST API . JSON.
1- .
: PHP, Python, Java, ASP.NET
-, -.
:
,
.
7. 25 $
|
|
|
|
5.
6.
( 1)
activity main.xml (, )
<? xml version="1.0" encoding="utf-8" ?>< android.support.v4.widget.DrawerLayout 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:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start" >
< include
layout="@layout/app_bar_main"
android:layout_width="match_parent"
android:layout_height="match_parent" />
< android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/activity_main_drawer" />
</ android.support.v4.widget.DrawerLayout >
7. activity main.xml
content_main.xml (, )
<? xml version="1.0" encoding="utf-8" ?>< FrameLayout 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"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com.deitel.myapplication.MainActivity"
tools:showIn="@layout/app_bar_main"
android:id="@+id/container" >
</ FrameLayout >
|
|
8. content_main.xml
Android_Manifest.xml (, )
? xml version="1.0" encoding="utf-8" ?>< manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.deitel.myapplication" >
< application
android:allowBackup="true"
android:icon="@mipmap/logo"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
< activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/TransparentStatusBar" >
< intent-filter >
< action android:name="android.intent.action.MAIN" />
< category android:name="android.intent.category.LAUNCHER" />
</ intent-filter >
</ activity >
<!-- ATTENTION: This was auto-generated to add Google Play services to your project for
App Indexing. See https://g.co/AppIndexing/AndroidStudio for more information. -->
< meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
</ application >
</ manifest >