소스 검색

优化布局

zengjiebin 7 년 전
부모
커밋
2b9beb16a2

+ 1 - 1
app/src/main/AndroidManifest.xml

@@ -302,7 +302,7 @@
         <activity android:name="com.sheep.gamegroup.view.activity.ActXinwanWeb" android:screenOrientation="portrait"/>
         <activity android:name="com.sheep.gamegroup.view.activity.TaskDetailCreditCardAct" android:screenOrientation="portrait"/>
         <activity android:name="com.sheep.gamegroup.view.activity.TaskDetailAddQQAct" android:screenOrientation="portrait"/>
-        <activity android:name="com.sheep.gamegroup.view.activity.ActWeb" android:screenOrientation="portrait"/>
+        <activity android:name="com.sheep.gamegroup.view.activity.ActWeb" android:screenOrientation="portrait" android:hardwareAccelerated="false"/>
         <activity android:name="com.sheep.gamegroup.view.activity.ActMyMoney" android:screenOrientation="portrait"/>
         <activity android:name="com.sheep.gamegroup.view.activity.FeedbackAct" android:screenOrientation="portrait"/>
         <activity android:name="com.sheep.gamegroup.view.activity.ActMainGame" android:screenOrientation="portrait"/>

+ 1 - 0
app/src/main/java/com/sheep/gamegroup/view/activity/ActSearchGame.java

@@ -171,6 +171,7 @@ public class ActSearchGame extends BaseActivity {
                     @Override
                     public void onClick(View view) {
                         search_game_input.setText(item.getName());
+                        search_game_input.setSelection(search_game_input.getText().toString().length());
                     }
                 });
                 return true;

+ 16 - 32
app/src/main/java/com/sheep/gamegroup/view/adapter/TryMakeMoneyAdp.java

