Changed download map view on dashboard

This commit is contained in:
Denis 2015-01-14 15:52:12 +02:00
parent 034b82dba1
commit e3072af5d1
2 changed files with 12 additions and 8 deletions

View file

@ -27,6 +27,11 @@
android:textColor="@color/dashboard_descr_colol" android:textColor="@color/dashboard_descr_colol"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content"/> android:layout_height="wrap_content"/>
<ProgressBar android:id="@+id/ProgressBar"
android:visibility="gone"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
</LinearLayout> </LinearLayout>
<ImageButton android:id="@+id/btn_download" <ImageButton android:id="@+id/btn_download"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
@ -36,11 +41,4 @@
android:layout_height="@dimen/dashListItemHeight"/> android:layout_height="@dimen/dashListItemHeight"/>
</LinearLayout> </LinearLayout>
<ProgressBar android:id="@+id/ProgressBar"
android:layout_marginLeft="@dimen/dashFavIconMargin"
android:layout_marginRight="@dimen/dashFavIconMargin"
android:visibility="gone"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
</LinearLayout> </LinearLayout>

View file

@ -23,7 +23,8 @@ import android.view.ViewGroup;
import net.osmand.plus.helpers.FontCache; import net.osmand.plus.helpers.FontCache;
/** /**
* Created by Denis on 21.11.2014. * Created by Denis
* on 21.11.2014.
*/ */
public class DashUpdatesFragment extends DashBaseFragment { public class DashUpdatesFragment extends DashBaseFragment {
@ -159,6 +160,11 @@ public class DashUpdatesFragment extends DashBaseFragment {
return; return;
} }
cancelButton.setImageResource(R.drawable.cancel_button); cancelButton.setImageResource(R.drawable.cancel_button);
View view = (View)cancelButton.getParent();
if (view != null &&
view.findViewById(R.id.map_descr) != null){
view.findViewById(R.id.map_descr).setVisibility(View.GONE);
}
cancelButton.setOnClickListener(new View.OnClickListener() { cancelButton.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View view) { public void onClick(View view) {