mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-26 22:44:57 -04:00
Minor refactoring to StartServer layout/activity_start_server
This commit is contained in:
parent
5ae358c3d0
commit
0265800170
@ -14,12 +14,12 @@ public class StartServer extends AppCompatActivity {
|
|||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_start_server);
|
setContentView(R.layout.activity_start_server);
|
||||||
|
setUpToolbar();
|
||||||
FragmentManager fragmentManager = getSupportFragmentManager();
|
FragmentManager fragmentManager = getSupportFragmentManager();
|
||||||
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
|
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
|
||||||
ZimFileSelectFragment fragment = new ZimFileSelectFragment();
|
ZimFileSelectFragment fragment = new ZimFileSelectFragment();
|
||||||
fragmentTransaction.add(R.id.frameLayoutServer, fragment);
|
fragmentTransaction.add(R.id.frameLayoutServer, fragment);
|
||||||
fragmentTransaction.commit();
|
fragmentTransaction.commit();
|
||||||
setUpToolbar();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setUpToolbar() {
|
private void setUpToolbar() {
|
||||||
|
@ -5,6 +5,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:fitsSystemWindows="true"
|
||||||
android:id="@+id/constraintLayoutId"
|
android:id="@+id/constraintLayoutId"
|
||||||
tools:context=".webserver.StartServer"
|
tools:context=".webserver.StartServer"
|
||||||
>
|
>
|
||||||
@ -38,7 +39,7 @@
|
|||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="16dp"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
android:text="@string/server_textview_default_message"
|
android:text="@string/server_textview_default_message"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/appBarLayout2"
|
app:layout_constraintTop_toBottomOf="@+id/toolbar"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
@ -47,8 +48,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="16dp"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/textView"
|
app:layout_constraintTop_toBottomOf="@+id/textView"
|
||||||
tools:layout_editor_absoluteX="0dp"
|
/>
|
||||||
></FrameLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user