From 2f9c768c0f6c1d76b316df6e633c5c3d398dc176 Mon Sep 17 00:00:00 2001 From: Zhengyu Peng Date: Sun, 13 Feb 2022 22:51:40 -0500 Subject: [PATCH] update --- .../com/rookiedev/hexapod/view/ControlView.kt | 26 ----- .../main/res/drawable/ic_circle_button.xml | 41 ++++++++ .../src/main/res/layout/activity_control.xml | 96 +++++++++++++++++-- 3 files changed, 127 insertions(+), 36 deletions(-) delete mode 100644 software/android/app/src/main/java/com/rookiedev/hexapod/view/ControlView.kt create mode 100644 software/android/app/src/main/res/drawable/ic_circle_button.xml diff --git a/software/android/app/src/main/java/com/rookiedev/hexapod/view/ControlView.kt b/software/android/app/src/main/java/com/rookiedev/hexapod/view/ControlView.kt deleted file mode 100644 index e802a61..0000000 --- a/software/android/app/src/main/java/com/rookiedev/hexapod/view/ControlView.kt +++ /dev/null @@ -1,26 +0,0 @@ -package com.rookiedev.hexapod.view - -import android.content.Context -import android.util.AttributeSet -import android.view.ViewGroup - -class ControlView : ViewGroup { - private val mContext: Context? = null - - constructor(context: Context) : super(context) { - // ... - } - - constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) { - // ... - } - - override fun onLayout(changed: Boolean, l: Int, t: Int, r: Int, b: Int) { - TODO("Not yet implemented") - } - - override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { - super.onMeasure(widthMeasureSpec, heightMeasureSpec) - } - -} diff --git a/software/android/app/src/main/res/drawable/ic_circle_button.xml b/software/android/app/src/main/res/drawable/ic_circle_button.xml new file mode 100644 index 0000000..19d4f7c --- /dev/null +++ b/software/android/app/src/main/res/drawable/ic_circle_button.xml @@ -0,0 +1,41 @@ + + + + + + + diff --git a/software/android/app/src/main/res/layout/activity_control.xml b/software/android/app/src/main/res/layout/activity_control.xml index 5ea075e..bc3da58 100644 --- a/software/android/app/src/main/res/layout/activity_control.xml +++ b/software/android/app/src/main/res/layout/activity_control.xml @@ -1,18 +1,94 @@ - - - \ No newline at end of file + android:layout_weight="1"> + +