Update Dashboard layout again
- follow UX spec - update also the Search Panels (suggestions / results) to follow the same specs See bug: #15384992 Setting Dashboard - padding updates Change-Id: I3d27a3b3d9779644f8ea123990a0c7bed8d4ba74
This commit is contained in:
@@ -34,6 +34,7 @@ public class DashboardTileView extends FrameLayout implements View.OnClickListen
|
||||
private ImageView mImageView;
|
||||
private TextView mTitleTextView;
|
||||
private TextView mStatusTextView;
|
||||
private View mDivider;
|
||||
|
||||
private int mColSpan = DEFAULT_COL_SPAN;
|
||||
|
||||
@@ -51,6 +52,7 @@ public class DashboardTileView extends FrameLayout implements View.OnClickListen
|
||||
mImageView = (ImageView) view.findViewById(R.id.icon);
|
||||
mTitleTextView = (TextView) view.findViewById(R.id.title);
|
||||
mStatusTextView = (TextView) view.findViewById(R.id.status);
|
||||
mDivider = view.findViewById(R.id.tile_divider);
|
||||
|
||||
setOnClickListener(this);
|
||||
setBackgroundResource(R.drawable.dashboard_tile_background);
|
||||
@@ -73,6 +75,10 @@ public class DashboardTileView extends FrameLayout implements View.OnClickListen
|
||||
mTile = tile;
|
||||
}
|
||||
|
||||
public void setDividerVisibility(boolean visible) {
|
||||
mDivider.setVisibility(visible ? View.VISIBLE : View.GONE);
|
||||
}
|
||||
|
||||
void setColumnSpan(int span) {
|
||||
mColSpan = span;
|
||||
}
|
||||
|
Reference in New Issue
Block a user