Add support for multiselect

This commit is contained in:
Jimmy Shih
2013-04-30 11:11:58 -07:00
parent 6a74a18e99
commit 520ae87f14
9 changed files with 256 additions and 115 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ limitations under the License.
android:paddingRight="12dp"
android:paddingTop="8dp"
android:shrinkColumns="1"
android:stretchColumns="1" >
android:stretchColumns="1"
style="@style/ListItem" >
<TableRow
android:layout_height="wrap_content"
android:layout_width="match_parent" >
+3
View File
@@ -29,6 +29,9 @@ limitations under the License.
<item name="android:orientation">horizontal</item>
<item name="android:measureWithLargestChild">true</item>
</style>
<style name="ListItem">
<item name="android:background">?android:attr/activatedBackgroundIndicator</item>
</style>
<style name="MyTracksActionBar" parent="@android:style/Widget.Holo.ActionBar">
<!-- Same image as the source except using a grey line instead of a blue line -->
<item name="android:background">@drawable/ab_transparent_dark_holo</item>
+15
View File
@@ -852,6 +852,21 @@ limitations under the License.
Imported %1$s from %2$s.
</string>
<!-- List item -->
<string name="list_deselect_all"
translation_description="Option to deselect all the items in a list.">
Deselect all
</string>
<string name="list_item_selected"
translation_description="Title indictating the number of items selected in a list.
%1$d: an integer value. E.g., '2'.">
%1$d selected
</string>
<string name="list_select_all"
translation_description="Option to select all the items in a list.">
Select all
</string>
<!-- Maps List -->
<string name="maps_list_error"
translation_description="When sending a track to an existing Google Map, the text on the Maps'
+2
View File
@@ -101,6 +101,8 @@ limitations under the License.
<item name="android:layout_gravity">center</item>
<item name="android:padding">8dp</item>
</style>
<!-- list item -->
<style name="ListItem" />
<!-- list item date -->
<style name="ListItemDate" parent="@style/TextSmall">
<item name="android:gravity">right</item>