Changed download map view on dashboard
This commit is contained in:
parent
034b82dba1
commit
e3072af5d1
2 changed files with 12 additions and 8 deletions
|
@ -27,6 +27,11 @@
|
|||
android:textColor="@color/dashboard_descr_colol"
|
||||
android:layout_width="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>
|
||||
<ImageButton android:id="@+id/btn_download"
|
||||
android:layout_gravity="center_vertical"
|
||||
|
@ -36,11 +41,4 @@
|
|||
android:layout_height="@dimen/dashListItemHeight"/>
|
||||
</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>
|
|
@ -23,7 +23,8 @@ import android.view.ViewGroup;
|
|||
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 {
|
||||
|
||||
|
@ -159,6 +160,11 @@ public class DashUpdatesFragment extends DashBaseFragment {
|
|||
return;
|
||||
}
|
||||
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() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
|
|
Loading…
Reference in a new issue