Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
B
Browser White
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
Browser White
Commits
60f073df
Commit
60f073df
authored
Aug 07, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
4ae88a69
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
362 additions
and
0 deletions
+362
-0
DialogViews.kt
...c/main/java/com/base/browserwhite/ui/views/DialogViews.kt
+24
-0
bg_0571ed_25.xml
app/src/main/res/drawable/bg_0571ed_25.xml
+5
-0
bg_e1e4e9_25.xml
app/src/main/res/drawable/bg_e1e4e9_25.xml
+6
-0
bg_ffffff_10.xml
app/src/main/res/drawable/bg_ffffff_10.xml
+5
-0
bg_search_engine_selector.xml
app/src/main/res/drawable/bg_search_engine_selector.xml
+6
-0
bg_storke_0571ed.xml
app/src/main/res/drawable/bg_storke_0571ed.xml
+9
-0
dialog_search_engine.xml
app/src/main/res/layout/dialog_search_engine.xml
+307
-0
x_baidu.png
app/src/main/res/mipmap-xxhdpi/x_baidu.png
+0
-0
x_bing.png
app/src/main/res/mipmap-xxhdpi/x_bing.png
+0
-0
x_google.png
app/src/main/res/mipmap-xxhdpi/x_google.png
+0
-0
x_xuckd.png
app/src/main/res/mipmap-xxhdpi/x_xuckd.png
+0
-0
x_yandex.png
app/src/main/res/mipmap-xxhdpi/x_yandex.png
+0
-0
yahoo.png
app/src/main/res/mipmap-xxhdpi/yahoo.png
+0
-0
No files found.
app/src/main/java/com/base/browserwhite/ui/views/DialogViews.kt
0 → 100644
View file @
60f073df
package
com.base.browserwhite.ui.views
import
android.app.AlertDialog
import
android.content.Context
import
android.view.LayoutInflater
import
com.base.browserwhite.R
import
com.base.browserwhite.databinding.DialogSearchEngineBinding
object
DialogViews
{
fun
Context
.
showSearchEngineDialog
()
{
val
binding
=
DialogSearchEngineBinding
.
inflate
(
LayoutInflater
.
from
(
this
))
val
dialog
=
AlertDialog
.
Builder
(
this
).
create
()
dialog
.
setView
(
binding
.
root
)
dialog
.
show
()
val
params
=
dialog
.
window
?.
attributes
// params?.width = resources.getDimensionPixelOffset(R.dimen.dp_300)
dialog
.
window
?.
attributes
=
params
dialog
.
window
?.
setBackgroundDrawableResource
(
android
.
R
.
color
.
transparent
)
}
}
\ No newline at end of file
app/src/main/res/drawable/bg_0571ed_25.xml
0 → 100644
View file @
60f073df
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"#0571ED"
/>
<corners
android:radius=
"25dp"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/bg_e1e4e9_25.xml
0 → 100644
View file @
60f073df
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"25dp"
/>
<solid
android:color=
"#E1E4E9"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/bg_ffffff_10.xml
0 → 100644
View file @
60f073df
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"10dp"
/>
<solid
android:color=
"@color/white"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/bg_search_engine_selector.xml
0 → 100644
View file @
60f073df
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@drawable/bg_storke_0571ed"
android:state_selected=
"true"
/>
<item
android:drawable=
"@drawable/bg_ffffff_10"
android:state_selected=
"false"
/>
</selector>
\ No newline at end of file
app/src/main/res/drawable/bg_storke_0571ed.xml
0 → 100644
View file @
60f073df
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<stroke
android:width=
"2dp"
android:color=
"#0571ED"
/>
<solid
android:color=
"@color/white"
/>
<corners
android:radius=
"10dp"
/>
</shape>
\ No newline at end of file
app/src/main/res/layout/dialog_search_engine.xml
0 → 100644
View file @
60f073df
This diff is collapsed.
Click to expand it.
app/src/main/res/mipmap-xxhdpi/x_baidu.png
0 → 100644
View file @
60f073df
6.69 KB
app/src/main/res/mipmap-xxhdpi/x_bing.png
0 → 100644
View file @
60f073df
10.3 KB
app/src/main/res/mipmap-xxhdpi/x_google.png
0 → 100644
View file @
60f073df
5.49 KB
app/src/main/res/mipmap-xxhdpi/x_xuckd.png
0 → 100644
View file @
60f073df
23.5 KB
app/src/main/res/mipmap-xxhdpi/x_yandex.png
0 → 100644
View file @
60f073df
5.53 KB
app/src/main/res/mipmap-xxhdpi/yahoo.png
0 → 100644
View file @
60f073df
5.53 KB
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