Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
348d4707
Commit
348d4707
authored
Feb 01, 2019
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish Magisk Fragment UI
Remove AboutActivity at the same time
parent
6e7b90a1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
293 additions
and
432 deletions
+293
-432
AndroidManifest.xml
app/src/full/AndroidManifest.xml
+0
-3
d.java
app/src/full/java/a/d.java
+0
-7
l.java
app/src/full/java/a/l.java
+0
-22
AboutActivity.java
app/src/full/java/com/topjohnwu/magisk/AboutActivity.java
+0
-76
ClassMap.java
app/src/full/java/com/topjohnwu/magisk/ClassMap.java
+0
-3
MainActivity.java
app/src/full/java/com/topjohnwu/magisk/MainActivity.java
+0
-8
MagiskFragment.java
...l/java/com/topjohnwu/magisk/fragments/MagiskFragment.java
+38
-2
AboutCardRow.java
.../java/com/topjohnwu/magisk/uicomponents/AboutCardRow.java
+0
-75
UpdateCardHolder.java
...a/com/topjohnwu/magisk/uicomponents/UpdateCardHolder.java
+6
-0
activity_about.xml
app/src/full/res/layout/activity_about.xml
+0
-143
fragment_magisk.xml
app/src/full/res/layout/fragment_magisk.xml
+245
-49
update_card.xml
app/src/full/res/layout/update_card.xml
+1
-0
drawer.xml
app/src/full/res/menu/drawer.xml
+0
-12
attrs.xml
app/src/full/res/values/attrs.xml
+2
-31
styles.xml
app/src/full/res/values/styles.xml
+1
-1
No files found.
app/src/full/AndroidManifest.xml
View file @
348d4707
...
@@ -29,9 +29,6 @@
...
@@ -29,9 +29,6 @@
<category
android:name=
"android.intent.category.LAUNCHER"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</intent-filter>
</activity>
</activity>
<activity
android:name=
"a.d"
android:theme=
"@style/AppTheme.NoDrawer"
/>
<activity
<activity
android:name=
"a.f"
android:name=
"a.f"
android:configChanges=
"keyboardHidden|orientation|screenSize"
android:configChanges=
"keyboardHidden|orientation|screenSize"
...
...
app/src/full/java/a/d.java
deleted
100644 → 0
View file @
6e7b90a1
package
a
;
import
com.topjohnwu.magisk.AboutActivity
;
public
class
d
extends
AboutActivity
{
/* stub */
}
app/src/full/java/a/l.java
deleted
100644 → 0
View file @
6e7b90a1
package
a
;
import
android.content.Context
;
import
android.util.AttributeSet
;
import
com.topjohnwu.magisk.uicomponents.AboutCardRow
;
public
class
l
extends
AboutCardRow
{
/* stub */
public
l
(
Context
context
)
{
super
(
context
);
}
public
l
(
Context
context
,
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
}
public
l
(
Context
context
,
AttributeSet
attrs
,
int
defStyleAttr
)
{
super
(
context
,
attrs
,
defStyleAttr
);
}
}
app/src/full/java/com/topjohnwu/magisk/AboutActivity.java
deleted
100644 → 0
View file @
6e7b90a1
package
com
.
topjohnwu
.
magisk
;
import
android.net.Uri
;
import
android.os.Bundle
;
import
android.text.TextUtils
;
import
android.view.View
;
import
com.topjohnwu.magisk.components.BaseActivity
;
import
com.topjohnwu.magisk.uicomponents.AboutCardRow
;
import
com.topjohnwu.magisk.uicomponents.MarkDownWindow
;
import
com.topjohnwu.magisk.utils.AppUtils
;
import
java.util.Locale
;
import
androidx.annotation.Nullable
;
import
androidx.appcompat.app.ActionBar
;
import
androidx.appcompat.widget.Toolbar
;
import
butterknife.BindView
;
public
class
AboutActivity
extends
BaseActivity
{
@BindView
(
R
.
id
.
toolbar
)
Toolbar
toolbar
;
@BindView
(
R
.
id
.
app_version_info
)
AboutCardRow
appVersionInfo
;
@BindView
(
R
.
id
.
app_changelog
)
AboutCardRow
appChangelog
;
@BindView
(
R
.
id
.
app_translators
)
AboutCardRow
appTranslators
;
@BindView
(
R
.
id
.
app_source_code
)
AboutCardRow
appSourceCode
;
@BindView
(
R
.
id
.
support_thread
)
AboutCardRow
supportThread
;
@BindView
(
R
.
id
.
follow_twitter
)
AboutCardRow
twitter
;
@BindView
(
R
.
id
.
paypal
)
AboutCardRow
paypal
;
@BindView
(
R
.
id
.
patreon
)
AboutCardRow
patreon
;
@Override
public
int
getDarkTheme
()
{
return
R
.
style
.
AppTheme_NoDrawer_Dark
;
}
@Override
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_about
);
new
AboutActivity_ViewBinding
(
this
);
setSupportActionBar
(
toolbar
);
toolbar
.
setNavigationOnClickListener
(
view
->
finish
());
ActionBar
ab
=
getSupportActionBar
();
if
(
ab
!=
null
)
{
ab
.
setTitle
(
R
.
string
.
about
);
ab
.
setDisplayHomeAsUpEnabled
(
true
);
}
appVersionInfo
.
setSummary
(
String
.
format
(
Locale
.
US
,
"%s (%d) (%s)"
,
BuildConfig
.
VERSION_NAME
,
BuildConfig
.
VERSION_CODE
,
getPackageName
()));
appChangelog
.
setOnClickListener
(
v
->
{
MarkDownWindow
.
show
(
this
,
getString
(
R
.
string
.
app_changelog
),
getResources
().
openRawResource
(
R
.
raw
.
changelog
));
});
String
translators
=
getString
(
R
.
string
.
translators
);
if
(
TextUtils
.
isEmpty
(
translators
))
{
appTranslators
.
setVisibility
(
View
.
GONE
);
}
else
{
appTranslators
.
setSummary
(
translators
);
}
appSourceCode
.
setOnClickListener
(
v
->
AppUtils
.
openLink
(
this
,
Uri
.
parse
(
Const
.
Url
.
SOURCE_CODE_URL
)));
supportThread
.
setOnClickListener
(
v
->
AppUtils
.
openLink
(
this
,
Uri
.
parse
(
Const
.
Url
.
XDA_THREAD
)));
twitter
.
setOnClickListener
(
v
->
AppUtils
.
openLink
(
this
,
Uri
.
parse
(
Const
.
Url
.
TWITTER_URL
)));
paypal
.
setOnClickListener
(
v
->
AppUtils
.
openLink
(
this
,
Uri
.
parse
(
Const
.
Url
.
PAYPAL_URL
)));
patreon
.
setOnClickListener
(
v
->
AppUtils
.
openLink
(
this
,
Uri
.
parse
(
Const
.
Url
.
PATREON_URL
)));
setFloating
();
}
}
app/src/full/java/com/topjohnwu/magisk/ClassMap.java
View file @
348d4707
...
@@ -3,7 +3,6 @@ package com.topjohnwu.magisk;
...
@@ -3,7 +3,6 @@ package com.topjohnwu.magisk;
import
com.topjohnwu.magisk.components.DownloadModuleService
;
import
com.topjohnwu.magisk.components.DownloadModuleService
;
import
com.topjohnwu.magisk.components.GeneralReceiver
;
import
com.topjohnwu.magisk.components.GeneralReceiver
;
import
com.topjohnwu.magisk.components.UpdateCheckService
;
import
com.topjohnwu.magisk.components.UpdateCheckService
;
import
com.topjohnwu.magisk.uicomponents.AboutCardRow
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -15,12 +14,10 @@ public class ClassMap {
...
@@ -15,12 +14,10 @@ public class ClassMap {
classMap
.
put
(
App
.
class
,
a
.
e
.
class
);
classMap
.
put
(
App
.
class
,
a
.
e
.
class
);
classMap
.
put
(
MainActivity
.
class
,
a
.
b
.
class
);
classMap
.
put
(
MainActivity
.
class
,
a
.
b
.
class
);
classMap
.
put
(
SplashActivity
.
class
,
a
.
c
.
class
);
classMap
.
put
(
SplashActivity
.
class
,
a
.
c
.
class
);
classMap
.
put
(
AboutActivity
.
class
,
a
.
d
.
class
);
classMap
.
put
(
FlashActivity
.
class
,
a
.
f
.
class
);
classMap
.
put
(
FlashActivity
.
class
,
a
.
f
.
class
);
classMap
.
put
(
UpdateCheckService
.
class
,
a
.
g
.
class
);
classMap
.
put
(
UpdateCheckService
.
class
,
a
.
g
.
class
);
classMap
.
put
(
GeneralReceiver
.
class
,
a
.
h
.
class
);
classMap
.
put
(
GeneralReceiver
.
class
,
a
.
h
.
class
);
classMap
.
put
(
DownloadModuleService
.
class
,
a
.
j
.
class
);
classMap
.
put
(
DownloadModuleService
.
class
,
a
.
j
.
class
);
classMap
.
put
(
AboutCardRow
.
class
,
a
.
l
.
class
);
classMap
.
put
(
SuRequestActivity
.
class
,
a
.
m
.
class
);
classMap
.
put
(
SuRequestActivity
.
class
,
a
.
m
.
class
);
}
}
...
...
app/src/full/java/com/topjohnwu/magisk/MainActivity.java
View file @
348d4707
...
@@ -153,16 +153,12 @@ public class MainActivity extends BaseActivity
...
@@ -153,16 +153,12 @@ public class MainActivity extends BaseActivity
case
"settings"
:
case
"settings"
:
itemId
=
R
.
id
.
settings
;
itemId
=
R
.
id
.
settings
;
break
;
break
;
case
"about"
:
itemId
=
R
.
id
.
app_about
;
break
;
}
}
}
}
navigate
(
itemId
);
navigate
(
itemId
);
}
}
public
void
navigate
(
int
itemId
)
{
public
void
navigate
(
int
itemId
)
{
int
bak
=
mDrawerItem
;
mDrawerItem
=
itemId
;
mDrawerItem
=
itemId
;
navigationView
.
setCheckedItem
(
itemId
);
navigationView
.
setCheckedItem
(
itemId
);
switch
(
itemId
)
{
switch
(
itemId
)
{
...
@@ -188,10 +184,6 @@ public class MainActivity extends BaseActivity
...
@@ -188,10 +184,6 @@ public class MainActivity extends BaseActivity
case
R
.
id
.
settings
:
case
R
.
id
.
settings
:
displayFragment
(
new
SettingsFragment
(),
true
);
displayFragment
(
new
SettingsFragment
(),
true
);
break
;
break
;
case
R
.
id
.
app_about
:
startActivity
(
new
Intent
(
this
,
ClassMap
.
get
(
AboutActivity
.
class
)));
mDrawerItem
=
bak
;
break
;
}
}
}
}
...
...
app/src/full/java/com/topjohnwu/magisk/fragments/MagiskFragment.java
View file @
348d4707
package
com
.
topjohnwu
.
magisk
.
fragments
;
package
com
.
topjohnwu
.
magisk
.
fragments
;
import
android.net.Uri
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.view.LayoutInflater
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.View
;
...
@@ -10,6 +11,7 @@ import android.widget.LinearLayout;
...
@@ -10,6 +11,7 @@ import android.widget.LinearLayout;
import
com.topjohnwu.magisk.BuildConfig
;
import
com.topjohnwu.magisk.BuildConfig
;
import
com.topjohnwu.magisk.Config
;
import
com.topjohnwu.magisk.Config
;
import
com.topjohnwu.magisk.Const
;
import
com.topjohnwu.magisk.MainActivity
;
import
com.topjohnwu.magisk.MainActivity
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.components.BaseActivity
;
import
com.topjohnwu.magisk.components.BaseActivity
;
...
@@ -21,8 +23,10 @@ import com.topjohnwu.magisk.dialogs.UninstallDialog;
...
@@ -21,8 +23,10 @@ import com.topjohnwu.magisk.dialogs.UninstallDialog;
import
com.topjohnwu.magisk.tasks.CheckUpdates
;
import
com.topjohnwu.magisk.tasks.CheckUpdates
;
import
com.topjohnwu.magisk.uicomponents.ArrowExpandedViewHolder
;
import
com.topjohnwu.magisk.uicomponents.ArrowExpandedViewHolder
;
import
com.topjohnwu.magisk.uicomponents.ExpandableViewHolder
;
import
com.topjohnwu.magisk.uicomponents.ExpandableViewHolder
;
import
com.topjohnwu.magisk.uicomponents.MarkDownWindow
;
import
com.topjohnwu.magisk.uicomponents.SafetyNet
;
import
com.topjohnwu.magisk.uicomponents.SafetyNet
;
import
com.topjohnwu.magisk.uicomponents.UpdateCardHolder
;
import
com.topjohnwu.magisk.uicomponents.UpdateCardHolder
;
import
com.topjohnwu.magisk.utils.AppUtils
;
import
com.topjohnwu.magisk.utils.Topic
;
import
com.topjohnwu.magisk.utils.Topic
;
import
com.topjohnwu.net.Networking
;
import
com.topjohnwu.net.Networking
;
import
com.topjohnwu.superuser.Shell
;
import
com.topjohnwu.superuser.Shell
;
...
@@ -84,6 +88,35 @@ public class MagiskFragment extends BaseFragment
...
@@ -84,6 +88,35 @@ public class MagiskFragment extends BaseFragment
new
ManagerInstallDialog
(
requireActivity
()).
show
();
new
ManagerInstallDialog
(
requireActivity
()).
show
();
}
}
private
void
openLink
(
String
url
)
{
AppUtils
.
openLink
(
requireActivity
(),
Uri
.
parse
(
url
));
}
@OnClick
(
R
.
id
.
paypal
)
void
paypal
()
{
openLink
(
Const
.
Url
.
PAYPAL_URL
);
}
@OnClick
(
R
.
id
.
patreon
)
void
patreon
()
{
openLink
(
Const
.
Url
.
PATREON_URL
);
}
@OnClick
(
R
.
id
.
twitter
)
void
twitter
()
{
openLink
(
Const
.
Url
.
TWITTER_URL
);
}
@OnClick
(
R
.
id
.
github
)
void
github
()
{
openLink
(
Const
.
Url
.
SOURCE_CODE_URL
);
}
@OnClick
(
R
.
id
.
xda
)
void
xda
()
{
openLink
(
Const
.
Url
.
XDA_THREAD
);
}
@OnClick
(
R
.
id
.
uninstall_button
)
@OnClick
(
R
.
id
.
uninstall_button
)
void
uninstall
()
{
void
uninstall
()
{
new
UninstallDialog
(
requireActivity
()).
show
();
new
UninstallDialog
(
requireActivity
()).
show
();
...
@@ -108,8 +141,11 @@ public class MagiskFragment extends BaseFragment
...
@@ -108,8 +141,11 @@ public class MagiskFragment extends BaseFragment
safetyNet
=
new
SafetyNet
(
v
);
safetyNet
=
new
SafetyNet
(
v
);
magisk
=
new
UpdateCardHolder
(
inflater
,
root
);
magisk
=
new
UpdateCardHolder
(
inflater
,
root
);
manager
=
new
UpdateCardHolder
(
inflater
,
root
);
manager
=
new
UpdateCardHolder
(
inflater
,
root
);
root
.
addView
(
magisk
.
itemView
,
0
);
manager
.
setClickable
(
vv
->
root
.
addView
(
manager
.
itemView
,
1
);
MarkDownWindow
.
show
(
requireActivity
(),
null
,
getResources
().
openRawResource
(
R
.
raw
.
changelog
)));
root
.
addView
(
magisk
.
itemView
,
1
);
root
.
addView
(
manager
.
itemView
,
2
);
keepVerityChkbox
.
setChecked
(
Config
.
keepVerity
);
keepVerityChkbox
.
setChecked
(
Config
.
keepVerity
);
keepVerityChkbox
.
setOnCheckedChangeListener
((
view
,
checked
)
->
Config
.
keepVerity
=
checked
);
keepVerityChkbox
.
setOnCheckedChangeListener
((
view
,
checked
)
->
Config
.
keepVerity
=
checked
);
...
...
app/src/full/java/com/topjohnwu/magisk/uicomponents/AboutCardRow.java
deleted
100644 → 0
View file @
6e7b90a1
/*
* Copyright 2016 dvdandroid
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
topjohnwu
.
magisk
.
uicomponents
;
import
android.content.Context
;
import
android.content.res.TypedArray
;
import
android.graphics.drawable.Drawable
;
import
android.util.AttributeSet
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
com.topjohnwu.magisk.R
;
import
androidx.appcompat.content.res.AppCompatResources
;
import
butterknife.BindView
;
/**
* @author dvdandroid
*/
public
class
AboutCardRow
extends
LinearLayout
{
@BindView
(
android
.
R
.
id
.
title
)
TextView
mTitle
;
@BindView
(
android
.
R
.
id
.
summary
)
TextView
mSummary
;
@BindView
(
android
.
R
.
id
.
icon
)
ImageView
mIcon
;
@BindView
(
R
.
id
.
container
)
View
mView
;
public
AboutCardRow
(
Context
context
)
{
this
(
context
,
null
);
}
public
AboutCardRow
(
Context
context
,
AttributeSet
attrs
)
{
this
(
context
,
attrs
,
0
);
}
public
AboutCardRow
(
Context
context
,
AttributeSet
attrs
,
int
defStyleAttr
)
{
super
(
context
,
attrs
,
defStyleAttr
);
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
info_item_row
,
this
);
new
AboutCardRow_ViewBinding
(
this
,
this
);
TypedArray
a
=
context
.
getTheme
().
obtainStyledAttributes
(
attrs
,
R
.
styleable
.
AboutCardRow
,
0
,
0
);
String
title
=
a
.
getString
(
R
.
styleable
.
AboutCardRow_text
);
Drawable
icon
=
AppCompatResources
.
getDrawable
(
context
,
a
.
getResourceId
(
R
.
styleable
.
AboutCardRow_icon
,
R
.
drawable
.
ic_magisk
));
a
.
recycle
();
mTitle
.
setText
(
title
);
mIcon
.
setImageDrawable
(
icon
);
}
@Override
public
void
setOnClickListener
(
OnClickListener
l
)
{
mView
.
setOnClickListener
(
l
);
}
public
void
setSummary
(
String
s
)
{
mSummary
.
setVisibility
(
VISIBLE
);
mSummary
.
setText
(
s
);
}
}
\ No newline at end of file
app/src/full/java/com/topjohnwu/magisk/uicomponents/UpdateCardHolder.java
View file @
348d4707
...
@@ -31,6 +31,12 @@ public class UpdateCardHolder {
...
@@ -31,6 +31,12 @@ public class UpdateCardHolder {
unbinder
=
new
UpdateCardHolder_ViewBinding
(
this
,
itemView
);
unbinder
=
new
UpdateCardHolder_ViewBinding
(
this
,
itemView
);
}
}
public
void
setClickable
(
View
.
OnClickListener
listener
)
{
itemView
.
setClickable
(
true
);
itemView
.
setFocusable
(
true
);
itemView
.
setOnClickListener
(
listener
);
}
public
void
setValid
(
boolean
valid
)
{
public
void
setValid
(
boolean
valid
)
{
progress
.
setVisibility
(
View
.
GONE
);
progress
.
setVisibility
(
View
.
GONE
);
statusIcon
.
setVisibility
(
View
.
VISIBLE
);
statusIcon
.
setVisibility
(
View
.
VISIBLE
);
...
...
app/src/full/res/layout/activity_about.xml
deleted
100644 → 0
View file @
6e7b90a1
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
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"
android:orientation=
"vertical"
>
<include
layout=
"@layout/toolbar"
/>
<ScrollView
android:layout_width=
"fill_parent"
android:layout_height=
"wrap_content"
android:padding=
"8dp"
tools:ignore=
"UseCompoundDrawables,ContentDescription"
>
<LinearLayout
android:id=
"@android:id/content"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<androidx.cardview.widget.CardView
android:id=
"@+id/cardView"
style=
"?attr/cardStyle"
android:layout_width=
"fill_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
app:cardUseCompatPadding=
"true"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"5dp"
>
<ImageView
android:id=
"@+id/imageView"
android:layout_width=
"72dp"
android:layout_height=
"0dp"
android:layout_marginTop=
"4dp"
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"4dp"
app:layout_constraintBottom_toTopOf=
"@+id/paypal"
app:layout_constraintEnd_toStartOf=
"@+id/textView"
app:layout_constraintTop_toTopOf=
"@+id/textView"
app:srcCompat=
"@drawable/ic_logo"
/>
<TextView
android:id=
"@+id/textView"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:paddingTop=
"10dp"
android:paddingBottom=
"10dp"
android:text=
"@string/app_name"
android:textAppearance=
"@style/TextAppearance.AppCompat.Headline"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<a.l
android:id=
"@+id/paypal"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:icon=
"@drawable/ic_paypal"
app:layout_constraintTop_toBottomOf=
"@+id/textView"
app:text=
"PayPal"
/>
<a.l
android:id=
"@+id/patreon"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:icon=
"@drawable/ic_patreon"
app:layout_constraintTop_toBottomOf=
"@+id/paypal"
app:text=
"Patreon"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_width=
"fill_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
style=
"?attr/cardStyle"
app:cardUseCompatPadding=
"true"
>
<LinearLayout
android:layout_width=
"fill_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<a.l
android:id=
"@+id/app_version_info"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:icon=
"@drawable/ic_info_outline"
app:text=
"@string/app_version"
/>
<a.l
android:id=
"@+id/app_changelog"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:icon=
"@drawable/ic_history"
app:text=
"@string/app_changelog"
/>
<a.l
android:id=
"@+id/app_translators"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:icon=
"@drawable/ic_language"
app:text=
"@string/app_translators"
/>
<a.l
android:id=
"@+id/follow_twitter"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:icon=
"@drawable/ic_twitter"
app:text=
"@string/follow_twitter"
/>
<a.l
android:id=
"@+id/app_source_code"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:icon=
"@drawable/ic_github"
app:text=
"@string/app_source_code"
/>
<a.l
android:id=
"@+id/support_thread"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:icon=
"@drawable/ic_xda"
app:text=
"@string/support_thread"
/>
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
</ScrollView>
</LinearLayout>
\ No newline at end of file
app/src/full/res/layout/fragment_magisk.xml
View file @
348d4707
This diff is collapsed.
Click to expand it.
app/src/full/res/layout/update_card.xml
View file @
348d4707
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
android:layout_marginTop=
"4dp"
android:layout_marginTop=
"4dp"
android:layout_marginEnd=
"5dp"
android:layout_marginEnd=
"5dp"
android:layout_marginBottom=
"4dp"
android:layout_marginBottom=
"4dp"
android:foreground=
"?android:attr/selectableItemBackground"
app:cardCornerRadius=
"@dimen/card_corner_radius"
app:cardCornerRadius=
"@dimen/card_corner_radius"
app:cardElevation=
"@dimen/card_elevation"
>
app:cardElevation=
"@dimen/card_elevation"
>
...
...
app/src/full/res/menu/drawer.xml
View file @
348d4707
...
@@ -54,16 +54,4 @@
...
@@ -54,16 +54,4 @@
</group>
</group>
<group
android:checkableBehavior=
"single"
android:id=
"@+id/forth_group"
>
<item
android:checkable=
"false"
android:id=
"@+id/app_about"
android:icon=
"@drawable/ic_info_outline"
android:title=
"@string/about"
/>
</group>
</menu>
</menu>
app/src/full/res/values/attrs.xml
View file @
348d4707
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2017 topjohnwu
~ Copyright 2017 dvdandroid
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<resources>
<resources>
<attr
name=
"cardStyle"
format=
"reference"
/>
<declare-styleable
name=
"AboutCardRow"
>
<attr
name=
"icon"
format=
"reference"
/>
<attr
name=
"text"
format=
"string"
/>
<attr
name=
"cardStyle"
format=
"reference"
/>
<attr
name=
"navStyle"
format=
"reference"
/>
<attr
name=
"ColorOK"
format=
"reference"
/>
<attr
name=
"ColorWarn"
format=
"reference"
/>
<attr
name=
"ColorFail"
format=
"reference"
/>
<attr
name=
"ColorNeutral"
format=
"reference"
/>
</declare-styleable>
<attr
name=
"colorAccentFallback"
format=
"reference"
/>
<attr
name=
"colorAccentFallback"
format=
"reference"
/>
<attr
name=
"imageColorTint"
format=
"reference"
/>
<attr
name=
"imageColorTint"
format=
"reference"
/>
</resources>
</resources>
\ No newline at end of file
app/src/full/res/values/styles.xml
View file @
348d4707
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<item
name=
"cardStyle"
>
@style/CardViewStyle.Light
</item>
<item
name=
"cardStyle"
>
@style/CardViewStyle.Light
</item>
<item
name=
"windowActionBar"
>
false
</item>
<item
name=
"windowActionBar"
>
false
</item>
<item
name=
"windowNoTitle"
>
true
</item>
<item
name=
"windowNoTitle"
>
true
</item>
<item
name=
"imageColorTint"
>
@android:color/
second
ary_text_light
</item>
<item
name=
"imageColorTint"
>
@android:color/
terti
ary_text_light
</item>
</style>
</style>
<style
name=
"AppTheme"
parent=
"AppTheme.Base"
/>
<style
name=
"AppTheme"
parent=
"AppTheme.Base"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment