jon80
Member
I'm just wondering...
a) doesn't Android Studio create "OnClick" code anywhere, and, expect the developer to do the listening code, as Visual Studio does?
<ImageButton
android:layout_width="121dp"
android:layout_height="149dp"
android:id="@+id/imageButton"
android:layout_gravity="left|top"
style="@Style/ButtonBarButton"
android:src="@drawable/ic_launcher"
android:background="@color/black_overlay"
android
nClick=""
/>
b) Is this code at all logical, I am trying to figure out how to write working event trapping code, however I am seeing red!
FullscreenActivity.java
import android.widget.ImageButton;
...
protected void onCreate(Bundle savedInstanceState) {
....
//set properties of UI controls
Imagebutton ib1 = (imageButton) myView.findViewbyId(R.id.imageBautton);
a) doesn't Android Studio create "OnClick" code anywhere, and, expect the developer to do the listening code, as Visual Studio does?
<ImageButton
android:layout_width="121dp"
android:layout_height="149dp"
android:id="@+id/imageButton"
android:layout_gravity="left|top"
style="@Style/ButtonBarButton"
android:src="@drawable/ic_launcher"
android:background="@color/black_overlay"
android
nClick=""/>
b) Is this code at all logical, I am trying to figure out how to write working event trapping code, however I am seeing red!
FullscreenActivity.java
import android.widget.ImageButton;
...
protected void onCreate(Bundle savedInstanceState) {
....
//set properties of UI controls
Imagebutton ib1 = (imageButton) myView.findViewbyId(R.id.imageBautton);