mirror of https://github.com/MISP/misp-bump
92 lines
3.8 KiB
XML
92 lines
3.8 KiB
XML
<android.support.design.widget.CoordinatorLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
|
|
tools:context=".activity.SettingsActivity"
|
|
android:background="@color/colorPrimary">
|
|
|
|
<android.support.design.widget.AppBarLayout
|
|
android:id="@+id/settings.appbar"
|
|
app:elevation="0dp"
|
|
android:background="@color/colorPrimaryDark"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:theme="@style/AppTheme.AppBarOverlay">
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
android:backgroundTint="@color/colorPrimary"
|
|
android:background="@drawable/background_rounded_main"
|
|
app:popupTheme="@style/AppTheme.PopupOverlay"/>
|
|
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
<android.support.constraint.ConstraintLayout
|
|
android:id="@+id/constraintLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/background_rounded_main"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
<TextView
|
|
android:id="@+id/empty_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/empty_ext_org_dataset"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
<android.support.v4.widget.SwipeRefreshLayout
|
|
android:id="@+id/recycler_refresh"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<android.support.v7.widget.RecyclerView
|
|
android:id="@+id/orgRecyclerView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
|
</android.support.v4.widget.SwipeRefreshLayout>
|
|
|
|
|
|
</android.support.constraint.ConstraintLayout>
|
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
android:id="@+id/fab_add"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/fab_margin"
|
|
app:fabSize="normal"
|
|
app:layout_anchor="@+id/constraintLayout"
|
|
app:layout_anchorGravity="right|bottom"
|
|
app:srcCompat="@drawable/ic_add_white"/>
|
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
android:id="@+id/fab_sync"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="100dp"
|
|
android:visibility="gone"
|
|
app:fabSize="mini"
|
|
app:layout_anchor="@+id/fab_add"
|
|
app:layout_anchorGravity="top|center_horizontal"
|
|
app:srcCompat="@drawable/ic_sync_white"/>
|
|
|
|
</android.support.design.widget.CoordinatorLayout> |