am 5fed2354: Merge "Clean up some resources: - remove duplicated desk clocks since they were really the same icon. - shrink down the tab indicator icons to a suitable size - remove title bar from activity" into gingerbread
Merge commit '5fed2354d2ffb374ea84641eed0fe287fb26c3ce' into gingerbread-plus-aosp * commit '5fed2354d2ffb374ea84641eed0fe287fb26c3ce': Clean up some resources:
This commit is contained in:
@@ -22,7 +22,9 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.android.apps.tag">
|
package="com.android.apps.tag">
|
||||||
<application android:label="Tags">
|
<application android:label="Tags">
|
||||||
<activity android:name="TagBrowserActivity" android:icon="@drawable/ic_launcher_nfc">
|
<activity android:name="TagBrowserActivity"
|
||||||
|
android:icon="@drawable/ic_launcher_nfc"
|
||||||
|
android:theme="@style/Tags.TagBrowserTheme" >
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN"/>
|
<action android:name="android.intent.action.MAIN"/>
|
||||||
<category android:name="android.intent.category.LAUNCHER"/>
|
<category android:name="android.intent.category.LAUNCHER"/>
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<item android:drawable="@drawable/ic_menu_desk_clock"
|
|
||||||
android:state_selected="true" />
|
|
||||||
<item android:drawable="@drawable/ic_menu_desk_clock48" />
|
|
||||||
</selector>
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 4.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.2 KiB |
BIN
apps/Tag/res/drawable/ic_menu_tag.png
Normal file
BIN
apps/Tag/res/drawable/ic_menu_tag.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
@@ -1,21 +1,39 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2010 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.
|
||||||
|
-->
|
||||||
|
|
||||||
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
|
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@android:id/tabhost"
|
android:id="@android:id/tabhost"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="fill_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="match_parent">
|
||||||
android:padding="5dp">
|
|
||||||
<TabWidget
|
<TabWidget
|
||||||
android:id="@android:id/tabs"
|
android:id="@android:id/tabs"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@android:id/tabcontent"
|
android:id="@android:id/tabcontent"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="match_parent"
|
||||||
android:padding="5dp" />
|
android:padding="5dp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</TabHost>
|
</TabHost>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!-- Copyright (C) 2010 The Android Open Source Project
|
<!--
|
||||||
|
Copyright (C) 2010 The Android Open Source Project
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
@@ -13,13 +14,10 @@
|
|||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<style name="Tags.TagBrowserTheme" parent="@android:style/Theme.NoTitleBar">
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
<EditText xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/text"
|
</resources>
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:textSize="18sp"
|
|
||||||
android:autoText="true"
|
|
||||||
android:capitalize="sentences"
|
|
||||||
android:text="@string/hello_activity_text_text" />
|
|
||||||
|
|
||||||
@@ -43,14 +43,13 @@ public class TagBrowserActivity extends TabActivity {
|
|||||||
.putExtra(TagList.SHOW_SAVED_ONLY, true);
|
.putExtra(TagList.SHOW_SAVED_ONLY, true);
|
||||||
Intent iRecentList = new Intent().setClass(this, TagList.class);
|
Intent iRecentList = new Intent().setClass(this, TagList.class);
|
||||||
|
|
||||||
|
|
||||||
TabHost.TabSpec spec1 = tabHost.newTabSpec("1")
|
TabHost.TabSpec spec1 = tabHost.newTabSpec("1")
|
||||||
.setIndicator("Saved", res.getDrawable(R.drawable.ic_launcher_nfc))
|
.setIndicator("Saved", res.getDrawable(R.drawable.ic_menu_tag))
|
||||||
.setContent(iSavedList);
|
.setContent(iSavedList);
|
||||||
tabHost.addTab(spec1);
|
tabHost.addTab(spec1);
|
||||||
|
|
||||||
TabHost.TabSpec spec2 = tabHost.newTabSpec("2")
|
TabHost.TabSpec spec2 = tabHost.newTabSpec("2")
|
||||||
.setIndicator("Recent", res.getDrawable(R.drawable.desk_clock))
|
.setIndicator("Recent", res.getDrawable(R.drawable.ic_menu_desk_clock))
|
||||||
.setContent(iRecentList);
|
.setContent(iRecentList);
|
||||||
tabHost.addTab(spec2);
|
tabHost.addTab(spec2);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user