7 |
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/videoview.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/mediaplayer_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 |
--------------------------------------------------------------------------------
/app/.gitignore:
--------------------------------------------------------------------------------
1 | # Created by .ignore support plugin (hsz.mobi)
2 | ### Android template
3 | # Built application files
4 | *.apk
5 | *.ap_
6 |
7 | # Files for the ART/Dalvik VM
8 | *.dex
9 |
10 | # Java class files
11 | *.class
12 |
13 | # Generated files
14 | bin/
15 | gen/
16 | out/
17 |
18 | # Gradle files
19 | .gradle/
20 | build/
21 |
22 | # Local configuration file (sdk path, etc)
23 | local.properties
24 |
25 | # Proguard folder generated by Eclipse
26 | proguard/
27 |
28 | # Log Files
29 | *.log
30 |
31 | # Android Studio Navigation editor temp files
32 | .navigation/
33 |
34 | # Android Studio captures folder
35 | captures/
36 |
37 | # Intellij
38 | *.iml
39 | .idea/workspace.xml
40 |
41 | # Keystore files
42 | *.jks
43 |
44 |
--------------------------------------------------------------------------------
/app/src/main/resources/com/example/android/apis/_package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | Examples of how to use the android platform APIs. See:
15 |
16 |
17 |
sdk.app for examples
18 | of using the android.app APIs.
19 |
sdk.view for examples
20 | of using the android.view APIs.
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/content/ProcessTextLauncher.java:
--------------------------------------------------------------------------------
1 | package com.example.android.apis.content;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 | import android.view.Menu;
6 |
7 | //Need the following import to get access to the app resources, since this
8 | //class is in a sub-package.
9 | import com.example.android.apis.R;
10 |
11 | public class ProcessTextLauncher extends Activity {
12 |
13 | @Override
14 | protected void onCreate(Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 | setContentView(R.layout.process_text_send);
17 | }
18 |
19 | @Override
20 | public boolean onCreateOptionsMenu(Menu menu) {
21 | return false;
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/Controls2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | public class Controls2 extends Controls1 {}
20 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/Controls3.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | public class Controls3 extends Controls1 {}
20 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/Controls4.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | public class Controls4 extends Controls1 {}
20 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/Controls5.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2011 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | public class Controls5 extends Controls1 {}
20 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/Controls6.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2011 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | public class Controls6 extends Controls1 {}
20 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/Controls7.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2014 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | public class Controls7 extends Controls1 {}
20 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/Controls8.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2014 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | public class Controls8 extends Controls1 {}
20 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/Controls9.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2014 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | public class Controls9 extends Controls1 {}
20 |
--------------------------------------------------------------------------------
/app/src/main/res/values/ids.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/transition/explode.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 | android {
3 | compileSdkVersion 23
4 | buildToolsVersion "23.0.3"
5 |
6 | defaultConfig {
7 | applicationId "com.example.android.apis"
8 | minSdkVersion 16
9 | targetSdkVersion 23
10 | testApplicationId "com.example.android.apis.tests"
11 | testInstrumentationRunner "android.test.InstrumentationTestRunner"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile 'com.android.support:support-v4:23.4.0'
24 | compile 'com.android.support:appcompat-v7:23.4.0'
25 | // 日志打印工具类
26 | compile 'com.github.orhanobut:logger:1.12'
27 |
28 | }
--------------------------------------------------------------------------------
/app/src/main/res/transition/changebounds.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/app/src/main/res/values-hdpi/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | Density: High
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/values-ldpi/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | Density: Low
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/cycle_7.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/app/src/main/res/values-mdpi/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | Density: Medium
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/values-xhdpi/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | Density: Extra High
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/transition/activity_transition_mgr.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v11/bools.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 | true
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v16/bools.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 | true
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/box_white.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v13/bools.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 | true
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v17/bools.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 | true
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v18/bools.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 | true
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/action_bar_display_options_custom.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
18 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v14/bools.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 | true
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/process_text_send.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
14 |
15 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/round_rect.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/search_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/hyperspace_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/shake.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/layout_animation_row_left_slide.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/layout_animation_table.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/transition/move_image.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/app/IsolatedService2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2012 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.app;
18 |
19 | /**
20 | * Stub to be able to have another instance of IsolatedService running.
21 | */
22 | public class IsolatedService2 extends IsolatedService {
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/display_options_actions.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
20 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/Tabs4.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 |
20 | /**
21 | * 相同Tabs2。这种变化是在manifest文件中使用的主题。
22 | * Identical to Tabs2. The change is in the theme used in the manifest file.
23 | */
24 | public class Tabs4 extends Tabs2 {}
25 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/print_custom_content.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/layout_random_fade.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/layout_grid_fade.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/action_bar_tab_content.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/layout_bottom_to_top_slide.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/layout_animation_row_right_slide.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v14/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/shape_4.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/black_box.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/values/integers.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
20 | 2
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/black_opaque_box.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/gallery_background_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/values-land/integers.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
20 | 3
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/push_left_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/push_left_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/push_up_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/push_up_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/scrollbar_vertical_thumb.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/scrollbar_vertical_track.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/layout_wave_scale.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/title_only.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v19/bools.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
21 | true
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/fade.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/hold.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/hover_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v20/bools.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
21 | true
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/line.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/bouncing_balls.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/print_html_from_screen.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/list_select_menu.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/slide_left.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/game_controller_input_heading.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/layout_animation_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/layout_grid_inverse_fade.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/slide_right.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/color_animator.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
24 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/app/DoNothing.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.app;
18 |
19 | import android.content.BroadcastReceiver;
20 | import android.content.Context;
21 | import android.content.Intent;
22 |
23 | public class DoNothing extends BroadcastReceiver {
24 | @Override
25 | public void onReceive(Context context, Intent intent) {
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/app/src/main/res/values-xlarge/layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
20 |
21 | @layout/resources_layout_reference_tablet
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/box.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
22 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/appwidget_provider.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/values-sw600dp/layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
20 |
21 | @layout/resources_layout_reference_tablet
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/shape_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/list_item_checkbox.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/transition/changebounds_fadein_together.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/slide_top_to_bottom.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/list_position.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/print_bitmap.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/transition/explode_move_together.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/foreground_dispatch.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/searchview_in_menu.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/filled_box.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
22 |
23 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/process_text_main.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
14 |
15 |
19 |
20 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/hover_background_active.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/hover_background_inactive.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/text/Marquee.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 Google Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.text;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 | public class Marquee extends Activity {
25 | @Override
26 | protected void onCreate(Bundle savedInstanceState) {
27 | super.onCreate(savedInstanceState);
28 |
29 | setContentView(R.layout.marquee);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/animator.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/presentation_with_media_router_menu.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
24 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/Focus2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 | public class Focus2 extends Activity {
25 |
26 | @Override
27 | protected void onCreate(Bundle savedInstanceState) {
28 | super.onCreate(savedInstanceState);
29 |
30 | setContentView(R.layout.focus_2);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/shape_5.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
20 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/object_animator.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/os/HeadlessSmsSendService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2014 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.os;
18 |
19 | import android.app.Service;
20 | import android.content.Intent;
21 | import android.os.IBinder;
22 |
23 | /**
24 | * Dummy service to make sure this app can be default SMS app
25 | */
26 | public class HeadlessSmsSendService extends Service {
27 |
28 | @Override
29 | public IBinder onBind(Intent intent) {
30 | return null;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/ScrollBar1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 |
25 | public class ScrollBar1 extends Activity {
26 | @Override
27 | protected void onCreate(Bundle savedInstanceState) {
28 | super.onCreate(savedInstanceState);
29 |
30 | setContentView(R.layout.scrollbar1);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/ScrollBar2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 |
25 | public class ScrollBar2 extends Activity {
26 | @Override
27 | protected void onCreate(Bundle savedInstanceState) {
28 | super.onCreate(savedInstanceState);
29 |
30 | setContentView(R.layout.scrollbar2);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/TableLayout1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 |
25 | public class TableLayout1 extends Activity {
26 | @Override
27 | protected void onCreate(Bundle savedInstanceState) {
28 | super.onCreate(savedInstanceState);
29 |
30 | setContentView(R.layout.table_layout_1);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/TableLayout10.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 | public class TableLayout10 extends Activity {
25 | @Override
26 | protected void onCreate(Bundle savedInstanceState) {
27 | super.onCreate(savedInstanceState);
28 |
29 | setContentView(R.layout.table_layout_10);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/TableLayout2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 |
25 | public class TableLayout2 extends Activity {
26 | @Override
27 | protected void onCreate(Bundle savedInstanceState) {
28 | super.onCreate(savedInstanceState);
29 |
30 | setContentView(R.layout.table_layout_2);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/TableLayout3.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 |
25 | public class TableLayout3 extends Activity {
26 | @Override
27 | protected void onCreate(Bundle savedInstanceState) {
28 | super.onCreate(savedInstanceState);
29 |
30 | setContentView(R.layout.table_layout_3);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/TableLayout4.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 |
25 | public class TableLayout4 extends Activity {
26 | @Override
27 | protected void onCreate(Bundle savedInstanceState) {
28 | super.onCreate(savedInstanceState);
29 |
30 | setContentView(R.layout.table_layout_4);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/TableLayout5.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 |
25 | public class TableLayout5 extends Activity {
26 | @Override
27 | protected void onCreate(Bundle savedInstanceState) {
28 | super.onCreate(savedInstanceState);
29 |
30 | setContentView(R.layout.table_layout_5);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/TableLayout6.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 |
25 | public class TableLayout6 extends Activity {
26 | @Override
27 | protected void onCreate(Bundle savedInstanceState) {
28 | super.onCreate(savedInstanceState);
29 |
30 | setContentView(R.layout.table_layout_6);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/presentation_with_media_router_content.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
20 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/wallpaper_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
10 |
14 |
20 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/Focus5.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2010 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import android.app.Activity;
20 | import android.os.Bundle;
21 | import android.widget.Button;
22 | import com.example.android.apis.R;
23 |
24 | public class Focus5 extends Activity {
25 | @Override
26 | protected void onCreate(Bundle savedInstanceState) {
27 | super.onCreate(savedInstanceState);
28 |
29 | setContentView(R.layout.focus_5);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/mediaplayer_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
12 |
13 |
18 |
19 |
24 |
25 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/ImageButton1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import android.app.Activity;
20 | import android.os.Bundle;
21 |
22 |
23 | import com.example.android.apis.R;
24 |
25 |
26 | public class ImageButton1 extends Activity {
27 |
28 | @Override
29 | public void onCreate(Bundle savedInstanceState) {
30 | super.onCreate(savedInstanceState);
31 | setContentView(R.layout.image_button_1);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/LayoutAnimation7.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 | public class LayoutAnimation7 extends Activity {
25 | @Override
26 | protected void onCreate(Bundle savedInstanceState) {
27 | super.onCreate(savedInstanceState);
28 |
29 | setContentView(R.layout.layout_animation_7);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/taskbackconfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/shape_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
21 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/density_styled_image_views.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/print_html_off_screen.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/shape_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
21 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/GridLayout2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2011 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 | /**
25 | * A form, showing use of the GridLayout API from XML.
26 | */
27 | public class GridLayout2 extends Activity {
28 | protected void onCreate(Bundle savedInstanceState) {
29 | super.onCreate(savedInstanceState);
30 | setContentView(R.layout.grid_layout_2);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/progressbar_4.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
22 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/circular_progress.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
20 |
21 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/external_storage.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
22 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/preference_widget_mypreference.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
26 |
--------------------------------------------------------------------------------
/app/src/main/aidl/com/example/android/apis/app/IRemoteServiceCallback.aidl:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.app;
18 |
19 | /**
20 | * Example of a callback interface used by IRemoteService to send
21 | * synchronous notifications back to its clients. Note that this is a
22 | * one-way interface so the server does not block waiting for the client.
23 | */
24 | oneway interface IRemoteServiceCallback {
25 | /**
26 | * Called when the service has a new value for you.
27 | */
28 | void valueChanged(int value);
29 | }
30 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/Baseline1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 |
25 | /**
26 | * Baseline alignment in LinearLayout.
27 | */
28 | public class Baseline1 extends Activity {
29 |
30 | @Override
31 | protected void onCreate(Bundle savedInstanceState) {
32 | super.onCreate(savedInstanceState);
33 | setContentView(R.layout.baseline_1);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/Baseline6.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 |
25 | /**
26 | * Baseline alignment in RelativeLayout.
27 | */
28 | public class Baseline6 extends Activity {
29 |
30 | @Override
31 | protected void onCreate(Bundle savedInstanceState) {
32 | super.onCreate(savedInstanceState);
33 | setContentView(R.layout.baseline_6);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/app/src/main/res/transition/changebounds_fadeout_sequential.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/text_to_speech.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
21 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/SystemUIModesOverlay.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import android.os.Bundle;
20 | import android.view.Window;
21 |
22 | /**
23 | * Version of demo that uses the action bar in overlay mode.
24 | */
25 | public class SystemUIModesOverlay extends SystemUIModes {
26 | @Override
27 | public void onCreate(Bundle savedInstanceState) {
28 | getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
29 | super.onCreate(savedInstanceState);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/Baseline2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 |
25 | /**
26 | * Baseline alignment in LinearLayout with a BOTTOM gravity.
27 | */
28 | public class Baseline2 extends Activity {
29 |
30 | @Override
31 | protected void onCreate(Bundle savedInstanceState) {
32 | super.onCreate(savedInstanceState);
33 | setContentView(R.layout.baseline_2);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/Baseline4.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 |
25 | /**
26 | * Baseline alignment in LinearLayout with mixed gravities.
27 | */
28 | public class Baseline4 extends Activity {
29 |
30 | @Override
31 | protected void onCreate(Bundle savedInstanceState) {
32 | super.onCreate(savedInstanceState);
33 | setContentView(R.layout.baseline_4);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/grid_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
30 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/filter_nfc.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 | android.nfc.tech.NfcF
20 |
21 |
22 |
23 |
24 | android.nfc.tech.NfcA
25 | android.nfc.tech.MifareClassic
26 | android.nfc.tech.Ndef
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/Baseline7.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 |
25 | /**
26 | * Baseline alignment in RelativeLayout with various font weights.
27 | */
28 | public class Baseline7 extends Activity {
29 |
30 | @Override
31 | protected void onCreate(Bundle savedInstanceState) {
32 | super.onCreate(savedInstanceState);
33 | setContentView(R.layout.baseline_7);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/animation_cloning.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
22 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/animation_loading.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
22 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/title_icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
32 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/preference/PreferenceDependencies.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.preference;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.os.Bundle;
22 | import android.preference.PreferenceActivity;
23 |
24 | public class PreferenceDependencies extends PreferenceActivity {
25 |
26 | @Override
27 | protected void onCreate(Bundle savedInstanceState) {
28 | super.onCreate(savedInstanceState);
29 |
30 | addPreferencesFromResource(R.xml.preference_dependencies);
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/animation_multi_property.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
22 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/grid_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
31 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/searchview_actionbar.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
22 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/animation_custom_evaluator.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
22 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/TableLayout12.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 | /**
25 | *
This example shows how to use cell spanning in a table layout.
26 | */
27 | public class TableLayout12 extends Activity {
28 | @Override
29 | protected void onCreate(Bundle savedInstanceState) {
30 | super.onCreate(savedInstanceState);
31 |
32 | setContentView(R.layout.table_layout_12);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/graphics/GradientDrawable1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.graphics;
18 |
19 | // Need the following import to get access to the app resources, since this
20 | // class is in a sub-package.
21 | import com.example.android.apis.R;
22 |
23 | import android.os.Bundle;
24 |
25 | public class GradientDrawable1 extends GraphicsActivity {
26 | @Override
27 | protected void onCreate(Bundle savedInstanceState) {
28 | super.onCreate(savedInstanceState);
29 | setContentView(R.layout.shape_drawable_1);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/TableLayout11.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import com.example.android.apis.R;
20 |
21 | import android.app.Activity;
22 | import android.os.Bundle;
23 |
24 | /**
25 | *
This example shows how to use horizontal gravity in a table layout.
26 | */
27 | public class TableLayout11 extends Activity {
28 | @Override
29 | protected void onCreate(Bundle savedInstanceState) {
30 | super.onCreate(savedInstanceState);
31 |
32 | setContentView(R.layout.table_layout_11);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/popup_menu_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
20 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/GridLayout1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2011 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import android.app.Activity;
20 | import android.os.Bundle;
21 | import com.example.android.apis.R;
22 |
23 | /**
24 | * Demonstrates using GridLayout to build the same "Simple Form" as in the
25 | * LinearLayout and RelativeLayout demos.
26 | */
27 | public class GridLayout1 extends Activity {
28 | protected void onCreate(Bundle savedInstanceState) {
29 | super.onCreate(savedInstanceState);
30 | setContentView(R.layout.grid_layout_1);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/ImageView1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 | import android.app.Activity;
20 | import android.os.Bundle;
21 |
22 | import com.example.android.apis.R;
23 |
24 |
25 | /**
26 | * Demonstrates setting size constraints on {@link android.widget.ImageView}
27 | *
28 | */
29 | public class ImageView1 extends Activity {
30 |
31 | @Override
32 | public void onCreate(Bundle savedInstanceState) {
33 | super.onCreate(savedInstanceState);
34 | setContentView(R.layout.image_view_1);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/horizontal_scroll_view1.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
23 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/layout_animation_6.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
30 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/android/apis/view/RelativeLayout1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.apis.view;
18 |
19 |
20 | //需要以下进口来获得访问该应用的资源,因为这
21 | //类是一个子包。
22 | import com.example.android.apis.R;
23 |
24 | import android.app.Activity;
25 | import android.os.Bundle;
26 |
27 |
28 | /**
29 | * 一个简单的布局这表明拉伸以便填充其它两个视图之间的空间。
30 | */
31 | public class RelativeLayout1 extends Activity {
32 |
33 | @Override
34 | protected void onCreate(Bundle savedInstanceState) {
35 | super.onCreate(savedInstanceState);
36 | setContentView(R.layout.relative_layout_1);
37 | }
38 | }
39 |
--------------------------------------------------------------------------------