Skip to content

Commit 10dffde

Browse files
committed
* initial commit
0 parents  commit 10dffde

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+760
-0
lines changed

.gitignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
/build
12+
/captures
13+
.externalNativeBuild
14+
.cxx
15+
local.properties

.idea/.gitignore

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/kotlinc.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
This project is written for Android bug reporting.
2+
When I set `fitsSystemWindows` to ***true***, it breaks select tag's dropdown design on tablet.
3+
4+
[Stackoverflow question](https://stackoverflow.com/questions/74781596/fitssystemwindows-true-cracks-select-dropdown-design-in-android-webview)
5+
6+
![screenshot](./screenshot.png)

app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
plugins {
2+
id 'com.android.application'
3+
id 'org.jetbrains.kotlin.android'
4+
}
5+
6+
android {
7+
namespace 'com.khcpietro.androidissuetrackingproject'
8+
compileSdk 32
9+
10+
defaultConfig {
11+
applicationId "com.khcpietro.androidissuetrackingproject"
12+
minSdk 23
13+
targetSdk 32
14+
versionCode 1
15+
versionName "1.0"
16+
17+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
18+
}
19+
20+
buildTypes {
21+
release {
22+
minifyEnabled false
23+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
24+
}
25+
}
26+
compileOptions {
27+
sourceCompatibility JavaVersion.VERSION_1_8
28+
targetCompatibility JavaVersion.VERSION_1_8
29+
}
30+
kotlinOptions {
31+
jvmTarget = '1.8'
32+
}
33+
}
34+
35+
dependencies {
36+
37+
implementation 'androidx.core:core-ktx:1.7.0'
38+
implementation 'androidx.appcompat:appcompat:1.5.1'
39+
implementation 'com.google.android.material:material:1.7.0'
40+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
41+
testImplementation 'junit:junit:4.13.2'
42+
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
43+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
44+
}

app/proguard-rules.pro

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.khcpietro.androidissuetrackingproject
2+
3+
import androidx.test.platform.app.InstrumentationRegistry
4+
import androidx.test.ext.junit.runners.AndroidJUnit4
5+
6+
import org.junit.Test
7+
import org.junit.runner.RunWith
8+
9+
import org.junit.Assert.*
10+
11+
/**
12+
* Instrumented test, which will execute on an Android device.
13+
*
14+
* See [testing documentation](http://d.android.com/tools/testing).
15+
*/
16+
@RunWith(AndroidJUnit4::class)
17+
class ExampleInstrumentedTest {
18+
@Test
19+
fun useAppContext() {
20+
// Context of the app under test.
21+
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22+
assertEquals("com.khcpietro.androidissuetrackingproject", appContext.packageName)
23+
}
24+
}

app/src/main/AndroidManifest.xml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools">
4+
5+
<application
6+
android:allowBackup="true"
7+
android:dataExtractionRules="@xml/data_extraction_rules"
8+
android:fullBackupContent="@xml/backup_rules"
9+
android:icon="@mipmap/ic_launcher"
10+
android:label="@string/app_name"
11+
android:roundIcon="@mipmap/ic_launcher_round"
12+
android:supportsRtl="true"
13+
android:theme="@style/Theme.AndroidIssueTrackingProject"
14+
tools:targetApi="31">
15+
<activity
16+
android:name=".MainActivity"
17+
android:exported="true">
18+
<intent-filter>
19+
<action android:name="android.intent.action.MAIN" />
20+
21+
<category android:name="android.intent.category.LAUNCHER" />
22+
</intent-filter>
23+
24+
<meta-data
25+
android:name="android.app.lib_name"
26+
android:value="" />
27+
</activity>
28+
</application>
29+
30+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package com.khcpietro.androidissuetrackingproject
2+
3+
import android.os.Bundle
4+
import android.webkit.WebView
5+
import androidx.appcompat.app.AppCompatActivity
6+
7+
class MainActivity : AppCompatActivity() {
8+
override fun onCreate(savedInstanceState: Bundle?) {
9+
super.onCreate(savedInstanceState)
10+
setContentView(R.layout.activity_main)
11+
12+
findViewById<WebView>(R.id.web_view).apply {
13+
loadData(
14+
"""
15+
<html>
16+
<head>
17+
<meta charset="utf-8">
18+
<meta name="viewport" content="width=device-width,initial-scale=1">
19+
<title>fitsSystemWindows</title>
20+
</head>
21+
<body>
22+
<select>
23+
<option value="Red">Red</option>
24+
<option value="Blue">Blue</option>
25+
<option value="Black">Black</option>
26+
<option value="Green">Green</option>
27+
<option value="Yellow">Yellow</option>
28+
</select>
29+
</body>
30+
</html>
31+
""".trimIndent(), "text/html", "utf-8"
32+
)
33+
}
34+
}
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt"
2+
android:width="108dp" android:height="108dp" android:viewportWidth="108" android:viewportHeight="108">
3+
<path
4+
android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
5+
<aapt:attr name="android:fillColor">
6+
<gradient android:endX="85.84757" android:endY="92.4963" android:startX="42.9492" android:startY="49.59793"
7+
android:type="linear">
8+
<item android:color="#44000000" android:offset="0.0" />
9+
<item android:color="#00000000" android:offset="1.0" />
10+
</gradient>
11+
</aapt:attr>
12+
</path>
13+
<path
14+
android:fillColor="#FFFFFF"
15+
android:fillType="nonZero" android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z" android:strokeWidth="1"
16+
android:strokeColor="#00000000" />
17+
</vector>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="108dp" android:height="108dp" android:viewportWidth="108"
3+
android:viewportHeight="108">
4+
<path android:fillColor="#3DDC84" android:pathData="M0,0h108v108h-108z" />
5+
<path android:fillColor="#00000000" android:pathData="M9,0L9,108" android:strokeWidth="0.8"
6+
android:strokeColor="#33FFFFFF" />
7+
<path android:fillColor="#00000000" android:pathData="M19,0L19,108" android:strokeWidth="0.8"
8+
android:strokeColor="#33FFFFFF" />
9+
<path android:fillColor="#00000000" android:pathData="M29,0L29,108" android:strokeWidth="0.8"
10+
android:strokeColor="#33FFFFFF" />
11+
<path android:fillColor="#00000000" android:pathData="M39,0L39,108" android:strokeWidth="0.8"
12+
android:strokeColor="#33FFFFFF" />
13+
<path android:fillColor="#00000000" android:pathData="M49,0L49,108" android:strokeWidth="0.8"
14+
android:strokeColor="#33FFFFFF" />
15+
<path android:fillColor="#00000000" android:pathData="M59,0L59,108" android:strokeWidth="0.8"
16+
android:strokeColor="#33FFFFFF" />
17+
<path android:fillColor="#00000000" android:pathData="M69,0L69,108" android:strokeWidth="0.8"
18+
android:strokeColor="#33FFFFFF" />
19+
<path android:fillColor="#00000000" android:pathData="M79,0L79,108" android:strokeWidth="0.8"
20+
android:strokeColor="#33FFFFFF" />
21+
<path android:fillColor="#00000000" android:pathData="M89,0L89,108" android:strokeWidth="0.8"
22+
android:strokeColor="#33FFFFFF" />
23+
<path android:fillColor="#00000000" android:pathData="M99,0L99,108" android:strokeWidth="0.8"
24+
android:strokeColor="#33FFFFFF" />
25+
<path android:fillColor="#00000000" android:pathData="M0,9L108,9" android:strokeWidth="0.8"
26+
android:strokeColor="#33FFFFFF" />
27+
<path android:fillColor="#00000000" android:pathData="M0,19L108,19" android:strokeWidth="0.8"
28+
android:strokeColor="#33FFFFFF" />
29+
<path android:fillColor="#00000000" android:pathData="M0,29L108,29" android:strokeWidth="0.8"
30+
android:strokeColor="#33FFFFFF" />
31+
<path android:fillColor="#00000000" android:pathData="M0,39L108,39" android:strokeWidth="0.8"
32+
android:strokeColor="#33FFFFFF" />
33+
<path android:fillColor="#00000000" android:pathData="M0,49L108,49" android:strokeWidth="0.8"
34+
android:strokeColor="#33FFFFFF" />
35+
<path android:fillColor="#00000000" android:pathData="M0,59L108,59" android:strokeWidth="0.8"
36+
android:strokeColor="#33FFFFFF" />
37+
<path android:fillColor="#00000000" android:pathData="M0,69L108,69" android:strokeWidth="0.8"
38+
android:strokeColor="#33FFFFFF" />
39+
<path android:fillColor="#00000000" android:pathData="M0,79L108,79" android:strokeWidth="0.8"
40+
android:strokeColor="#33FFFFFF" />
41+
<path android:fillColor="#00000000" android:pathData="M0,89L108,89" android:strokeWidth="0.8"
42+
android:strokeColor="#33FFFFFF" />
43+
<path android:fillColor="#00000000" android:pathData="M0,99L108,99" android:strokeWidth="0.8"
44+
android:strokeColor="#33FFFFFF" />
45+
<path android:fillColor="#00000000" android:pathData="M19,29L89,29" android:strokeWidth="0.8"
46+
android:strokeColor="#33FFFFFF" />
47+
<path android:fillColor="#00000000" android:pathData="M19,39L89,39" android:strokeWidth="0.8"
48+
android:strokeColor="#33FFFFFF" />
49+
<path android:fillColor="#00000000" android:pathData="M19,49L89,49" android:strokeWidth="0.8"
50+
android:strokeColor="#33FFFFFF" />
51+
<path android:fillColor="#00000000" android:pathData="M19,59L89,59" android:strokeWidth="0.8"
52+
android:strokeColor="#33FFFFFF" />
53+
<path android:fillColor="#00000000" android:pathData="M19,69L89,69" android:strokeWidth="0.8"
54+
android:strokeColor="#33FFFFFF" />
55+
<path android:fillColor="#00000000" android:pathData="M19,79L89,79" android:strokeWidth="0.8"
56+
android:strokeColor="#33FFFFFF" />
57+
<path android:fillColor="#00000000" android:pathData="M29,19L29,89" android:strokeWidth="0.8"
58+
android:strokeColor="#33FFFFFF" />
59+
<path android:fillColor="#00000000" android:pathData="M39,19L39,89" android:strokeWidth="0.8"
60+
android:strokeColor="#33FFFFFF" />
61+
<path android:fillColor="#00000000" android:pathData="M49,19L49,89" android:strokeWidth="0.8"
62+
android:strokeColor="#33FFFFFF" />
63+
<path android:fillColor="#00000000" android:pathData="M59,19L59,89" android:strokeWidth="0.8"
64+
android:strokeColor="#33FFFFFF" />
65+
<path android:fillColor="#00000000" android:pathData="M69,19L69,89" android:strokeWidth="0.8"
66+
android:strokeColor="#33FFFFFF" />
67+
<path android:fillColor="#00000000" android:pathData="M79,19L79,89" android:strokeWidth="0.8"
68+
android:strokeColor="#33FFFFFF" />
69+
</vector>
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res-auto"
4+
xmlns:tools="http://schemas.android.com/tools"
5+
android:layout_width="match_parent"
6+
android:layout_height="match_parent"
7+
tools:context=".MainActivity">
8+
9+
<WebView
10+
android:id="@+id/web_view"
11+
android:layout_width="0dp"
12+
android:layout_height="0dp"
13+
app:layout_constraintBottom_toBottomOf="parent"
14+
app:layout_constraintEnd_toEndOf="parent"
15+
app:layout_constraintStart_toStartOf="parent"
16+
app:layout_constraintTop_toTopOf="parent" />
17+
18+
</androidx.constraintlayout.widget.ConstraintLayout>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@drawable/ic_launcher_background" />
4+
<foreground android:drawable="@drawable/ic_launcher_foreground" />
5+
</adaptive-icon>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@drawable/ic_launcher_background" />
4+
<foreground android:drawable="@drawable/ic_launcher_foreground" />
5+
</adaptive-icon>
1.37 KB
Binary file not shown.
Binary file not shown.
982 Bytes
Binary file not shown.
Binary file not shown.
1.86 KB
Binary file not shown.
Binary file not shown.
2.82 KB
Binary file not shown.
Binary file not shown.
3.75 KB
Binary file not shown.
Binary file not shown.
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<resources xmlns:tools="http://schemas.android.com/tools">
2+
<!-- Base application theme. -->
3+
<style name="Theme.AndroidIssueTrackingProject" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
4+
<!-- Primary brand color. -->
5+
<item name="colorPrimary">@color/purple_200</item>
6+
<item name="colorPrimaryVariant">@color/purple_700</item>
7+
<item name="colorOnPrimary">@color/black</item>
8+
<!-- Secondary brand color. -->
9+
<item name="colorSecondary">@color/teal_200</item>
10+
<item name="colorSecondaryVariant">@color/teal_200</item>
11+
<item name="colorOnSecondary">@color/black</item>
12+
<!-- Status bar color. -->
13+
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
14+
<!-- Customize your theme here. -->
15+
</style>
16+
</resources>

0 commit comments

Comments
 (0)