Last active
September 16, 2015 13:10
-
-
Save curioustechizen/5b8d4b820cbbd87b0b0e to your computer and use it in GitHub Desktop.
Revisions
-
curioustechizen revised this gist
Sep 16, 2015 . No changes.There are no files selected for viewing
-
curioustechizen revised this gist
Sep 16, 2015 . 2 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes. -
curioustechizen created this gist
Sep 16, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ public class MainActivity extends Activity { private TextView tvHello; @Override public void onCreate(Bundle savedInstanceState) { setContentView(R.layout.layout); tvHello = (TextView) findViewById(R.id.tv_hello); } public void toggle(View v) { tvHello.setVisibility(View.GONE); } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:id="@+id/tv_hello" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello World!" /> <Button android:id="@+id/btn_toggle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Toggle" android:onClick="toggle" /> </LinearLayout>