Layout improvements (#637)

Layout improvements

Co-authored-by: M M Arif <mmarif@swatian.com>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/637
This commit is contained in:
M M Arif 2020-08-08 17:43:14 +02:00
parent 3eacfe91fe
commit d9cd04facf
41 changed files with 235 additions and 310 deletions

View File

@ -68,7 +68,7 @@ public class AddNewTeamMemberActivity extends BaseActivity {
final String instanceToken = "token " + tinyDb.getString(loginUid + "-token"); final String instanceToken = "token " + tinyDb.getString(loginUid + "-token");
ImageView closeActivity = findViewById(R.id.close); ImageView closeActivity = findViewById(R.id.close);
addNewTeamMember = findViewById(R.id.addNewTeamMeber); addNewTeamMember = findViewById(R.id.addNewTeamMember);
mRecyclerView = findViewById(R.id.recyclerViewUserSearch); mRecyclerView = findViewById(R.id.recyclerViewUserSearch);
mProgressBar = findViewById(R.id.progress_bar); mProgressBar = findViewById(R.id.progress_bar);
noData = findViewById(R.id.noData); noData = findViewById(R.id.noData);

View File

@ -93,7 +93,7 @@ public class ChangeLog {
androidx.appcompat.app.AlertDialog.Builder builder = new AlertDialog.Builder(changelogActivity); androidx.appcompat.app.AlertDialog.Builder builder = new AlertDialog.Builder(changelogActivity);
builder.setTitle(R.string.changelogTitle); builder.setTitle(R.string.changelogTitle);
builder.setMessage(Html.fromHtml("<small>" + changelogMessage + "</small>")); builder.setMessage(Html.fromHtml("<small>" + changelogMessage + "</small>"));
builder.setNegativeButton(R.string.close, (dialog, which) -> dialog.cancel()); builder.setNeutralButton(R.string.close, null);
builder.setCancelable(false); builder.setCancelable(false);
builder.create(); builder.create();
builder.show(); builder.show();

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -11,13 +12,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -39,7 +38,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -60,7 +59,7 @@
android:textColorHint="?attr/hintColor" android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor" android:textColorHighlight="?attr/primaryTextColor"
android:hint="@string/addCollaboratorSearchHint" android:hint="@string/addCollaboratorSearchHint"
android:imeOptions="actionSend"/> android:imeOptions="actionSend" />
<TextView <TextView
android:id="@+id/noData" android:id="@+id/noData"
@ -90,7 +89,6 @@
android:layout_marginEnd="0dp" android:layout_marginEnd="0dp"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:layout_marginBottom="0dp" android:layout_marginBottom="0dp"
android:scrollbars="vertical" android:scrollbars="vertical" />
/>
</LinearLayout> </LinearLayout>

View File

@ -1,11 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/layoutNewAccount" android:id="@+id/layoutNewAccount"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:orientation="vertical"> android:orientation="vertical">
@ -16,12 +15,11 @@
android:theme="@style/Widget.AppCompat.SearchView" android:theme="@style/Widget.AppCompat.SearchView"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -46,7 +44,7 @@
android:layout_marginEnd="20dp" android:layout_marginEnd="20dp"
android:textSize="18sp" /> android:textSize="18sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -54,8 +52,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:padding="20dp" android:padding="16dp"
android:layout_marginTop="50dp"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent">
<RelativeLayout <RelativeLayout
@ -124,4 +121,4 @@
</LinearLayout> </LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </LinearLayout>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:tools="http://schemas.android.com/tools" <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
@ -12,12 +12,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -39,12 +38,12 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
<EditText <EditText
android:id="@+id/addNewTeamMeber" android:id="@+id/addNewTeamMember"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="10dp" android:padding="10dp"
@ -66,7 +65,7 @@
android:id="@+id/noData" android:id="@+id/noData"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_margin="15dp" android:layout_margin="16dp"
android:gravity="center" android:gravity="center"
android:text="@string/noDataFound" android:text="@string/noDataFound"
android:textColor="?attr/primaryTextColor" android:textColor="?attr/primaryTextColor"

View File

@ -5,6 +5,4 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
tools:context=".activities.AddRemoveAssigneesActivity"> tools:context=".activities.AddRemoveAssigneesActivity" />
</RelativeLayout>

View File

@ -5,6 +5,4 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
tools:context=".activities.AddRemoveLabelsActivity"> tools:context=".activities.AddRemoveLabelsActivity" />
</RelativeLayout>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout
xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
@ -13,12 +13,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -40,7 +39,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -62,7 +61,7 @@
android:id="@+id/noDataUsers" android:id="@+id/noDataUsers"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_margin="15dp" android:layout_margin="16dp"
android:gravity="center" android:gravity="center"
android:text="@string/noDataFound" android:text="@string/noDataFound"
android:textColor="?attr/primaryTextColor" android:textColor="?attr/primaryTextColor"

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout <RelativeLayout
xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -13,12 +12,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -43,7 +41,7 @@
android:layout_marginEnd="20dp" android:layout_marginEnd="20dp"
android:textSize="18sp" /> android:textSize="18sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -66,7 +64,7 @@
android:id="@+id/noDataCommits" android:id="@+id/noDataCommits"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_margin="15dp" android:layout_margin="16dp"
android:gravity="center" android:gravity="center"
android:text="@string/noDataFound" android:text="@string/noDataFound"
android:textColor="?attr/primaryTextColor" android:textColor="?attr/primaryTextColor"

View File

@ -12,13 +12,12 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -40,7 +39,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -53,8 +52,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="20dp" android:padding="16dp"
android:paddingBottom="30dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:layout_width="match_parent" <LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical" android:orientation="vertical"
@ -12,12 +13,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -39,15 +39,14 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="20dp" android:padding="16dp"
android:paddingBottom="30dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView

View File

@ -13,12 +13,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -40,7 +39,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -52,7 +51,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="20dp" android:padding="16dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
@ -156,10 +155,6 @@
android:text="@string/newCreateButtonCopy" android:text="@string/newCreateButtonCopy"
android:textColor="@color/btnTextColor" /> android:textColor="@color/btnTextColor" />
<View
android:layout_width="match_parent"
android:layout_height="35dp"/>
</LinearLayout> </LinearLayout>
</ScrollView> </ScrollView>

View File

@ -13,12 +13,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -40,7 +39,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -52,7 +51,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="20dp" android:padding="16dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
@ -75,7 +74,7 @@
android:background="@drawable/shape_inputs" android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor" android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/hintColor" android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"/> android:textColorHighlight="?attr/primaryTextColor" />
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
@ -90,7 +89,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/shape_dropdown" android:background="@drawable/shape_dropdown"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:layout_marginBottom="10dp" > android:layout_marginBottom="10dp">
<Spinner <Spinner
android:id="@+id/releaseBranch" android:id="@+id/releaseBranch"
@ -126,7 +125,7 @@
android:background="@drawable/shape_inputs" android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor" android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/hintColor" android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"/> android:textColorHighlight="?attr/primaryTextColor" />
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
@ -185,10 +184,6 @@
android:text="@string/newCreateButtonCopy" android:text="@string/newCreateButtonCopy"
android:textColor="@color/btnTextColor" /> android:textColor="@color/btnTextColor" />
<View
android:layout_width="match_parent"
android:layout_height="35dp"/>
</LinearLayout> </LinearLayout>
</ScrollView> </ScrollView>

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:layout_width="match_parent" <LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical" android:orientation="vertical"
@ -12,12 +13,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -39,7 +39,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -51,7 +51,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="20dp" android:padding="16dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
@ -168,10 +168,6 @@
android:text="@string/newCreateButtonCopy" android:text="@string/newCreateButtonCopy"
android:textColor="@color/btnTextColor" /> android:textColor="@color/btnTextColor" />
<View
android:layout_width="match_parent"
android:layout_height="35dp" />
</LinearLayout> </LinearLayout>
</ScrollView> </ScrollView>

View File

@ -2,7 +2,6 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical" android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:background="?attr/primaryBackgroundColor"> android:background="?attr/primaryBackgroundColor">
@ -13,12 +12,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -40,7 +38,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -55,7 +53,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
</LinearLayout> </LinearLayout>

View File

@ -12,13 +12,12 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -40,7 +39,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -53,8 +52,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="20dp" android:padding="16dp"
android:paddingBottom="30dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView

View File

@ -13,12 +13,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -43,7 +42,7 @@
android:layout_marginEnd="20dp" android:layout_marginEnd="20dp"
android:textSize="18sp" /> android:textSize="18sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View File

@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
@ -13,12 +11,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -43,74 +40,77 @@
android:layout_marginEnd="20dp" android:layout_marginEnd="20dp"
android:textSize="18sp" /> android:textSize="18sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
<LinearLayout <ScrollView
android:id="@+id/singleFileContentsFrame"
android:layout_marginTop="50dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:orientation="vertical">
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:ignore="UselessParent">
<TextView
android:id="@+id/singleFileContents"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="?attr/primaryTextColor"
android:textSize="14sp"
android:padding="15dp"
android:textIsSelectable="true" />
</ScrollView>
</LinearLayout>
<LinearLayout
android:id="@+id/pdfViewFrame"
android:layout_marginTop="55dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:orientation="vertical">
<com.github.barteksc.pdfviewer.PDFView
android:id="@+id/pdfView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" />
</LinearLayout>
<org.mian.gitnex.helpers.highlightjs.HighlightJsView
android:id="@+id/singleCodeContents"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textSize="14sp" android:background="?attr/primaryBackgroundColor">
android:layout_marginTop="42dp"
android:visibility="gone" />
<com.github.chrisbanes.photoview.PhotoView <LinearLayout
android:id="@+id/imageView" android:layout_width="match_parent"
android:layout_centerInParent="true" android:layout_height="wrap_content"
android:visibility="gone" android:orientation="vertical">
android:layout_width="match_parent"
android:layout_height="match_parent"/> <LinearLayout
android:id="@+id/singleFileContentsFrame"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor"
android:padding="16dp"
android:orientation="vertical">
<TextView
android:id="@+id/singleFileContents"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="?attr/primaryTextColor"
android:textSize="14sp"
android:textIsSelectable="true" />
</LinearLayout>
<LinearLayout
android:id="@+id/pdfViewFrame"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor"
android:orientation="vertical">
<com.github.barteksc.pdfviewer.PDFView
android:id="@+id/pdfView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" />
</LinearLayout>
<org.mian.gitnex.helpers.highlightjs.HighlightJsView
android:id="@+id/singleCodeContents"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="14sp"
android:visibility="gone" />
<com.github.chrisbanes.photoview.PhotoView
android:id="@+id/imageView"
android:visibility="gone"
android:padding="16dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
</ScrollView>
<ProgressBar <ProgressBar
android:id="@+id/progress_bar" android:id="@+id/progress_bar"
style="@style/Base.Widget.AppCompat.ProgressBar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:indeterminate="true" android:indeterminate="true"
android:layout_gravity="center"
android:visibility="visible" /> android:visibility="visible" />
</RelativeLayout> </LinearLayout>

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout <RelativeLayout
xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -13,12 +12,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -43,7 +41,7 @@
android:layout_marginEnd="20dp" android:layout_marginEnd="20dp"
android:textSize="18sp" /> android:textSize="18sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -66,7 +64,7 @@
android:id="@+id/noData" android:id="@+id/noData"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_margin="15dp" android:layout_margin="16dp"
android:gravity="center" android:gravity="center"
android:text="@string/noDataFound" android:text="@string/noDataFound"
android:textColor="?attr/primaryTextColor" android:textColor="?attr/primaryTextColor"

View File

@ -13,14 +13,12 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" android:layout_height="?attr/actionBarSize"
android:layout_weight="1" android:layout_weight="1"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
app:popupTheme="@style/AppTheme.PopupOverlay"
app:title="@string/app_name" >
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
@ -31,7 +29,7 @@
android:textColor="?attr/primaryTextColor" android:textColor="?attr/primaryTextColor"
android:id="@+id/toolbar_title" /> android:id="@+id/toolbar_title" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View File

@ -15,13 +15,12 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" android:layout_height="?attr/actionBarSize"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:id="@+id/toolbar" android:id="@+id/toolbar"
app:titleTextColor="?attr/primaryTextColor" app:titleTextColor="?attr/primaryTextColor"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
android:theme="@style/Widget.AppCompat.SearchView" android:theme="@style/Widget.AppCompat.SearchView"
android:elevation="4dp"> android:elevation="4dp">
@ -34,7 +33,7 @@
android:textColor="?attr/primaryTextColor" android:textColor="?attr/primaryTextColor"
android:id="@+id/toolbar_title" /> android:id="@+id/toolbar_title" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
<FrameLayout <FrameLayout
android:id="@+id/fragment_container" android:id="@+id/fragment_container"

View File

@ -12,13 +12,12 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -51,7 +50,7 @@
</HorizontalScrollView> </HorizontalScrollView>
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -64,8 +63,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="20dp" android:padding="16dp"
android:paddingBottom="30dp"
android:orientation="vertical"> android:orientation="vertical">
<EditText <EditText

View File

@ -12,13 +12,12 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -40,7 +39,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -53,8 +52,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="20dp" android:padding="16dp"
android:paddingBottom="30dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView

View File

@ -12,13 +12,12 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -40,7 +39,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -53,8 +52,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="20dp" android:padding="16dp"
android:paddingBottom="30dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
@ -144,7 +142,7 @@
android:layout_gravity="end" android:layout_gravity="end"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="6dp" android:layout_height="60dp"
android:text="@string/newCreateButtonCopy" android:text="@string/newCreateButtonCopy"
android:textColor="@color/btnTextColor" /> android:textColor="@color/btnTextColor" />

View File

@ -12,13 +12,12 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -40,7 +39,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -53,8 +52,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="20dp" android:padding="16dp"
android:paddingBottom="30dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:layout_width="match_parent" <LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:fitsSystemWindows="true"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:background="?attr/primaryBackgroundColor"> android:background="?attr/primaryBackgroundColor">
@ -12,13 +12,12 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" android:layout_height="?attr/actionBarSize"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -40,23 +39,21 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
<ScrollView xmlns:tools="http://schemas.android.com/tools" <ScrollView
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:background="?attr/primaryBackgroundColor" > android:background="?attr/primaryBackgroundColor">
<LinearLayout <LinearLayout
android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="15dp" android:padding="16dp"
android:layout_marginStart="15dp" android:orientation="vertical">
android:layout_marginEnd="15dp"
android:paddingBottom="25dp" >
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@ -15,15 +15,13 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" android:layout_height="?attr/actionBarSize"
android:layout_weight="1" android:layout_weight="1"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
app:layout_scrollFlags="enterAlways" app:layout_scrollFlags="enterAlways">
app:popupTheme="@style/AppTheme.PopupOverlay"
app:title="@string/app_name">
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
@ -34,7 +32,7 @@
android:textColor="?attr/primaryTextColor" android:textColor="?attr/primaryTextColor"
android:id="@+id/toolbar_title" /> android:id="@+id/toolbar_title" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
<com.google.android.material.tabs.TabLayout <com.google.android.material.tabs.TabLayout
android:id="@+id/tabs" android:id="@+id/tabs"

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout
xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
@ -12,12 +12,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -38,7 +37,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:layout_width="match_parent" <LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical" android:orientation="vertical"
@ -12,7 +13,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -39,15 +40,14 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="20dp" android:padding="16dp"
android:paddingBottom="30dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView

View File

@ -12,13 +12,12 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -51,7 +50,7 @@
</HorizontalScrollView> </HorizontalScrollView>
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -64,8 +63,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="20dp" android:padding="16dp"
android:paddingBottom="30dp"
android:orientation="vertical"> android:orientation="vertical">
<com.hendraanggrian.appcompat.widget.SocialAutoCompleteTextView <com.hendraanggrian.appcompat.widget.SocialAutoCompleteTextView

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.coordinatorlayout.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main_content" android:id="@+id/main_content"
@ -15,14 +16,12 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" android:layout_height="?attr/actionBarSize"
android:layout_weight="1" android:layout_weight="1"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
app:popupTheme="@style/AppTheme.PopupOverlay"
app:title="@string/app_name">
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
@ -33,7 +32,7 @@
android:textColor="?attr/primaryTextColor" android:textColor="?attr/primaryTextColor"
android:id="@+id/toolbar_title" /> android:id="@+id/toolbar_title" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
<com.google.android.material.tabs.TabLayout <com.google.android.material.tabs.TabLayout
android:id="@+id/tabs" android:id="@+id/tabs"

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout
xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
@ -12,12 +12,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -38,7 +37,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout
xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
@ -12,12 +12,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -38,7 +37,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View File

@ -3,7 +3,6 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical" android:orientation="vertical"
android:background="?attr/primaryBackgroundColor"> android:background="?attr/primaryBackgroundColor">
@ -13,13 +12,12 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:theme="@style/AppTheme.AppBarOverlay" android:theme="@style/AppTheme.AppBarOverlay">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -41,7 +39,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View File

@ -3,7 +3,6 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/layoutReportingView" android:id="@+id/layoutReportingView"
android:orientation="vertical" android:orientation="vertical"
android:background="?attr/primaryBackgroundColor"> android:background="?attr/primaryBackgroundColor">
@ -14,13 +13,12 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:theme="@style/AppTheme.AppBarOverlay" android:theme="@style/AppTheme.AppBarOverlay">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -42,7 +40,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View File

@ -3,7 +3,6 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/layoutFileView" android:id="@+id/layoutFileView"
android:orientation="vertical" android:orientation="vertical"
android:background="?attr/primaryBackgroundColor"> android:background="?attr/primaryBackgroundColor">
@ -14,13 +13,12 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:theme="@style/AppTheme.AppBarOverlay" android:theme="@style/AppTheme.AppBarOverlay">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -42,7 +40,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View File

@ -3,7 +3,6 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/layoutReportingView" android:id="@+id/layoutReportingView"
android:orientation="vertical" android:orientation="vertical"
android:background="?attr/primaryBackgroundColor"> android:background="?attr/primaryBackgroundColor">
@ -14,13 +13,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
android:theme="@style/AppTheme.AppBarOverlay"
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -42,7 +39,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View File

@ -3,7 +3,6 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/layoutSettingsCerts" android:id="@+id/layoutSettingsCerts"
android:orientation="vertical" android:orientation="vertical"
android:background="?attr/primaryBackgroundColor"> android:background="?attr/primaryBackgroundColor">
@ -14,13 +13,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
android:theme="@style/AppTheme.AppBarOverlay"
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -42,7 +39,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View File

@ -3,7 +3,6 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical" android:orientation="vertical"
android:background="?attr/primaryBackgroundColor"> android:background="?attr/primaryBackgroundColor">
@ -13,13 +12,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
android:theme="@style/AppTheme.AppBarOverlay"
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -41,7 +38,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View File

@ -13,12 +13,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Widget.AppCompat.SearchView"> android:theme="@style/Widget.AppCompat.SearchView">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor">
tools:ignore="UnusedAttribute">
<ImageView <ImageView
android:id="@+id/close" android:id="@+id/close"
@ -40,7 +39,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="20sp" /> android:textSize="20sp" />
</androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View File

@ -62,6 +62,7 @@
<style name="AppSearchViewStyle" parent="Widget.AppCompat.SearchView"> <style name="AppSearchViewStyle" parent="Widget.AppCompat.SearchView">
<item name="searchHintIcon">@drawable/ic_search</item> <item name="searchHintIcon">@drawable/ic_search</item>
<item name="searchIcon">@null</item> <item name="searchIcon">@null</item>
<item name="queryBackground">@android:color/transparent</item>
<item name="closeIcon">@drawable/ic_close</item> <item name="closeIcon">@drawable/ic_close</item>
</style> </style>