mirror of https://github.com/MISP/misp-bump
156 lines
6.7 KiB
XML
156 lines
6.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
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="wrap_content"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:layout_margin="8dp"
|
|
android:animateLayoutChanges="true">
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clickable="true"
|
|
android:focusable="true">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/collapsedContent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/orgName"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:textAppearance="@style/Text.Title"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/date"
|
|
app:layout_constraintStart_toEndOf="@+id/syncStatus"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="Organisation A" />
|
|
|
|
<TextView
|
|
android:id="@+id/date"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:textAppearance="@style/Text.SubTitle"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="20.3.2019" />
|
|
|
|
<ImageView
|
|
android:id="@+id/syncStatus"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:tint="@color/status_red"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/ic_error_outline" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/expandedContent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="visible">
|
|
|
|
<lu.circl.mispbump.custom_views.MaterialPreferenceText
|
|
android:id="@+id/email"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:pref_icon="@drawable/ic_email_black_24dp"
|
|
app:subText="email@email.de"
|
|
app:text="Email" />
|
|
|
|
<lu.circl.mispbump.custom_views.MaterialPreferenceText
|
|
android:id="@+id/password"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/email"
|
|
app:pref_icon="@drawable/ic_key"
|
|
app:subText="000000000000"
|
|
app:text="Password" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/retryButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="8dp"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:padding="8dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/deleteButton"
|
|
app:layout_constraintTop_toBottomOf="@+id/password"
|
|
app:srcCompat="@drawable/ic_autorenew" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/deleteButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="8dp"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:padding="8dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/password"
|
|
app:srcCompat="@drawable/ic_delete_forever" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<!--<LinearLayout-->
|
|
<!--android:orientation="horizontal"-->
|
|
<!--android:layout_width="match_parent"-->
|
|
<!--android:layout_height="wrap_content"-->
|
|
<!--android:padding="8dp">-->
|
|
|
|
<!--<View-->
|
|
<!--android:layout_width="0dp"-->
|
|
<!--android:layout_height="0dp"-->
|
|
<!--android:layout_weight="1" />-->
|
|
|
|
<!--<ImageButton-->
|
|
<!--android:id="@+id/retryButton"-->
|
|
<!--android:layout_width="wrap_content"-->
|
|
<!--android:layout_height="wrap_content"-->
|
|
<!--android:layout_marginEnd="8dp"-->
|
|
<!--android:background="?attr/selectableItemBackground"-->
|
|
<!--android:padding="8dp"-->
|
|
<!--app:srcCompat="@drawable/ic_autorenew" />-->
|
|
|
|
<!--<ImageButton-->
|
|
<!--android:id="@+id/deleteButton"-->
|
|
<!--android:layout_width="wrap_content"-->
|
|
<!--android:layout_height="wrap_content"-->
|
|
<!--android:background="?attr/selectableItemBackground"-->
|
|
<!--android:padding="8dp"-->
|
|
<!--app:srcCompat="@drawable/ic_delete_forever" />-->
|
|
|
|
<!--</LinearLayout>-->
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
</com.google.android.material.card.MaterialCardView> |