Commit e7d966b3 authored by fallenstardust's avatar fallenstardust

微调布局

parent e25567a7
...@@ -75,7 +75,7 @@ public class CardSearchFragment extends BaseFragemnt implements CardLoader.CallB ...@@ -75,7 +75,7 @@ public class CardSearchFragment extends BaseFragemnt implements CardLoader.CallB
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState); super.onCreateView(inflater, container, savedInstanceState);
View layoutView; View layoutView;
layoutView = inflater.inflate(R.layout.search_fragment, container, false); layoutView = inflater.inflate(R.layout.fragment_search, container, false);
mResult_count = layoutView.findViewById(R.id.search_result_count); mResult_count = layoutView.findViewById(R.id.search_result_count);
duelAssistantManagement = DuelAssistantManagement.getInstance(); duelAssistantManagement = DuelAssistantManagement.getInstance();
intentSearchMessage = getActivity().getIntent().getStringExtra(CardSearchFragment.SEARCH_MESSAGE); intentSearchMessage = getActivity().getIntent().getStringExtra(CardSearchFragment.SEARCH_MESSAGE);
......
...@@ -148,7 +148,7 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte ...@@ -148,7 +148,7 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState); super.onCreateView(inflater, container, savedInstanceState);
View layoutView; View layoutView;
layoutView = inflater.inflate(R.layout.activity_deck_cards, container, false); layoutView = inflater.inflate(R.layout.fragment_deck_cards, container, false);
AnimationShake2(layoutView); AnimationShake2(layoutView);
mImageLoader = new ImageLoader(true); mImageLoader = new ImageLoader(true);
mDrawerLayout = layoutView.findViewById(R.id.drawer_layout); mDrawerLayout = layoutView.findViewById(R.id.drawer_layout);
......
...@@ -20,7 +20,6 @@ import android.view.ViewGroup; ...@@ -20,7 +20,6 @@ import android.view.ViewGroup;
import android.view.inputmethod.EditorInfo; import android.view.inputmethod.EditorInfo;
import android.widget.Button; import android.widget.Button;
import android.widget.EditText; import android.widget.EditText;
import android.widget.ImageView;
import android.widget.ListView; import android.widget.ListView;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
...@@ -60,7 +59,6 @@ import cn.garymb.ygomobile.ui.adapters.ServerListAdapter; ...@@ -60,7 +59,6 @@ import cn.garymb.ygomobile.ui.adapters.ServerListAdapter;
import cn.garymb.ygomobile.ui.adapters.SimpleListAdapter; import cn.garymb.ygomobile.ui.adapters.SimpleListAdapter;
import cn.garymb.ygomobile.ui.cards.CardDetailRandom; import cn.garymb.ygomobile.ui.cards.CardDetailRandom;
import cn.garymb.ygomobile.ui.cards.DeckManagerFragment;
import cn.garymb.ygomobile.ui.mycard.MyCardActivity; import cn.garymb.ygomobile.ui.mycard.MyCardActivity;
import cn.garymb.ygomobile.ui.plus.DialogPlus; import cn.garymb.ygomobile.ui.plus.DialogPlus;
import cn.garymb.ygomobile.ui.plus.VUiKit; import cn.garymb.ygomobile.ui.plus.VUiKit;
...@@ -98,7 +96,7 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener { ...@@ -98,7 +96,7 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
if (isHorizontal) if (isHorizontal)
layoutView = inflater.inflate(R.layout.main_horizontal_fragment, container, false); layoutView = inflater.inflate(R.layout.main_horizontal_fragment, container, false);
else else
layoutView = inflater.inflate(R.layout.main_fragment, container, false); layoutView = inflater.inflate(R.layout.fragment_home, container, false);
initView(layoutView, savedInstanceState); initView(layoutView, savedInstanceState);
//event //event
......
...@@ -21,7 +21,7 @@ public class MycardFragment extends BaseFragemnt implements View.OnClickListener ...@@ -21,7 +21,7 @@ public class MycardFragment extends BaseFragemnt implements View.OnClickListener
if (isHorizontal) if (isHorizontal)
view = inflater.inflate(R.layout.mycard_horizontal_fragment, container, false); view = inflater.inflate(R.layout.mycard_horizontal_fragment, container, false);
else else
view = inflater.inflate(R.layout.mycard_fragment, container, false); view = inflater.inflate(R.layout.fragment_mycard, container, false);
this.currentBundle = savedInstanceState; this.currentBundle = savedInstanceState;
//initView(view); //initView(view);
return view; return view;
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
android:layout_height="70dp" android:layout_height="70dp"
android:layout_gravity="bottom" android:layout_gravity="bottom"
android:layout_marginLeft="10dp" android:layout_marginLeft="10dp"
android:layout_marginBottom="2dp" android:layout_marginBottom="70dp"
android:orientation="horizontal" android:orientation="horizontal"
android:weightSum="1"> android:weightSum="1">
...@@ -159,7 +159,8 @@ ...@@ -159,7 +159,8 @@
android:orientation="vertical" android:orientation="vertical"
android:paddingLeft="4dp" android:paddingLeft="4dp"
android:paddingTop="2dp" android:paddingTop="2dp"
android:paddingRight="5dp"> android:paddingRight="5dp"
android:layout_marginBottom="70dp">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
......
...@@ -23,16 +23,17 @@ ...@@ -23,16 +23,17 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:divider="@android:color/transparent" android:divider="@android:color/transparent"
android:layout_marginBottom="70dp"
android:dividerHeight="4dp" android:dividerHeight="4dp"
android:padding="5dp" android:padding="5dp"
android:scrollbars="none" /> android:scrollbars="vertical" />
<LinearLayout <LinearLayout
android:layout_width="60dp" android:layout_width="60dp"
android:layout_height="100dp" android:layout_height="100dp"
android:layout_gravity="bottom|right" android:layout_gravity="bottom|right"
android:layout_marginRight="20dp" android:layout_marginRight="20dp"
android:layout_marginBottom="60dp" android:layout_marginBottom="70dp"
android:orientation="vertical"> android:orientation="vertical">
<Button <Button
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
android:background="@drawable/red" android:background="@drawable/red"
android:orientation="vertical" android:orientation="vertical"
android:padding="10dp" android:padding="10dp"
android:layout_marginBottom="70dp"
android:theme="@style/AppTheme.PopupOverlay.Dark" android:theme="@style/AppTheme.PopupOverlay.Dark"
tools:showIn="@layout/search_fragment"> tools:showIn="@layout/fragment_search">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="60dp" android:layout_marginTop="10dp"
android:orientation="horizontal"> android:orientation="horizontal">
<com.google.android.material.textfield.TextInputLayout <com.google.android.material.textfield.TextInputLayout
...@@ -269,7 +269,6 @@ ...@@ -269,7 +269,6 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="60dp"
android:orientation="horizontal"> android:orientation="horizontal">
<androidx.appcompat.widget.AppCompatButton <androidx.appcompat.widget.AppCompatButton
......
...@@ -8,19 +8,19 @@ ...@@ -8,19 +8,19 @@
<fragment <fragment
android:id="@+id/home_fragment" android:id="@+id/home_fragment"
android:name="cn.garymb.ygomobile.ui.home.HomeFragment" android:name="cn.garymb.ygomobile.ui.home.HomeFragment"
tools:layout="@layout/main_fragment" /> tools:layout="@layout/fragment_home" />
<fragment <fragment
android:id="@+id/cardSearcher_fragment" android:id="@+id/cardSearcher_fragment"
android:name="cn.garymb.ygomobile.ui.cards.CardSearchFragment" android:name="cn.garymb.ygomobile.ui.cards.CardSearchFragment"
tools:layout="@layout/search_fragment"/> tools:layout="@layout/fragment_search"/>
<fragment <fragment
android:id="@+id/deckManager_fragment" android:id="@+id/deckManager_fragment"
android:name="cn.garymb.ygomobile.ui.cards.DeckManagerFragment" android:name="cn.garymb.ygomobile.ui.cards.DeckManagerFragment"
tools:layout="@layout/activity_deck_cards"/> tools:layout="@layout/fragment_deck_cards"/>
<fragment <fragment
android:id="@+id/mycard_fragment" android:id="@+id/mycard_fragment"
android:name="cn.garymb.ygomobile.ui.mycard.MycardFragment" android:name="cn.garymb.ygomobile.ui.mycard.MycardFragment"
tools:layout="@layout/mycard_fragment" /> tools:layout="@layout/fragment_mycard" />
<fragment <fragment
android:id="@+id/setting_fragment" android:id="@+id/setting_fragment"
android:name="cn.garymb.ygomobile.ui.preference.fragments.SettingFragment" android:name="cn.garymb.ygomobile.ui.preference.fragments.SettingFragment"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment