upload android base code part9

This commit is contained in:
August 2018-08-08 20:16:11 +08:00
parent 5425409085
commit 071cdf34cd
2679 changed files with 329442 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

View file

@ -0,0 +1,29 @@
<!--
Copyright 2012 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.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true">
<shape android:shape="rectangle">
<solid android:color="@color/icon_background" />
<stroke android:width="1px" android:color="@android:color/holo_blue_light" />
</shape>
</item>
<item>
<shape android:shape="rectangle">
<solid android:color="@color/icon_background" />
</shape>
</item>
</selector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 KiB

View file

@ -0,0 +1,21 @@
<!--
Copyright 2012 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.
-->
<Switch xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="@dimen/editor_text_size"
android:visibility="gone" />

View file

@ -0,0 +1,33 @@
<!--
Copyright 2012 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">
<com.android.notificationstudio.MaxHeightScrollView
android:id="@+id/preview_scroller"
android:layout_width="@dimen/notification_panel_width"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="5dp" >
<include layout="@layout/preview" />
</com.android.notificationstudio.MaxHeightScrollView>
<include layout="@layout/editors" />
</FrameLayout>

View file

@ -0,0 +1,28 @@
<!--
Copyright 2012 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.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<include
android:layout_width="@dimen/notification_panel_width"
android:layout_height="match_parent"
layout="@layout/preview" />
<include layout="@layout/editors" />
</LinearLayout>

View file

@ -0,0 +1,20 @@
<!--
Copyright 2012 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.
-->
<View xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone" />

View file

@ -0,0 +1,40 @@
<!--
Copyright 2012 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.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/divider_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/editor_inset"
android:layout_marginTop="3dp"
android:textAllCaps="true"
android:textColor="@color/divider_text"
android:textSize="@dimen/editor_text_size" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginLeft="@dimen/editor_inset"
android:layout_marginRight="@dimen/editor_inset"
android:layout_marginTop="3dp"
android:background="@color/divider_text" />
</LinearLayout>

View file

@ -0,0 +1,111 @@
<!--
Copyright 2012 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.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/list_item_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/editor_inset" >
<TextView
android:id="@+id/caption"
android:layout_width="@dimen/editor_caption_width"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/caption_padding_bottom"
android:paddingTop="@dimen/caption_padding_top"
android:textSize="@dimen/editor_text_size" />
<EditText
android:id="@+id/text_editor"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignBaseline="@id/caption"
android:layout_toRightOf="@id/caption"
android:imeOptions="actionDone"
android:inputType="text"
android:paddingTop="0dp"
android:textSize="@dimen/editor_text_size"
android:visibility="gone" />
<View
android:layout_width="0px"
android:layout_height="0px"
android:focusable="true"
android:focusableInTouchMode="true" />
<ViewStub
android:id="@+id/boolean_editor_stub"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignBaseline="@id/caption"
android:layout_toRightOf="@id/caption"
android:textSize="@dimen/editor_text_size"
android:visibility="gone" />
<Spinner
android:id="@+id/drop_down_editor"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignBaseline="@id/caption"
android:layout_toRightOf="@id/caption"
android:focusable="true"
android:focusableInTouchMode="true"
android:visibility="gone" />
<HorizontalScrollView
android:id="@+id/icon_editor_scroller"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/caption"
android:scrollbars="none"
android:visibility="gone" >
<LinearLayout
android:id="@+id/icon_editor_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
</LinearLayout>
</HorizontalScrollView>
<Button
android:id="@+id/date_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@id/caption"
android:layout_toRightOf="@id/caption"
android:textSize="@dimen/editor_text_size"
android:visibility="gone" />
<Button
android:id="@+id/time_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@id/caption"
android:layout_toRightOf="@id/date_button"
android:textSize="@dimen/editor_text_size"
android:visibility="gone" />
<Button
android:id="@+id/reset_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@id/caption"
android:layout_toRightOf="@id/time_button"
android:text="@string/now"
android:textSize="@dimen/editor_text_size"
android:visibility="gone" />
</RelativeLayout>

View file

@ -0,0 +1,29 @@
<!--
Copyright 2012 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.
-->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/editors"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/black" >
<LinearLayout
android:id="@+id/items"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
</ScrollView>

View file

