Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <LinearLayout
- android:layout_width="120dp"
- android:layout_height="120dp"
- android:layout_margin="2dp"
- android:layout_weight="1"
- android:background="@color/secondaryDarkColor"
- android:orientation="vertical"
- android:onClick="question1"
- android:id="@+id/LL1">
- <ImageButton
- android:layout_width="45dp"
- android:layout_height="45dp"
- android:layout_gravity="center"
- android:layout_marginTop="20dp"
- android:contentDescription="@string/garden0"
- android:onClick="question1"
- android:src="@drawable/garden0" />
- <TextView
- android:id="@+id/q6"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginTop="10dp"
- android:background="@color/primaryColor"
- android:padding="8dp"
- android:text="@string/q1"
- android:onClick="question1"/>
- </LinearLayout>
- public void question1(View view){
- LL1 = findViewById(R.id.LL1);
- LL1.setBackgroundColor(Color.DKGRAY);
- Intent intent = new Intent(MainActivity.this, Q1.class);
- startActivity(intent);
- };
Add Comment
Please, Sign In to add comment