Ray Zhang 12 anni fa
parent
commit
be1ee6fb7f

+ 15 - 0
Apex/res/layout/fragment_login.xml

@@ -87,8 +87,23 @@
                 android:text="@string/action_sign_in_register" />
 
         </RelativeLayout>
+
+        <TextView
+            android:id="@+id/tv_retrieve_pass"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_marginLeft="5dp"
+            android:layout_marginTop="5dp"
+            android:clickable="true"
+            android:focusable="true"
+            android:text="Retrieve password"
+            android:textAppearance="?android:attr/textAppearanceMedium"
+            android:textColor="@android:color/holo_blue_dark" />
+
     </LinearLayout>
 
+    
+
     <TextView
         android:id="@+id/tv_ver"
         android:layout_width="wrap_content"

+ 22 - 22
Apex/src/com/usai/apex/ApexActivity.java

@@ -44,28 +44,28 @@ public class ApexActivity extends FragmentActivity /*
 		setupTabs();
 	}
 
-	@Override
-	public boolean onCreateOptionsMenu(Menu menu) {
-		// Inflate the menu; this adds items to the action bar if it is present.
-		getMenuInflater().inflate(R.menu.apex, menu);
-		return true;
-	}
-
-	@Override
-	public boolean onOptionsItemSelected(MenuItem item) {
-		switch (item.getItemId()) {
-		case R.id.forget_password:
-			Intent intent = new Intent();
-			intent.setClass(this, RetrievePasswordActivity.class);
-			startActivity(intent);
-			
-			break;
-		default:
-			break;
-
-		}
-		return super.onOptionsItemSelected(item);
-	}
+//	@Override
+//	public boolean onCreateOptionsMenu(Menu menu) {
+//		// Inflate the menu; this adds items to the action bar if it is present.
+//		getMenuInflater().inflate(R.menu.apex, menu);
+//		return true;
+//	}
+//
+//	@Override
+//	public boolean onOptionsItemSelected(MenuItem item) {
+//		switch (item.getItemId()) {
+//		case R.id.forget_password:
+//			Intent intent = new Intent();
+//			intent.setClass(this, RetrievePasswordActivity.class);
+//			startActivity(intent);
+//			
+//			break;
+//		default:
+//			break;
+//
+//		}
+//		return super.onOptionsItemSelected(item);
+//	}
 
 	private void setupTabs() {
 		mTabHost = (TabHost) this.findViewById(R.id.tabhost);

+ 6 - 6
Apex/src/com/usai/apex/FunctionSelectActivity.java

@@ -50,12 +50,12 @@ public class FunctionSelectActivity extends FragmentActivity implements
 		btn_search.setOnClickListener(this);
 	}
 
-	@Override
-	public boolean onCreateOptionsMenu(Menu menu) {
-		// Inflate the menu; this adds items to the action bar if it is present.
-		getMenuInflater().inflate(R.menu.function_select, menu);
-		return true;
-	}
+//	@Override
+//	public boolean onCreateOptionsMenu(Menu menu) {
+//		// Inflate the menu; this adds items to the action bar if it is present.
+//		getMenuInflater().inflate(R.menu.function_select, menu);
+//		return true;
+//	}
 
 	@Override
 	public void onClick(View v) {

+ 11 - 0
Apex/src/com/usai/apex/LoginFragment.java

@@ -179,6 +179,17 @@ public class LoginFragment extends Fragment/* implements OnClickListener */
 						// showProgress(true);
 					}
 				});
+		
+		view.findViewById(R.id.tv_retrieve_pass).setOnClickListener(
+				new View.OnClickListener() {
+					@Override
+					public void onClick(View view) {
+						Intent intent = new Intent();
+						intent.setClass(getActivity(), RetrievePasswordActivity.class);
+						startActivity(intent);
+						// showProgress(true);
+					}
+				});
 		return view;
 		// return super.onCreateView(inflater, container, savedInstanceState);
 	}