Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2015-03-11 00:50:56 +01:00
commit 2e2c50eeae
2 changed files with 92 additions and 81 deletions

View file

@ -5,6 +5,19 @@
android:layout_height="wrap_content"
android:background="?attr/expandable_list_item_background"
android:minHeight="@dimen/list_item_height"
android:orientation="vertical" >
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/dashboard_divider"
android:focusable="false"
android:visibility="gone" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants"
android:orientation="horizontal"
android:paddingLeft="@dimen/list_content_padding" >
@ -17,7 +30,6 @@
android:layout_marginTop="@dimen/favorites_icon_top_margin"
android:src="@drawable/ic_sdcard" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
@ -57,8 +69,8 @@
android:id="@+id/type_name_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_small_group"
android:layout_gravity="center_vertical"/>
android:layout_gravity="center_vertical"
android:src="@drawable/ic_small_group" />
<TextView
android:id="@+id/type_name"
@ -68,30 +80,28 @@
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/showAllButtonTextSize"
tools:text="100500 km" />
</LinearLayout>
</LinearLayout>
<ImageButton
android:id="@+id/options"
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
android:layout_gravity="center_vertical"
android:visibility="gone"
android:focusable="false"
android:background="?attr/options_button_background"
android:src="?attr/list_settings_icon"/>
android:focusable="false"
android:src="?attr/list_settings_icon"
android:visibility="gone" />
<ImageButton
android:id="@+id/navigate_to"
android:layout_width="@dimen/dashListItemHeight"
android:layout_height="@dimen/dashListItemHeight"
android:layout_gravity="center_vertical"
android:visibility="gone"
android:layout_marginLeft="@dimen/dashFavIconMargin"
android:background="?attr/dashboard_button"
android:src="@drawable/ic_action_gdirections_light"/>
android:src="@drawable/ic_action_gdirections_light"
android:visibility="gone" />
</LinearLayout>
</LinearLayout>

View file

@ -91,6 +91,7 @@ public class DashRecentsFragment extends DashLocationFragment {
LayoutInflater inflater = getActivity().getLayoutInflater();
View view = inflater.inflate(R.layout.search_history_list_item, null, false);
SearchHistoryFragment.udpateHistoryItem(historyEntry, view, loc, getActivity(), getMyApplication());
view.findViewById(R.id.divider).setVisibility(View.VISIBLE);
view.findViewById(R.id.navigate_to).setVisibility(View.VISIBLE);
view.findViewById(R.id.navigate_to).setOnClickListener(new View.OnClickListener() {
@Override