@@ -504,6 +504,22 @@ public class TryMakeMoneyAdp extends AdpCommonRecy<RecyleObj> {
                     detail_task_tv.setBackground(context.getResources().getDrawable(R.drawable.sp_bg_gradient_rectangle_blue));
                     detail_task_tv.setEnabled(true);
                     viewHolder.itemView.setEnabled(false);
+                    detail_task_tv.setOnClickListener(new View.OnClickListener() {
+                        @Override
+                        public void onClick(View v) {
+                            GAME_INSTEAD_OF_RECHARGE_GET.onEvent();
+                            CommonUtil.getInstance()
+                                    .gameAccountManager(context, Integer.parseInt(taskReleaseEty.getTask_id()), new Action1<BaseMessage>() {
+                                        @Override
+                                        public void call(BaseMessage baseMessage) {
+                                            G.showToast("领取成功");
+                                            EventBus.getDefault().post(new BigEvent().setEventTypes(EventTypes.GENERATION_ACCOUNT_REFRESH));
+
+
+                                        }
+                                    });
+                        }
+                    });
                 }
 
                 /**
@@ -524,38 +540,6 @@ public class TryMakeMoneyAdp extends AdpCommonRecy<RecyleObj> {
                     }
                 });
 
-                detail_task_tv.setOnClickListener(new View.OnClickListener() {
-                    @Override
-                    public void onClick(View v) {
-                        GAME_INSTEAD_OF_RECHARGE_GET.onEvent();
-                        CommonUtil.getInstance()
-                            .gameAccountManager(context, Integer.parseInt(taskReleaseEty.getTask_id()), new Action1<BaseMessage>() {
-                                @Override
-                                public void call(BaseMessage baseMessage) {
-                                    G.showToast("领取成功");
-                                    EventBus.getDefault().post(new BigEvent().setEventTypes(EventTypes.GENERATION_ACCOUNT_REFRESH));
-
-
-                                }
-                            });
-                    }
-                });
-                viewHolder.itemView.setOnClickListener(new View.OnClickListener() {
-                    @Override
-                    public void onClick(View v) {
-                        UMConfigUtils.IdEvent.TASK.commit(taskReleaseEty.getId());
-                        taskEty.setRunTask(0);
-                        taskEty.setBonus(taskReleaseEty.getBonus());
-                        taskEty.setRelease_task_id(taskReleaseEty.getId());
-                        taskEty.setName(taskReleaseEty.getName());
-                        if("0".equals(taskReleaseEty.getLast_num())){
-                            Jump2View.getInstance().goTaskDetailView(context,  taskReleaseEty.getId(), true);
-                            return;
-                        }
-                        Jump2View.getInstance().goTaskDetailView(context,  taskReleaseEty.getId());
-                    }
-                });
-
             }
 
             @Override

+ 4 - 7
app/src/main/res/layout/find_information_bottom_item.xml

@@ -55,26 +55,23 @@
         android:textColor="@color/red"
         android:textSize="17sp"
         android:gravity="center"
-        app:layout_constraintBottom_toTopOf="@+id/find_information_game_task"
         app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintTop_toTopOf="@+id/find_information_game_icon" />
+        app:layout_constraintTop_toTopOf="parent" />
 
     <TextView
         android:id="@+id/find_information_game_task0"
         style="@style/style_button_find"
         android:text="接受任务"
         android:visibility="gone"
-        app:layout_constraintBottom_toTopOf="@+id/find_information_game_task"
         app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintTop_toTopOf="@+id/find_information_game_icon" />
+        app:layout_constraintTop_toTopOf="parent" />
     <TextView
         android:id="@+id/find_information_game_task"
         style="@style/style_button_find"
         android:text="接受任务"
-        app:layout_constraintBottom_toBottomOf="@+id/find_information_game_icon"
+        app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintStart_toEndOf="@+id/find_information_game_name"
-        app:layout_constraintTop_toBottomOf="@+id/find_information_game_yuan" />
+        app:layout_constraintStart_toEndOf="@+id/find_information_game_name" />
 
     <TextView
         android:id="@+id/find_information_game_task_end_time"

+ 3 - 24
app/src/main/res/layout/try_makemoney_item_recommend.xml

@@ -51,17 +51,10 @@
 
         <TextView
             android:id="@+id/task_type_tv"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
             android:text="取消任务"
-            android:minWidth="@dimen/view_size_80"
-            android:textColor="@color/white"
-            android:textSize="@dimen/text_size_12"
-            android:gravity="center"
             app:layout_constraintTop_toTopOf="parent"
             app:layout_constraintEnd_toEndOf="parent"
-            android:padding="@dimen/content_padding_3"
-            android:background="@drawable/sp_bg_gradient_rectangle_blue_change"
+            style="@style/style_button_find"
             android:visibility="invisible"/>
 
         <RelativeLayout
@@ -159,28 +152,14 @@
             app:layout_constraintBottom_toBottomOf="parent">
             <TextView
                 android:id="@+id/detail_task_tv"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
                 android:text="取消任务"
-                android:minWidth="@dimen/view_size_80"
-                android:textColor="@color/white"
-                android:textSize="@dimen/text_size_12"
-                android:gravity="center"
-                android:padding="@dimen/content_padding_3"
                 android:layout_marginTop="@dimen/content_padding_small"
-                android:background="@drawable/sp_bg_gradient_rectangle_blue"/>
+                style="@style/style_button_find"/>
             <TextView
                 android:id="@+id/detail_task_tv_down"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
                 android:text="取消任务"
-                android:minWidth="@dimen/view_size_80"
-                android:textColor="@color/white"
-                android:textSize="@dimen/text_size_12"
-                android:gravity="center"
-                android:padding="@dimen/content_padding_3"
                 android:layout_marginTop="@dimen/content_padding_small"
-                android:background="@drawable/sp_bg_gradient_rectangle_blue"
+                style="@style/style_button_find"
                 android:visibility="gone"/>
 
         </RelativeLayout>

+ 1 - 1
app/src/main/res/values/common.xml

@@ -90,7 +90,7 @@
     <dimen name="orienteering_item_gao">40dp</dimen>
     <dimen name="orienteering_list_empty_gao">240dp</dimen>
 
-    <dimen name="find_bt_with">100dp</dimen>
+    <dimen name="find_bt_with">90dp</dimen>
     <dimen name="find_icon_with">70dp</dimen>
     <dimen name="find_game_top">68dp</dimen>
     <dimen name="find_game_top2">144dp</dimen>

+ 2 - 2
app/src/main/res/values/dd_styles.xml

@@ -31,7 +31,7 @@
         <item name="android:paddingBottom">4dp</item>
         <item name="android:paddingTop">4dp</item>
         <item name="android:textColor">@color/btn_color_main</item>
-        <item name="android:textSize">@dimen/text_size_15</item>
+        <item name="android:textSize">@dimen/text_size_12</item>
     </style>
     <style name="style_button_find2">
         <item name="android:layout_width">@dimen/find_bt_with</item>
@@ -41,7 +41,7 @@
         <item name="android:paddingBottom">4dp</item>
         <item name="android:paddingTop">4dp</item>
         <item name="android:textColor">@color/selector_color_main_tab2</item>
-        <item name="android:textSize">@dimen/text_size_15</item>
+        <item name="android:textSize">@dimen/text_size_12</item>
     </style>
     <style name="style_button_show" parent="button">
         <item name="android:layout_width">0dp</item>