소스 검색

Apex Mobile
解决Android container search 的segment view 无法显全的问题。

Ray Zhang 8 년 전
부모
커밋
af9d5837fd

+ 4 - 4
Apex Mobile/app/src/main/java/com/usai/apex/SegmentView.java

@@ -41,8 +41,8 @@ public class SegmentView extends LinearLayout {
 //        rightTextView.setPadding(8,0,8,0);
 
         // 设置textview的布局宽高并设置为weight属性都为1
-        leftTextView.setLayoutParams(new LayoutParams(0, LayoutParams.WRAP_CONTENT, 1));
-        rightTextView.setLayoutParams(new LayoutParams(0, LayoutParams.WRAP_CONTENT, 1));
+        leftTextView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT, 1));
+        rightTextView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT, 1));
 
         // 初始化的默认文字
         leftTextView.setText("H BOL");
@@ -58,8 +58,8 @@ public class SegmentView extends LinearLayout {
         rightTextView.setGravity(Gravity.CENTER);
 
         // 设置textview的内边距
-        leftTextView.setPadding(20, 10, 20, 10);
-        rightTextView.setPadding(20, 10, 20, 10);
+        leftTextView.setPadding(10, 10, 10, 10);
+        rightTextView.setPadding(10, 10, 10, 10);
 
         // 设置文字大小
         setSegmentTextSize(17);

+ 2 - 3
Apex Mobile/app/src/main/java/com/usai/apex/mainframe/ToolsFragment.java

@@ -1,6 +1,5 @@
 package com.usai.apex.mainframe;
 
-import android.app.Dialog;
 import android.content.ComponentName;
 import android.content.DialogInterface;
 import android.content.Intent;
@@ -253,9 +252,9 @@ public class ToolsFragment extends StaticModelistFragment
 		else if (type.equals("clear_login"))
 		{
 
-			String msg = "It will clear your account and password,are your sure?";
+			String msg = "Are you sure to clear saved login account and password?";
 			if (ApexTrackingApplication.m_bauthorized) {
-				msg = "It will clear your account and password then logout,are your sure?";
+				msg = "Are you sure to logout current account and clear login information?";
 			}
 
 			new AlertDialog.Builder(getContext())

+ 2 - 2
Apex Mobile/app/src/main/res/layout/actionbar_segmentview.xml

@@ -11,8 +11,8 @@
         android:layout_width="0dp"
         android:layout_height="wrap_content"
         android:layout_centerHorizontal="true"
-        android:paddingLeft="50dp"
-        android:paddingRight="50dp"
+        android:paddingLeft="30dp"
+        android:paddingRight="30dp"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintStart_toStartOf="parent"

+ 1 - 1
Apex Mobile/app/src/main/res/raw/tools.json

@@ -27,7 +27,7 @@
                  },
                 {
                   "name": "Clear Login Info",
-                  "detail": "Clear your account and password",
+                  "detail": "Clear your login account and password",
                   "icon": "mode_clear_login",
                   "type": "clear_login"
                 },