Skip to content

Commit 95d6aef

Browse files
committed
Added enough controls to begin coding the logic.
1 parent 7553112 commit 95d6aef

File tree

6 files changed

+80
-1
lines changed

6 files changed

+80
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ captures/
4141
.idea/dictionaries
4242
.idea/libraries
4343
.idea/caches
44+
.idea/*
4445

4546
# Keystore files
4647
# Uncomment the following line if you do not want to check your keystore files in.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/com/example/sprite/dton/ControlPanel.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@ protected void onCreate(Bundle savedInstanceState) {
1010
super.onCreate(savedInstanceState);
1111
setContentView(R.layout.activity_control_panel);
1212
}
13+
14+
public void btnAddFreq_onClick(android.view.View view) {
15+
16+
}
1317
}

app/src/main/res/layout/activity_control_panel.xml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,70 @@
7171
</LinearLayout>
7272
</ScrollView>
7373

74+
<Button
75+
android:id="@+id/btnAddFreq"
76+
android:layout_width="88dp"
77+
android:layout_height="wrap_content"
78+
android:layout_marginStart="44dp"
79+
android:layout_marginTop="224dp"
80+
android:layout_marginEnd="8dp"
81+
android:onClick="btnAddFreq_onClick"
82+
android:text="Add New"
83+
app:layout_constraintEnd_toEndOf="parent"
84+
app:layout_constraintHorizontal_bias="0.156"
85+
app:layout_constraintStart_toEndOf="@+id/scrFreqSet"
86+
app:layout_constraintTop_toBottomOf="@+id/tbxFreq" />
87+
88+
<EditText
89+
android:id="@+id/edtName"
90+
android:layout_width="153dp"
91+
android:layout_height="41dp"
92+
android:layout_marginStart="8dp"
93+
android:layout_marginEnd="8dp"
94+
android:ems="10"
95+
android:inputType="text"
96+
android:text="@string/freq_name_box"
97+
android:textSize="18sp"
98+
app:layout_constraintEnd_toEndOf="parent"
99+
app:layout_constraintStart_toEndOf="@+id/scrFreqSet"
100+
tools:layout_editor_absoluteY="235dp" />
101+
102+
<TextView
103+
android:id="@+id/txtToneName"
104+
android:layout_width="166dp"
105+
android:layout_height="33dp"
106+
android:layout_marginStart="8dp"
107+
android:layout_marginEnd="13dp"
108+
android:text="@string/freq_name_textbox"
109+
android:textAlignment="center"
110+
android:textSize="16sp"
111+
android:textStyle="bold"
112+
app:layout_constraintEnd_toEndOf="parent"
113+
app:layout_constraintStart_toEndOf="@+id/scrFreqSet"
114+
tools:layout_editor_absoluteY="194dp" />
115+
116+
<EditText
117+
android:id="@+id/edtFrequency"
118+
android:layout_width="150dp"
119+
android:layout_height="45dp"
120+
android:layout_marginStart="8dp"
121+
android:layout_marginEnd="12dp"
122+
android:ems="10"
123+
android:inputType="numberDecimal"
124+
android:text="@numeric/base_freq"
125+
app:layout_constraintEnd_toEndOf="parent"
126+
app:layout_constraintStart_toEndOf="@+id/scrFreqSet"
127+
tools:layout_editor_absoluteY="333dp" />
128+
129+
<TextView
130+
android:id="@+id/txtFrequency"
131+
android:layout_width="145dp"
132+
android:layout_height="27dp"
133+
android:text="@string/freq_value_textbox"
134+
android:textAlignment="center"
135+
android:textStyle="bold"
136+
tools:layout_editor_absoluteX="216dp"
137+
tools:layout_editor_absoluteY="287dp" />
138+
74139

75140
</android.support.constraint.ConstraintLayout>

app/src/main/res/values/strings.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
<string name="title">DTon</string>
44
<string name="freq_desc">Current frequency selected for playback</string>
55
<string name="freq_set_filler">What\'s the frequency, Kenneth?</string>
6+
<string name="freq_name_box">Tone Name</string>
7+
<string name="freq_name_textbox">Frequency Description</string>
8+
<string name="freq_value_textbox">Frequency (in Hz)</string>
69
</resources>

0 commit comments

Comments
 (0)