-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #285 from isshe/master
- Loading branch information
Showing
1 changed file
with
48 additions
and
48 deletions.
There are no files selected for viewing
96 changes: 48 additions & 48 deletions
96
...s/homeworks/Net1314080903212Activity.java → ...14080903212/Net1314080903212Activity.java
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
package edu.hzuapps.androidworks.homeworks; | ||
|
||
import android.os.Bundle; | ||
import android.util.Log; | ||
import android.view.Menu; | ||
import android.view.MenuItem; | ||
import android.view.ViewGroup; | ||
import android.widget.LinearLayout; | ||
import android.widget.TextView; | ||
|
||
import edu.hzuapps.androidworks.R; | ||
//import edu.hzuapps.androidworks.homeworks.Net1314080903212; | ||
|
||
/** | ||
* Created by dell on 2016/3/21. | ||
*/ | ||
public class Net1314080903212 extends BackActivity { | ||
|
||
private LinearLayout mTextContainer; | ||
|
||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
|
||
// TextView textView = new TextView(this); | ||
// textView.setText("isshe"); | ||
|
||
createViewInJava(); | ||
setContentView(mTextContainer); | ||
|
||
// 默认使用XML创建的View | ||
// setContentView(R.layout.net1314080903212); | ||
|
||
} | ||
|
||
private void createViewInJava() { | ||
mTextContainer = new LinearLayout(this); | ||
ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams( // | ||
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); | ||
mTextContainer.setLayoutParams(layoutParams); | ||
mTextContainer.setOrientation(LinearLayout.HORIZONTAL); | ||
|
||
TextView textView = new TextView(this); | ||
textView.setText("isshe: Net13140809032122"); | ||
|
||
mTextContainer.addView(textView); | ||
} | ||
|
||
} | ||
package edu.hzuapps.androidworks.homeworks; | ||
|
||
import android.os.Bundle; | ||
import android.util.Log; | ||
import android.view.Menu; | ||
import android.view.MenuItem; | ||
import android.view.ViewGroup; | ||
import android.widget.LinearLayout; | ||
import android.widget.TextView; | ||
|
||
import edu.hzuapps.androidworks.R; | ||
//import edu.hzuapps.androidworks.homeworks.Net1314080903212; | ||
|
||
/** | ||
* Created by dell on 2016/3/21. | ||
*/ | ||
public class Net1314080903212 extends BackActivity { | ||
|
||
private LinearLayout mTextContainer; | ||
|
||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
|
||
// TextView textView = new TextView(this); | ||
// textView.setText("isshe"); | ||
|
||
createViewInJava(); | ||
setContentView(mTextContainer); | ||
|
||
// 默认使用XML创建的View | ||
// setContentView(R.layout.net1314080903212); | ||
|
||
} | ||
|
||
private void createViewInJava() { | ||
mTextContainer = new LinearLayout(this); | ||
ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams( // | ||
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); | ||
mTextContainer.setLayoutParams(layoutParams); | ||
mTextContainer.setOrientation(LinearLayout.HORIZONTAL); | ||
|
||
TextView textView = new TextView(this); | ||
textView.setText("isshe: Net13140809032122"); | ||
|
||
mTextContainer.addView(textView); | ||
} | ||
|
||
} |