Makes full use of the Android Support Design Library. A lot of small things fixed or improved. Added dozens of new colors.
This commit is contained in:
parent
b233b3b718
commit
31926d7983
45 changed files with 447 additions and 599 deletions
|
|
@ -7,7 +7,7 @@ import android.util.AttributeSet;
|
|||
import android.view.View;
|
||||
|
||||
import com.kabouzeid.gramophone.R;
|
||||
import com.kabouzeid.gramophone.views.CircleView;
|
||||
import com.kabouzeid.gramophone.views.ColorView;
|
||||
|
||||
public class ColorChooserPreference extends Preference {
|
||||
|
||||
|
|
@ -43,11 +43,10 @@ public class ColorChooserPreference extends Preference {
|
|||
|
||||
private void invalidateColor() {
|
||||
if (mView != null) {
|
||||
CircleView circle = (CircleView) mView.findViewById(R.id.circle);
|
||||
ColorView circle = (ColorView) mView.findViewById(R.id.circle);
|
||||
if (this.color != 0) {
|
||||
circle.setVisibility(View.VISIBLE);
|
||||
circle.setBackgroundColor(color);
|
||||
circle.setBorderColor(border);
|
||||
} else {
|
||||
circle.setVisibility(View.GONE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue