Commit cc84830b authored by fallenstardust's avatar fallenstardust

微调布局

parent 878f70f4
...@@ -12,7 +12,7 @@ public class SettingsActivity extends BaseActivity { ...@@ -12,7 +12,7 @@ public class SettingsActivity extends BaseActivity {
@Override @Override
protected void onCreate(@Nullable Bundle savedInstanceState) { protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.fragment_settings); setContentView(R.layout.activity_settings);
getSupportActionBar().hide(); getSupportActionBar().hide();
enableBackHome(); enableBackHome();
getFragmentManager().beginTransaction().replace(R.id.fragment, new SettingFragment()).commit(); getFragmentManager().beginTransaction().replace(R.id.fragment, new SettingFragment()).commit();
......
...@@ -11,7 +11,9 @@ ...@@ -11,7 +11,9 @@
android:id="@+id/fragment_content" android:id="@+id/fragment_content"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1"> android:layout_weight="1"
android:background="#80000000">
</FrameLayout> </FrameLayout>
<com.ashokvarma.bottomnavigation.BottomNavigationBar <com.ashokvarma.bottomnavigation.BottomNavigationBar
......
...@@ -3,8 +3,7 @@ ...@@ -3,8 +3,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:id="@+id/fragment_search" android:id="@+id/fragment_search">
android:background="@drawable/bg3">
<androidx.drawerlayout.widget.DrawerLayout <androidx.drawerlayout.widget.DrawerLayout
android:id="@+id/drawer_layout" android:id="@+id/drawer_layout"
......
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