Change file_selection

This commit is contained in:
J-Jamet
2018-01-12 18:56:25 +01:00
parent a1237215cc
commit b7a76ed2e7
2 changed files with 75 additions and 70 deletions

View File

@@ -17,7 +17,12 @@
You should have received a copy of the GNU General Public License
along with KeePass DX. If not, see <http://www.gnu.org/licenses/>.
-->
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
@@ -33,8 +38,7 @@
android:id="@+id/toolbar_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:expandedTitleTextAppearance="?attr/expandedTitleTextAppearance"
app:collapsedTitleTextAppearance="?attr/collapsedTitleTextAppearance"
app:titleEnabled="false"
app:contentScrim="?attr/colorPrimary"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
@@ -58,23 +62,24 @@
android:id="@+id/open_database"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/filename_container"
android:layout_marginStart="24dp"
android:layout_marginLeft="24dp"
android:layout_marginEnd="24dp"
android:layout_marginRight="24dp"
android:paddingTop="-20dp"
app:fabSize="mini"
app:layout_anchor="@id/filename_container"
app:layout_anchorGravity="bottom|start"
app:layout_anchorGravity="bottom|end"
android:src="@drawable/ic_open_folder_white_24dp" />
<RelativeLayout
<LinearLayout
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView android:id="@+id/file_listtop"
android:layout_marginTop="@dimen/default_margin"
android:layout_marginLeft="@dimen/default_margin"
android:layout_marginStart="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
@@ -87,8 +92,10 @@
<ListView
android:id="@+id/file_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/file_listtop" />
android:layout_height="match_parent" />
</LinearLayout>
</android.support.design.widget.CoordinatorLayout>
<android.support.design.widget.FloatingActionButton
android:id="@+id/create_database"
@@ -99,6 +106,4 @@
android:layout_alignParentBottom="true"
android:src="@drawable/ic_database_plus_white_24dp"
style="@style/KeepassDXStyle.Fab"/>
</RelativeLayout>
</android.support.design.widget.CoordinatorLayout>
</RelativeLayout>

View File

@@ -36,7 +36,7 @@
android:layout_marginStart="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
android:layout_marginEnd="@dimen/default_margin"
android:layout_marginBottom="12dp">
android:layout_marginBottom="22dp">
<TextView android:id="@+id/label_warning"
android:layout_width="wrap_content"
@@ -47,7 +47,7 @@
<TextView android:id="@+id/label_open_by_filename"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/KeepassDXStyle.TextAppearance.Title"
style="@style/KeepassDXStyle.TextAppearance.Inverse"
android:text="@string/enter_filename"/>
<android.support.v7.widget.AppCompatImageView