@ -0,0 +1,56 @@
<!--
Copyright 2012 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.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/preview"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<FrameLayout
android:id="@+id/ticker"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone" />
<ImageView
android:id="@+id/large_icon"
android:layout_width="@android:dimen/notification_large_icon_width"
android:layout_height="@android:dimen/notification_large_icon_height"
android:layout_alignParentLeft="true"
android:layout_below="@id/ticker"
android:scaleType="center"
android:visibility="gone"
tools:ignore="ContentDescription" />
<FrameLayout
android:id="@+id/oneU"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/ticker"
android:layout_marginTop="5dp"
android:layout_toRightOf="@id/large_icon"
android:visibility="gone" />
<FrameLayout
android:id="@+id/fourU"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/oneU"
android:layout_marginTop="5dp"
android:visibility="gone" />
</RelativeLayout>

View file

@ -0,0 +1,26 @@
<!--
Copyright 2012 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.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<include layout="@layout/preview" />
<include layout="@layout/editors" />
</LinearLayout>

View file

@ -0,0 +1,30 @@
<!--
Copyright 2012 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.
-->
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/action_share_code"
android:icon="@android:drawable/ic_menu_share"
android:showAsAction="never"
android:title="@string/share_generated_code"/>
<item
android:id="@+id/action_share_mockup"
android:icon="@android:drawable/ic_menu_share"
android:showAsAction="never"
android:title="@string/share_mockup"/>
</menu>

View file

@ -0,0 +1,24 @@
<!--
Copyright 2012 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="notification_panel_width">446dp</dimen>
<dimen name="caption_padding_bottom">6dp</dimen>
<dimen name="editor_text_size">16dp</dimen>
<dimen name="editor_caption_width">110dp</dimen>
</resources>

View file

@ -0,0 +1,21 @@
<!--
Copyright 2012 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="notification_panel_width">448dp</dimen>
</resources>

View file

@ -0,0 +1,21 @@
<!--
Copyright 2012 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="divider_text">@android:color/holo_blue_bright</color>
</resources>

View file

@ -0,0 +1,21 @@
<!--
Copyright 2012 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="caption_padding_top">6dp</dimen>
</resources>

View file

@ -0,0 +1,23 @@
<!--
Copyright 2012 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="gb_background">#dddddd</color>
<color name="divider_text">#dddddd</color>
<color name="icon_background">#3333B5E5</color>
</resources>

View file

@ -0,0 +1,33 @@
<!--
Copyright 2012 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="notification_panel_width">-1dp</dimen> <!-- MATCH_PARENT -->
<dimen name="editor_inset">8dp</dimen>
<dimen name="caption_padding_top">10dp</dimen>
<dimen name="caption_padding_bottom">0dp</dimen>
<dimen name="editor_text_size">12dp</dimen>
<dimen name="editor_caption_width">95dp</dimen>
<dimen name="editor_icon_size_small">40dp</dimen>
<dimen name="editor_icon_size_large">60dp</dimen>
<dimen name="editor_icon_outer_margin">5dp</dimen>
<dimen name="editor_icon_inner_margin">2dp</dimen>
<dimen name="editor_drop_down_padding">5dp</dimen>
<dimen name="editor_datetime_padding_v">0dp</dimen>
<dimen name="editor_datetime_padding_h">15dp</dimen>
</resources>

View file

@ -0,0 +1,55 @@
<!--
Copyright 2012 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">Notification Studio</string>
<string name="now">Now</string>
<string name="share_generated_code">Share generated code…</string>
<string name="share_mockup">Share mockup…</string>
<string name="preset">Preset</string>
<string name="small_icon">Small Icon</string>
<string name="content_title">Content Title</string>
<string name="content_text">Content Text</string>
<string name="sub_text">Sub Text</string>
<string name="large_icon">Large Icon</string>
<string name="content_info">Content Info</string>
<string name="number">Number</string>
<string name="when">When</string>
<string name="progress">Progress</string>
<string name="uses_chron">Uses Chron</string>
<string name="style">Style</string>
<string name="picture">Picture</string>
<string name="big_text">Big Text</string>
<string name="lines">Lines</string>
<string name="big_content_title">Big Content Title</string>
<string name="summary_text">Summary Text</string>
<string name="icon">Icon</string>
<string name="text">Text</string>
<string name="properties">Properties</string>
<string name="action_1">Action 1</string>
<string name="action_2">Action 2</string>
<string name="action_3">Action 3</string>
<string name="preset_custom">(custom)</string>
<string name="preset_basic">Basic example</string>
<string name="preset_email">Email example</string>
<string name="preset_photo">Photo example</string>
<string name="style_none">(none)</string>
<string name="style_big_picture">BigPictureStyle</string>
<string name="style_big_text">BigTextStyle</string>
<string name="style_inbox">InboxStyle</string>
</resources>