mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2024-12-25 15:52:26 +01:00
couple more margin corrections
This commit is contained in:
parent
df633c534e
commit
55299869b3
@ -20,6 +20,7 @@ import android.widget.AdapterView;
|
||||
import android.widget.DatePicker;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.ListView;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.simplemobiletools.calendar.Constants;
|
||||
@ -35,6 +36,7 @@ import org.joda.time.DateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import butterknife.BindDimen;
|
||||
import butterknife.BindView;
|
||||
import butterknife.ButterKnife;
|
||||
import butterknife.OnClick;
|
||||
@ -47,6 +49,8 @@ public class DayActivity extends SimpleActivity
|
||||
@BindView(R.id.top_left_arrow) ImageView mLeftArrow;
|
||||
@BindView(R.id.top_right_arrow) ImageView mRightArrow;
|
||||
|
||||
@BindDimen(R.dimen.activity_margin) int mActivityMargin;
|
||||
|
||||
private static final int EDIT_EVENT = 1;
|
||||
public static final String DELETED_ID = "deleted_id";
|
||||
|
||||
@ -78,6 +82,12 @@ public class DayActivity extends SimpleActivity
|
||||
final int textColor = Utils.adjustAlpha(baseColor, Constants.HIGH_ALPHA);
|
||||
mLeftArrow.getDrawable().mutate().setColorFilter(textColor, PorterDuff.Mode.SRC_ATOP);
|
||||
mRightArrow.getDrawable().mutate().setColorFilter(textColor, PorterDuff.Mode.SRC_ATOP);
|
||||
|
||||
RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) mLeftArrow.getLayoutParams();
|
||||
params.setMargins(mActivityMargin, params.topMargin, params.rightMargin, params.bottomMargin);
|
||||
|
||||
params = (RelativeLayout.LayoutParams) mRightArrow.getLayoutParams();
|
||||
params.setMargins(params.leftMargin, params.topMargin, mActivityMargin, params.bottomMargin);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user