upload android base code part7
This commit is contained in:
parent
4e516ec6ed
commit
841ae54672
25229 changed files with 1709508 additions and 0 deletions
|
@ -0,0 +1,22 @@
|
|||
<!-- Copyright (C) 2013 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:valueFrom="0"
|
||||
android:valueTo="@dimen/slide_up_down_fraction"
|
||||
android:propertyName="yFraction"
|
||||
android:valueType="floatType"
|
||||
android:duration="@integer/slide_up_down_duration">
|
||||
</objectAnimator>
|
|
@ -0,0 +1,22 @@
|
|||
<!-- Copyright (C) 2013 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:valueFrom="@dimen/slide_up_down_fraction"
|
||||
android:valueTo="0"
|
||||
android:propertyName="yFraction"
|
||||
android:valueType="floatType"
|
||||
android:duration="@integer/slide_up_down_duration" >
|
||||
</objectAnimator>
|
Binary file not shown.
After Width: | Height: | Size: 177 KiB |
Binary file not shown.
After Width: | Height: | Size: 9.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
|
@ -0,0 +1,20 @@
|
|||
<!-- Copyright (C) 2013 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/golden_gate" >
|
||||
</ImageView>
|
|
@ -0,0 +1,31 @@
|
|||
<!-- Copyright (C) 2013 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/move_to_back_container">
|
||||
|
||||
<fragment class="com.example.android.slidingfragments.ImageFragment"
|
||||
android:id="@+id/move_fragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<View android:id="@+id/dark_hover_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/black" />
|
||||
|
||||
</FrameLayout>
|
|
@ -0,0 +1,104 @@
|
|||
<!-- Copyright (C) 2013 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<com.example.android.slidingfragments.FractionalLinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="@dimen/slide_fragment_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/slide_fragment_horizontal_margin"
|
||||
android:orientation="vertical"
|
||||
android:background="@color/white">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/bridge"
|
||||
android:textColor="#000000"
|
||||
android:textStyle="bold"
|
||||
android:textSize="26sp"
|
||||
android:layout_marginBottom="@dimen/text_vertical_margin"
|
||||
android:layout_marginLeft="@dimen/text_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/text_horizontal_margin" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/summary"
|
||||
android:textSize="18sp"
|
||||
android:textColor="#000000"
|
||||
android:layout_marginBottom="@dimen/text_vertical_margin"
|
||||
android:layout_marginLeft="@dimen/text_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/text_horizontal_margin" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/length"
|
||||
android:textColor="#000000"
|
||||
android:layout_marginLeft="@dimen/text_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/text_horizontal_margin" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/span"
|
||||
android:textColor="#000000"
|
||||
android:layout_marginLeft="@dimen/text_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/text_horizontal_margin" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/construction"
|
||||
android:textColor="#000000"
|
||||
android:layout_marginLeft="@dimen/text_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/text_horizontal_margin" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/height"
|
||||
android:textColor="#000000"
|
||||
android:layout_marginLeft="@dimen/text_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/text_horizontal_margin" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/elevation"
|
||||
android:textColor="#000000"
|
||||
android:layout_marginLeft="@dimen/text_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/text_horizontal_margin" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/address"
|
||||
android:textColor="#000000"
|
||||
android:layout_marginLeft="@dimen/text_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/text_horizontal_margin" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/photo_credits"
|
||||
android:textColor="#000000"
|
||||
android:textSize="10sp"
|
||||
android:layout_marginTop="@dimen/text_vertical_margin"
|
||||
android:layout_marginLeft="@dimen/text_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/text_horizontal_margin" />
|
||||
|
||||
</com.example.android.slidingfragments.FractionalLinearLayout>
|
|
@ -0,0 +1,23 @@
|
|||
<!-- Copyright (C) 2013 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<color name="red">#ff0000</color>
|
||||
<color name="black">#000000</color>
|
||||
<color name="white">#ffffff</color>
|
||||
<color name="green">#00ff00</color>
|
||||
|
||||
</resources>
|
|
@ -0,0 +1,22 @@
|
|||
<!-- Copyright (C) 2013 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<dimen name="slide_fragment_horizontal_margin">50dp</dimen>
|
||||
<dimen name="text_vertical_margin">18dp</dimen>
|
||||
<dimen name="text_horizontal_margin">10dp</dimen>
|
||||
|
||||
</resources>
|
|
@ -0,0 +1,22 @@
|
|||
<!-- Copyright (C) 2013 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<integer name="slide_up_down_duration">200</integer>
|
||||
<integer name="half_slide_up_down_duration">150</integer>
|
||||
<integer name="slide_up_down_final_value">150</integer>
|
||||
|
||||
</resources>
|
|
@ -0,0 +1,20 @@
|
|||
<!-- Copyright (C) 2013 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<item name="slide_up_down_fraction" type="dimen" format="float">0.67</item>
|
||||
|
||||
</resources>
|
|
@ -0,0 +1,29 @@
|
|||
<!-- Copyright (C) 2013 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<string name="app_name">SlidingFragments</string>
|
||||
<string name="photo_credits"><b>Golden Gate Sunset</b> by <b>Romain Guy</b></string>
|
||||
<string name="address"><b>Address:</b> Golden Gate Bridge, San Francisco, CA 94129</string>
|
||||
<string name="elevation"><b>Elevation:</b> 220\' (67 m)</string>
|
||||
<string name="height"><b>Height:</b> 746\' (227 m)</string>
|
||||
<string name="construction"><b>Construction started:</b> 1933</string>
|
||||
<string name="span"><b>Longest span:</b> 4,200\' (1,280 m)</string>
|
||||
<string name="length"><b>Total length:</b> 8,980\' (2,737 m)</string>
|
||||
<string name="summary">"The Golden Gate Bridge is a suspension bridge spanning the Golden Gate, the opening of the San Francisco Bay into the Pacific Ocean."</string>
|
||||
<string name="bridge">Golden Gate Bridge</string>
|
||||
|
||||
</resources>
|
Loading…
Add table
Add a link
Reference in a new issue