Changed minute tuner positions in grid, renamed NumberGrid to NumbersGridView
This commit is contained in:
parent
63cffaf0a2
commit
454851e2bf
@ -13,7 +13,7 @@ import com.philliphsu.clock2.R;
|
|||||||
* Created by Phillip Hsu on 7/21/2016.
|
* Created by Phillip Hsu on 7/21/2016.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public class NumberGrid extends GridLayout {
|
public class NumbersGridView extends GridLayout {
|
||||||
private static final String TAG = "NumberGrid";
|
private static final String TAG = "NumberGrid";
|
||||||
private static final int COLUMNS = 3;
|
private static final int COLUMNS = 3;
|
||||||
|
|
||||||
@ -32,12 +32,12 @@ public class NumberGrid extends GridLayout {
|
|||||||
void onNumberSelected(int number);
|
void onNumberSelected(int number);
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberGrid(Context context, AttributeSet attrs) {
|
public NumbersGridView(Context context, AttributeSet attrs) {
|
||||||
super(context, attrs);
|
super(context, attrs);
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberGrid(Context context) {
|
public NumbersGridView(Context context) {
|
||||||
super(context);
|
super(context);
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
@ -111,7 +111,7 @@ public class NumberGrid extends GridLayout {
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
setNumbers(new int[] {0,5,10,15,20,25,30,35,40,45,50,55}, true);
|
setNumbers(new int[] {0,5,10,15,20,25,30,35,40,45,50,55}, true);
|
||||||
inflate(getContext(), R.layout.content_number_grid_minute_tuners, NumberGrid.this);
|
inflate(getContext(), R.layout.content_number_grid_minute_tuners, NumbersGridView.this);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
i++;
|
i++;
|
||||||
@ -7,11 +7,13 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
style="@style/GridLayoutNumpadElement"
|
style="@style/GridLayoutNumpadElement"
|
||||||
android:src="@drawable/ic_minus_circle_24dp"
|
android:src="@drawable/ic_minus_circle_24dp"
|
||||||
app:layout_gravity="center"/>
|
app:layout_gravity="center"
|
||||||
|
app:layout_column="1"/>
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
style="@style/GridLayoutNumpadElement"
|
style="@style/GridLayoutNumpadElement"
|
||||||
android:src="@drawable/ic_add_circle_24dp"
|
android:src="@drawable/ic_add_circle_24dp"
|
||||||
app:layout_gravity="center"/>
|
app:layout_gravity="center"
|
||||||
|
app:layout_column="2"/>
|
||||||
</merge>
|
</merge>
|
||||||
Loading…
Reference in New Issue
Block a user