Permalink
Browse files

android 3.1.0 fix

  • Loading branch information...
shijiewei committed Dec 15, 2017
1 parent 0be5a13 commit 8f2c22bbd636b2d8470e275fb1b4e2b9a9e333ac
View
@@ -2,8 +2,8 @@
### This is a sample of SMSSDK for Unity3D.
**supported original SMSSDK version:**
- Android - V3.0.0
- iOS - V3.0.0
- Android - V3.1.0
- iOS - V3.1.0
----------------------------------------------------
Binary file not shown.
@@ -18,7 +18,6 @@ public class Demo : MonoBehaviour,SMSSDKHandler {
private string tempCode= "1319972";
private string code = "";
private string result = null;
private string tempCode= "1319972";
void Start ()
@@ -63,21 +62,22 @@ void OnGUI ()
GUI.skin.textField.fontSize = Convert.ToInt32 (14 * scale);
GUI.skin.textField.alignment = TextAnchor.MiddleCenter;
GUI.Label (new Rect ((Screen.width - btnWidth) / 2, btnTop+5, 100, btnHeight), "手机号");
float labelWidth = 60 * scale;
GUI.Label (new Rect ((Screen.width - btnWidth) / 2, btnTop+5, labelWidth, btnHeight), "手机号");
phone = GUI.TextField(new Rect((Screen.width - btnWidth) / 2 + 100, btnTop, btnWidth - 100, btnHeight), phone);
phone = GUI.TextField(new Rect((Screen.width - btnWidth) / 2 + labelWidth, btnTop, btnWidth - labelWidth, btnHeight), phone);
btnTop += btnHeight + 10 * scale;
GUI.Label (new Rect ((Screen.width - btnWidth) / 2, btnTop+5, 100, btnHeight), "区号");
GUI.Label (new Rect ((Screen.width - btnWidth) / 2, btnTop+5, labelWidth, btnHeight), "区号");
zone = GUI.TextField(new Rect((Screen.width - btnWidth) / 2 + 100, btnTop, btnWidth - 100, btnHeight), zone);
zone = GUI.TextField(new Rect((Screen.width - btnWidth) / 2 + labelWidth, btnTop, btnWidth - labelWidth, btnHeight), zone);
btnTop += btnHeight + 10 * scale;
GUI.Label (new Rect ((Screen.width - btnWidth) / 2, btnTop+5, 100, btnHeight), "验证码");
GUI.Label (new Rect ((Screen.width - btnWidth) / 2, btnTop+5, labelWidth, btnHeight), "验证码");
code = GUI.TextField(new Rect((Screen.width - btnWidth) / 2 + 100, btnTop, btnWidth - 100, btnHeight), code);
code = GUI.TextField(new Rect((Screen.width - btnWidth) / 2 + labelWidth, btnTop, btnWidth - labelWidth, btnHeight), code);
btnTop += btnHeight + 10 * scale;
View
Binary file not shown.

0 comments on commit 8f2c22b

Please sign in to comment.