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
c44ce77e
Commit
c44ce77e
authored
Aug 26, 2016
by
dvdandroid
Committed by
topjohnwu
Aug 26, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated UI for tablets
parent
ab318ef9
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
49 additions
and
2 deletions
+49
-2
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+3
-1
AboutActivity.java
app/src/main/java/com/topjohnwu/magisk/AboutActivity.java
+17
-0
ic_file_download.xml
app/src/main/res/drawable/ic_file_download.xml
+1
-1
styles.xml
app/src/main/res/values-sw600dp-v21/styles.xml
+12
-0
bools.xml
app/src/main/res/values-sw600dp/bools.xml
+4
-0
bools.xml
app/src/main/res/values/bools.xml
+4
-0
dimens.xml
app/src/main/res/values/dimens.xml
+5
-0
styles.xml
app/src/main/res/values/styles.xml
+3
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
c44ce77e
...
@@ -23,7 +23,9 @@
...
@@ -23,7 +23,9 @@
<category
android:name=
"android.intent.category.LAUNCHER"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</intent-filter>
</activity>
</activity>
<activity
android:name=
".AboutActivity"
/>
<activity
android:name=
".AboutActivity"
android:theme=
"@style/AppTheme.Transparent"
/>
</application>
</application>
</manifest>
</manifest>
\ No newline at end of file
app/src/main/java/com/topjohnwu/magisk/AboutActivity.java
View file @
c44ce77e
...
@@ -13,6 +13,7 @@ import android.text.Html;
...
@@ -13,6 +13,7 @@ import android.text.Html;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.text.method.LinkMovementMethod
;
import
android.text.method.LinkMovementMethod
;
import
android.view.View
;
import
android.view.View
;
import
android.view.WindowManager
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.topjohnwu.magisk.utils.RowItem
;
import
com.topjohnwu.magisk.utils.RowItem
;
...
@@ -135,6 +136,22 @@ public class AboutActivity extends AppCompatActivity {
...
@@ -135,6 +136,22 @@ public class AboutActivity extends AppCompatActivity {
startActivity
(
new
Intent
(
Intent
.
ACTION_VIEW
,
Uri
.
parse
(
XDA_THREAD
)));
startActivity
(
new
Intent
(
Intent
.
ACTION_VIEW
,
Uri
.
parse
(
XDA_THREAD
)));
}
}
});
});
setFloating
();
}
public
void
setFloating
()
{
boolean
isTablet
=
getResources
().
getBoolean
(
R
.
bool
.
isTablet
);
if
(
isTablet
)
{
WindowManager
.
LayoutParams
params
=
getWindow
().
getAttributes
();
params
.
height
=
getResources
().
getDimensionPixelSize
(
R
.
dimen
.
floating_height
);
params
.
width
=
getResources
().
getDimensionPixelSize
(
R
.
dimen
.
floating_width
);
params
.
alpha
=
1.0f
;
params
.
dimAmount
=
0.6f
;
params
.
flags
|=
2
;
getWindow
().
setAttributes
(
params
);
setFinishOnTouchOutside
(
true
);
}
}
}
@Override
@Override
...
...
app/src/main/res/drawable/ic_file_download.xml
View file @
c44ce77e
...
@@ -4,6 +4,6 @@
...
@@ -4,6 +4,6 @@
android:viewportHeight=
"24.0"
android:viewportHeight=
"24.0"
android:viewportWidth=
"24.0"
>
android:viewportWidth=
"24.0"
>
<path
<path
android:fillColor=
"#
fff
"
android:fillColor=
"#
FF000000
"
android:pathData=
"M19,9h-4V3H9v6H5l7,7 7,-7zM5,18v2h14v-2H5z"
/>
android:pathData=
"M19,9h-4V3H9v6H5l7,7 7,-7zM5,18v2h14v-2H5z"
/>
</vector>
</vector>
app/src/main/res/values-sw600dp-v21/styles.xml
0 → 100644
View file @
c44ce77e
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style
name=
"AppTheme.Transparent"
parent=
"Theme.AppCompat.Light.NoActionBar"
>
<item
name=
"android:statusBarColor"
>
@android:color/transparent
</item>
<item
name=
"android:navigationBarColor"
>
@android:color/transparent
</item>
<item
name=
"android:colorBackgroundCacheHint"
>
@null
</item>
<item
name=
"android:windowIsTranslucent"
>
true
</item>
<item
name=
"android:windowNoTitle"
>
true
</item>
</style>
</resources>
\ No newline at end of file
app/src/main/res/values-sw600dp/bools.xml
0 → 100644
View file @
c44ce77e
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool
name=
"isTablet"
>
true
</bool>
</resources>
\ No newline at end of file
app/src/main/res/values/bools.xml
0 → 100644
View file @
c44ce77e
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool
name=
"isTablet"
>
false
</bool>
</resources>
\ No newline at end of file
app/src/main/res/values/dimens.xml
0 → 100644
View file @
c44ce77e
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen
name=
"floating_height"
>
650dp
</dimen>
<dimen
name=
"floating_width"
>
500dp
</dimen>
</resources>
\ No newline at end of file
app/src/main/res/values/styles.xml
View file @
c44ce77e
...
@@ -21,4 +21,7 @@
...
@@ -21,4 +21,7 @@
<item
name=
"actionMenuTextColor"
>
@color/icons
</item>
<item
name=
"actionMenuTextColor"
>
@color/icons
</item>
</style>
</style>
<style
name=
"AppTheme.Transparent"
parent=
"Theme.AppCompat.Light.NoActionBar"
>
</style>
</resources>
</resources>
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